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
13 changes: 9 additions & 4 deletions lib/src/actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CustomSlidableAction extends StatelessWidget {
this.backgroundColor = _kBackgroundColor,
this.foregroundColor,
this.autoClose = _kAutoClose,
this.borderRadius = BorderRadius.zero,
this.borderRadius = BorderRadiusDirectional.zero,
this.padding,
required this.onPressed,
required this.child,
Expand Down Expand Up @@ -72,7 +72,7 @@ class CustomSlidableAction extends StatelessWidget {
///
/// Defaults to [BorderRadius.zero].
/// {@endtemplate}
final BorderRadius borderRadius;
final BorderRadiusDirectional borderRadius;

/// {@template slidable.actions.padding}
/// The padding of the OutlinedButton
Expand Down Expand Up @@ -142,7 +142,8 @@ class SlidableAction extends StatelessWidget {
this.icon,
this.spacing = 4,
this.label,
this.borderRadius = BorderRadius.zero,
this.style,
this.borderRadius = BorderRadiusDirectional.zero,
this.padding,
}) : assert(flex > 0),
assert(icon != null || label != null);
Expand Down Expand Up @@ -173,8 +174,11 @@ class SlidableAction extends StatelessWidget {
/// A label to display below the [icon].
final String? label;

/// A style for the label [label].
final TextStyle? style;

/// Padding of the OutlinedButton
final BorderRadius borderRadius;
final BorderRadiusDirectional borderRadius;

/// Padding of the OutlinedButton
final EdgeInsets? padding;
Expand All @@ -200,6 +204,7 @@ class SlidableAction extends StatelessWidget {
Text(
label!,
overflow: TextOverflow.ellipsis,
style: style,
),
);
}
Expand Down