Добавил экран FAQ со всеми описаниями

This commit is contained in:
kifio
2017-07-25 08:36:23 +03:00
parent ff0573d65d
commit 8738fbfd39
7 changed files with 109 additions and 24 deletions

View File

@@ -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() {