Начал добавлять запросы на регистрацию, валидацию, удаление токена кассы
This commit is contained in:
@@ -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();
|
||||
}));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user