From 5479d97b0ba46bc7359241e5eeb59a43123210d1 Mon Sep 17 00:00:00 2001 From: Santosh Das Date: Thu, 21 Dec 2023 22:03:25 +0530 Subject: [PATCH] add label style in action pane --- lib/src/actions.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/actions.dart b/lib/src/actions.dart index 418a9fb..ec72985 100644 --- a/lib/src/actions.dart +++ b/lib/src/actions.dart @@ -25,6 +25,7 @@ class CustomSlidableAction extends StatelessWidget { this.autoClose = _kAutoClose, this.borderRadius = BorderRadius.zero, this.padding, + this.textStyle, required this.onPressed, required this.child, }) : assert(flex > 0), @@ -39,6 +40,8 @@ class CustomSlidableAction extends StatelessWidget { /// {@endtemplate} final int flex; + final TextStyle? textStyle, + /// {@template slidable.actions.backgroundColor} /// The background color of this action. /// @@ -198,6 +201,7 @@ class SlidableAction extends StatelessWidget { children.add( Text( label!, + style: textStyle, overflow: TextOverflow.ellipsis, ), );