Commit 5325cb03 authored by Indika NK's avatar Indika NK

Added minor changes to i guider , main dashboard button issues fixed

parent 8c6f2427
import 'dart:async';
import 'package:flutter/material.dart';
import 'i_guider.dart';
class splashscreen extends StatefulWidget {
@override
_splashscreenState createState() => _splashscreenState();
}
class _splashscreenState extends State<splashscreen> {
@override
void initState() {
super.initState();
Timer(Duration(seconds: 3), () {
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => I_guider(),
));
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.blue[400],
body: Center(
child: Text(
"I-GUIDER",
style: TextStyle(
fontSize: 50.0,
color: Colors.white,
),
),
),
);
}
}
with_mask
without_mask
\ No newline at end of file
import 'package:flutter/material.dart';
import 'I_GUIDER/splash.dart';
class HomeScreen extends StatefulWidget {
_HomeScreenState createState() => _HomeScreenState();
......@@ -82,48 +83,7 @@ class _HomeScreenState extends State<HomeScreen> {
Text('My Profile', style: TextStyle(fontSize: 20.0))
],
)),
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8)),
elevation: 4,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
child: Expanded(
flex: 2,
child: FlatButton(onPressed: () {
print('i guider ');
Navigator.pushNamed(context, '/guider');
},
// padding: EdgeInsets.all(60),
padding: EdgeInsets.fromLTRB(60,75,45,70),
color: Colors.white,
highlightColor: Colors.blue[200],
clipBehavior: Clip.none,
child: Text(
'I-guider',
style: TextStyle(
fontSize: 14,
letterSpacing: 1,
fontWeight: FontWeight.bold,
// fontFamily: 'Roboto'
),
),
),
),
// height: size.height * .1,
decoration: BoxDecoration(
// image: DecorationImage(
// image: AssetImage(
// '')),
),
),
],
)),
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8)),
......@@ -149,14 +109,20 @@ class _HomeScreenState extends State<HomeScreen> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
height: size.height * .1,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/assets/images/coach80.png')),
)),
Text('Intelligent Guider', style: TextStyle(fontSize: 20.0))
FlatButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
splashscreen()),
);
},
child: Image.asset(
'lib/assets/images/coach80.png'),
),
Text('Intelligent Guider',
style: TextStyle(fontSize: 20.0))
],
)),
Card(
......
......@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'home_screen.dart';
import 'i_guider.dart';
import 'I_GUIDER/i_guider.dart';
void main() => runApp(MaterialApp(
// initialRoute: '/guider',
......
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