Skip to content

Commit

Permalink
Add explicit back arrow icon in base screen
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Mar 6, 2024
1 parent ed50ce2 commit 0b243e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/common/ui/base_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ class BaseScreen extends StatelessWidget {
),
AppBar(
automaticallyImplyLeading: automaticallyImplyLeading,
leading: automaticallyImplyLeading ? IconButton(
icon: Icon(Icons.arrow_back, color: Colors.black),
onPressed: () => Navigator.of(context).pop(),
) : null,
title: title is String
? CText(
title,
Expand All @@ -93,9 +97,7 @@ class BaseScreen extends StatelessWidget {
titleSpacing: 0,
actions: actions,
),

],

),
),
),
Expand Down

0 comments on commit 0b243e9

Please sign in to comment.