Начал экран успешного проведения покупки
This commit is contained in:
38
lib/purchase_success.dart
Normal file
38
lib/purchase_success.dart
Normal file
@@ -0,0 +1,38 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'main.dart';
|
||||
import 'base_state.dart';
|
||||
import 'purchase.dart';
|
||||
|
||||
/// Экран проведения покупки.
|
||||
class PurchaseSuccessScreen extends StatefulWidget {
|
||||
@override State createState() => new _PurchaseSuccessScreenState();
|
||||
}
|
||||
|
||||
class _PurchaseSuccessScreenState<T> extends PurchaseScreenState<T> {
|
||||
|
||||
@override String getTitle() {
|
||||
return "Проведение покупки";
|
||||
}
|
||||
|
||||
@overide getMenuButtons(BuildContext context) {
|
||||
return <Widget>[
|
||||
new IconButton(icon: new Icon(Icons.help_outline), onPressed: () {}),
|
||||
new IconButton(icon: new Image.asset(logout_png, height: 20.0, width: 20.0), onPressed: () => logout(context))
|
||||
];
|
||||
}
|
||||
|
||||
@override Widget getScreenContent() {
|
||||
return new Column(children: <Widget>[
|
||||
getValueWithTitle('Покупатель', 'Знаменитый Рокер Паук'),
|
||||
_getSuccessMessage(),
|
||||
getApprovePurchaseButton(context)
|
||||
]);
|
||||
}
|
||||
|
||||
_getSuccessMessage() {
|
||||
return new Container(height: 64.0, decoration: new BoxDecoration(color: const Color(0x8ae28aff)), child: new Text('Покупка на сумму 1234.00 руб. проведена', style: new TextStyle(color: tokenActiveTextColor)));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user