Начал добавлять запросы на регистрацию, валидацию, удаление токена кассы

This commit is contained in:
Ivan Murashov
2017-07-17 19:02:50 +03:00
parent a14f521b1f
commit 79a16fb81f
11 changed files with 163 additions and 52 deletions

View File

@@ -2,21 +2,24 @@ import 'dart:async';
import 'registration.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class SplashScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
new Future.delayed(const Duration(milliseconds: 1000), () {
_goToNextScreen(context);
});
return new Image.asset('assets/splash.png', fit: BoxFit.cover);
}
_goToNextScreen(BuildContext context) {
_goToNextScreen(BuildContext context) async {
Navigator.of(context).push(new MaterialPageRoute<Null>(
builder: (BuildContext context) {
return new RegistrationScreen();
}));
builder: (BuildContext context) {
return new RegistrationScreen();
}));
}
}