Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/src/actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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.
///
Expand Down Expand Up @@ -198,6 +201,7 @@ class SlidableAction extends StatelessWidget {
children.add(
Text(
label!,
style: textStyle,
overflow: TextOverflow.ellipsis,
),
);
Expand Down