Fixes, Android adaptive icon for crypto.

This commit is contained in:
Ivan Murashov
2018-03-10 23:41:22 +03:00
parent 60f506a08d
commit cae46b60f9
31 changed files with 238 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ abstract class BaseState<T extends StatefulWidget> extends State<T> {
/// Возвращает контейнер с всеми виджетами экрана.
Widget getScreenContent();
bool isAutomaticallyImplyLeading();
/// Возвращает заголовок для AppBar
String getTitle() {
return null;
@@ -59,6 +61,7 @@ abstract class BaseState<T extends StatefulWidget> extends State<T> {
return new AppBar(title: new Container(
margin: new EdgeInsets.only(left: 16.0),
child: new Text(getTitle(), style: new TextStyle(fontSize: 18.0))),
automaticallyImplyLeading: isAutomaticallyImplyLeading(),
backgroundColor: Resources.getPrimaryColor(app), actions: getMenuButtons());
}