fix ios splash

This commit is contained in:
admin
2020-05-31 16:14:56 +06:30
parent 2c3dec20ae
commit 06b5881858
4 changed files with 28 additions and 5 deletions

View File

@@ -385,7 +385,7 @@ class _HomePageState extends State<HomePage> {
backgroundColor: primaryColor,
title: ClipRRect(
child: Image.asset("assets/logo.jpg", height: 40),
borderRadius: new BorderRadius.circular(35.0),
borderRadius: new BorderRadius.circular(30.0),
),
actions: login
? <Widget>[
@@ -412,7 +412,7 @@ class _HomePageState extends State<HomePage> {
icon: Icon(Icons.tune),
),
]
: [
: <Widget>[
FlatButton(
onPressed: () {
Navigator.push(
@@ -424,6 +424,17 @@ class _HomePageState extends State<HomePage> {
// iconSize: 30,
child: Text("Sign in",style: siginButtonStyle,),
),
IconButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SigninPage()),
);
},
iconSize: 30,
icon: Icon(MaterialCommunityIcons.login),
)
]),
body: Container(
decoration: BoxDecoration(

View File

@@ -90,7 +90,7 @@ class _SplashScreenState extends State<SplashScreen> {
this._loaded = mainModel.isLoaded;
this._isSupport = true;
this._isLogin = mainModel.isLogin();
this._isAgree = mainModel.agreedTerm();
// this._isAgree = mainModel.agreedTerm();
this._hasEmail = mainModel.hasEmail();
this._isOnline = mainModel.isOnline;