Commit 3580ec87 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Modification in Loading page

parent 769041dc
......@@ -8,7 +8,7 @@ class EAnalyzerDash extends StatelessWidget {
return Scaffold(
appBar: AppBar(
backwardsCompatibility: false,
systemOverlayStyle: SystemUiOverlayStyle(statusBarColor: Colors.blue.shade900),
backgroundColor: Color(0xFF1B5E20),
title: Text("EAnalyzer DashBoard"),
),
body: Stack(
......
import 'dart:async';
import 'package:covidefender/EAnalyzer/EAnalyzerDash.dart';
import 'package:flutter/material.dart';
class LoadingScreen extends StatefulWidget {
@override
_LoadingScreenState createState() => _LoadingScreenState();
}
class _LoadingScreenState extends State<LoadingScreen> {
@override
void initState() {
super.initState();
Timer(Duration(seconds: 3), () {
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => EAnalyzerDash(),
));
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.green.shade300,
body: Stack(
children: <Widget>[
Container(
decoration: BoxDecoration(
image: DecorationImage(
alignment: Alignment.topCenter,
image: AssetImage('lib/assets/images/eana.png'),
))),
]
),
);
}
}
\ No newline at end of file
import 'package:covidefender/STracker/splash.dart';
import 'package:covidefender/EAnalyzer/Loading.dart';
import 'package:flutter/material.dart';
import 'EAnalyzerDash.dart';
import 'package:flutter/services.dart';
class HomeScreen extends StatefulWidget {
_HomeScreenState createState() => _HomeScreenState();
......@@ -178,7 +179,7 @@ class _HomeScreenState extends State<HomeScreen> {
context,
MaterialPageRoute(
builder: (context) =>
EAnalyzerDash()),
LoadingScreen()),
);
},
child: Image.asset(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment