Добавил экран FAQ со всеми описаниями
This commit is contained in:
@@ -4,6 +4,7 @@ import 'dart:convert';
|
||||
import 'dart:async';
|
||||
|
||||
import 'main.dart';
|
||||
import 'faq.dart';
|
||||
|
||||
abstract class BaseState<T> extends State<T> {
|
||||
|
||||
@@ -22,6 +23,18 @@ abstract class BaseState<T> extends State<T> {
|
||||
backgroundColor: primaryColor, actions: getMenuButtons(context));
|
||||
}
|
||||
|
||||
@overide getMenuButtons(BuildContext context) {
|
||||
return <Widget>[getFaqButton()];
|
||||
}
|
||||
|
||||
getFaqButton() {
|
||||
return new IconButton(icon: new Icon(Icons.help_outline), onPressed: () => faq());
|
||||
}
|
||||
|
||||
getLogoutButton() {
|
||||
return new IconButton(icon: new Image.asset(logout_png, height: iconHeight, width: iconHeight), onPressed: () => logout(context));
|
||||
}
|
||||
|
||||
Widget getBody(BuildContext context) {
|
||||
return new Stack(children: <Widget>[getScreenContent(), getProgressIndicator()]);
|
||||
}
|
||||
@@ -32,7 +45,9 @@ abstract class BaseState<T> extends State<T> {
|
||||
|
||||
String getHint();
|
||||
|
||||
getMenuButtons();
|
||||
faq() {
|
||||
pushRoute(context, new FAQScreen());
|
||||
}
|
||||
|
||||
/// Метод возвращает контейнер с отступами, который содержит картинку с логотипом.
|
||||
getLogo() {
|
||||
|
||||
Reference in New Issue
Block a user