CAKE-147 | changed back button image to arrow_back_ios icon with size 24; changed size of leading to 37 (base page)

This commit is contained in:
OleksandrSobol 2020-11-09 17:01:58 +02:00
parent b17e7744c6
commit c729f86ac8

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: 24,);
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(