add pickups
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io' show Platform;
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_api_availability/google_api_availability.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:fcs/model/main_model.dart';
|
||||
import 'package:fcs/model/shared_pref.dart';
|
||||
import 'package:fcs/theme/theme.dart';
|
||||
import 'package:fcs/widget/local_text.dart';
|
||||
import 'package:fcs/widget/localization/app_translations.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class SplashScreen extends StatefulWidget {
|
||||
@override
|
||||
@@ -30,7 +26,7 @@ class _SplashScreenState extends State<SplashScreen> {
|
||||
Timer timer;
|
||||
|
||||
startTime() async {
|
||||
var _duration = new Duration(milliseconds: 500);
|
||||
var _duration = new Duration(milliseconds: 1000);
|
||||
this.timer = new Timer.periodic(_duration, navigationPage);
|
||||
}
|
||||
|
||||
@@ -55,7 +51,7 @@ class _SplashScreenState extends State<SplashScreen> {
|
||||
if (_loaded) {
|
||||
timer.cancel();
|
||||
|
||||
Navigator.of(context).pushReplacementNamed('/home');
|
||||
Navigator.of(context).pushReplacementNamed('/home');
|
||||
// if (_isSupport) {
|
||||
// if (_isLogin) {
|
||||
// if (!_isAgree) {
|
||||
@@ -92,7 +88,7 @@ class _SplashScreenState extends State<SplashScreen> {
|
||||
MainModel mainModel = Provider.of<MainModel>(context);
|
||||
|
||||
this._loaded = mainModel.isLoaded;
|
||||
this._isSupport = mainModel.isSupport();
|
||||
this._isSupport = true;
|
||||
this._isLogin = mainModel.isLogin();
|
||||
this._isAgree = mainModel.agreedTerm();
|
||||
this._hasEmail = mainModel.hasEmail();
|
||||
@@ -105,13 +101,25 @@ class _SplashScreenState extends State<SplashScreen> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
new Image.asset(
|
||||
"assets/logo.png",
|
||||
"assets/logo.jpg",
|
||||
width: 180,
|
||||
),
|
||||
SizedBox(height: 50),
|
||||
CircularProgressIndicator(
|
||||
valueColor: new AlwaysStoppedAnimation<Color>(primaryColor),
|
||||
Column(
|
||||
children: <Widget>[
|
||||
Text(
|
||||
"Cargo Services",
|
||||
style: welcomeLabelStyle,
|
||||
),
|
||||
Text(
|
||||
"by FCS Trading",
|
||||
style: welcomeSubLabelStyle,
|
||||
),
|
||||
],
|
||||
),
|
||||
// CircularProgressIndicator(
|
||||
// valueColor: new AlwaysStoppedAnimation<Color>(primaryColor),
|
||||
// ),
|
||||
SizedBox(height: 30),
|
||||
_isOnline
|
||||
? Container()
|
||||
|
||||
Reference in New Issue
Block a user