Merge pull request #140 from cake-tech/CAKE-147-make-back-button-bigger

Cake 147 make back button bigger
This commit is contained in:
M 2020-11-12 21:48:17 +02:00
commit 381d559ea6

View file

@ -48,14 +48,15 @@ abstract class BasePage extends StatelessWidget {
return null; return null;
} }
final _backButton = Image.asset('assets/images/back_arrow.png', final _backButton = Icon(Icons.arrow_back_ios,
color: titleColor ?? Theme.of(context).primaryTextTheme.title.color); color: titleColor ?? Theme.of(context).primaryTextTheme.title.color,
size: 16,);
final _closeButton = final _closeButton =
isDarkTheme ? _closeButtonImageDarkTheme : _closeButtonImage; isDarkTheme ? _closeButtonImageDarkTheme : _closeButtonImage;
return SizedBox( return SizedBox(
height: 37, height: 37,
width: isModalBackButton ? 37 : 20, width: 37,
child: ButtonTheme( child: ButtonTheme(
minWidth: double.minPositive, minWidth: double.minPositive,
child: FlatButton( child: FlatButton(