Начал экран успешного проведения покупки

This commit is contained in:
kifio
2017-07-24 08:48:51 +03:00
parent 3f7dc05d9e
commit 8dcae4c256
8 changed files with 240 additions and 98 deletions

View File

@@ -11,11 +11,21 @@ abstract class BaseState<T> extends State<T> {
String error = null;
String textFieldValue = "";
AppBar getAppBar() {
return new AppBar(title: new Text(getTitle(), style: new TextStyle(fontSize: 18.0)),
backgroundColor: primaryColor, actions: getMenuButtons());
@override Widget build(BuildContext context) {
return new Scaffold(appBar: getAppBar(context), body: getBody(context));
}
AppBar getAppBar(BuildContext context) {
return new AppBar(title: new Text(getTitle(), style: new TextStyle(fontSize: 18.0)),
backgroundColor: primaryColor, actions: getMenuButtons(context));
}
Widget getBody(BuildContext context) {
return new Stack(children: <Widget>[getScreenContent(), getProgressIndicator()]);
}
Widget getScreenContent(BuildContext context);
String getTitle();
String getHint();