Skip to content

Commit

Permalink
🎨 Update appbar's actions judgment.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 19, 2020
1 parent 2c55033 commit cad92a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/widgets/fixed_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ class FixedAppBar extends StatelessWidget {
overflow: TextOverflow.ellipsis,
),
),
if (automaticallyImplyLeading && Navigator.of(context).canPop() && actions == null)
SizedBox(width: 56.0),
if (actions != null) ...actions,
if (automaticallyImplyLeading &&
Navigator.of(context).canPop() &&
(actions?.isEmpty ?? false))
SizedBox(width: 48.0),
if (actions?.isNotEmpty ?? false) ...actions,
],
),
);
Expand Down

0 comments on commit cad92a4

Please sign in to comment.