Skip to content

Commit

Permalink
fix: backbutton now visible (#3170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akashsri3bi authored Oct 22, 2022
1 parent 1a8f53a commit d43c02b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class SmoothBackButton extends StatelessWidget {
padding: _iconPadding,
child: Icon(
ConstantIcons.instance.getBackIcon(),
color: iconColor ?? Colors.white,
color: iconColor ??
(Theme.of(context).colorScheme.brightness == Brightness.light
? Colors.white
: Colors.black),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class _ProductImageViewerState extends State<ProductImageViewer> {
elevation: 0,
title: Text(imageData.title),
leading: SmoothBackButton(
iconColor: Colors.white,
onPressed: () => Navigator.maybePop(context, _isEdited),
),
),
Expand Down

0 comments on commit d43c02b

Please sign in to comment.