Skip to content

Commit

Permalink
replace deprecated component
Browse files Browse the repository at this point in the history
  • Loading branch information
atn832 committed Sep 2, 2024
1 parent 932fa1f commit 522171a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/my_alert_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ class MyAlertDialog<T> extends StatelessWidget {
///
/// Typically this is a list of [TextButton] widgets.
///
/// These widgets will be wrapped in a [ButtonBar], which introduces 8 pixels
/// These widgets will be wrapped in a [OverflowBar], which introduces 8 pixels
/// of padding on each side.
///
/// If the [title] is not null but the [content] _is_ null, then an extra 20
/// pixels of padding is added above the [ButtonBar] to separate the [title]
/// pixels of padding is added above the [OverflowBar] to separate the [title]
/// from the [actions].
final List<Widget>? actions;

Expand Down Expand Up @@ -140,7 +140,7 @@ class MyAlertDialog<T> extends StatelessWidget {
if (actions != null) {
if (isDividerEnabled) children.add(divider);
children.add(
new ButtonBar(
new OverflowBar(
children: actions!,
),
);
Expand Down

0 comments on commit 522171a

Please sign in to comment.