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
6 changes: 5 additions & 1 deletion lib/src/flash.dart
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ class FlashBar<T> extends StatefulWidget {
this.progressIndicatorBackgroundColor,
this.progressIndicatorValueColor,
this.useSafeArea = true,
this.stretchContentWidth = true,
this.builder,
});

Expand Down Expand Up @@ -475,6 +476,9 @@ class FlashBar<T> extends StatefulWidget {
/// Prevents showing in [SafeArea].
final bool useSafeArea;

/// Defines if content width will be stretched. True is default
final bool stretchContentWidth

/// Used to wrap the child widget.
final TransitionBuilder? builder;

Expand Down Expand Up @@ -660,7 +664,7 @@ class _FlashBarState extends State<FlashBar> with SingleTickerProviderStateMixin
),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
crossAxisAlignment: widget.stretchContentWidth ? CrossAxisAlignment.stretch : CrossAxisAlignment.center,
children: <Widget>[
if (_isTitlePresent)
Padding(
Expand Down