Fix 2 loader inside the dashboard_screen

fix_issues
Elham Rababah 5 years ago
parent d47e1c2a43
commit ae8af0ab43

@ -457,25 +457,23 @@ class _DashboardScreenState extends State<DashboardScreen> {
],
),
),
NetworkBaseView(
baseViewModel: model,
child: Padding(
padding:
EdgeInsets.symmetric(horizontal: 20.0, vertical: 1.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Column(
children: <Widget>[
Text(
TranslationBase.of(context).nearestDropOffs,
style: TextStyle(
fontSize: 21.0,
fontWeight: FontWeight.w400,
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 1.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Column(
children: <Widget>[
Text(
TranslationBase.of(context).nearestDropOffs,
style: TextStyle(
fontSize: 21.0,
fontWeight: FontWeight.w400,
),
],
),
),
],
),
if (model.state == ViewState.Idle)
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
@ -494,16 +492,16 @@ class _DashboardScreenState extends State<DashboardScreen> {
),
],
),
onTap: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) => OrdersListScreen()),
),
onTap: () =>
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => OrdersListScreen()),
),
),
],
),
],
),
],
),
),
NetworkBaseView(

@ -14,7 +14,7 @@ class SplashScreenPage extends StatefulWidget {
class _SplashScreenPageState extends State<SplashScreenPage> {
startTime() async {
var _duration = new Duration(seconds: 2);
var _duration = new Duration(seconds: 1);
return new Timer(_duration, navigationPage);
}

Loading…
Cancel
Save