Smoth screen changes. Step 1

This commit is contained in:
Ivan Murashov
2018-03-08 23:53:31 +03:00
parent cfdf5dcca2
commit 58e58671de
13 changed files with 238 additions and 209 deletions

View File

@@ -18,10 +18,7 @@ class FinishRegistrationScreen extends BaseScreen {
class RegistrationScreenState extends BaseState<FinishRegistrationScreen> {
RegistrationScreenState(SqliteHelper helper, String app) {
this.helper = helper;
this.app = app;
}
RegistrationScreenState(SqliteHelper helper, String app) : super(helper, app);
bool _tokenActive = false;
String _merchantID = '';
@@ -62,7 +59,7 @@ class RegistrationScreenState extends BaseState<FinishRegistrationScreen> {
handleTap() async {
if (_tokenActive) {
Navigator.of(context).pop();
startScanner(context, app, helper);
// FIXME: startScanner(context, app, helper);
} else {
if (await platform.invokeMethod('isOnline')) {
String token = await helper.getToken();