Commit 22d93ed3 authored by Piyumi Dayarathna's avatar Piyumi Dayarathna 💬

Merge branch 'revert-bd22a945' into 'master'

Revert "Merge branch 'IGuider_KumaraRPIN' into 'master'"

See merge request !4
parents bd22a945 e178d99b
......@@ -90,38 +90,13 @@ class _HomeScreenState extends State<HomeScreen> {
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,
height: size.height * .1,
decoration: BoxDecoration(
// image: DecorationImage(
// image: AssetImage(
// '')),
),
),
image: DecorationImage(
image: AssetImage(
'lib/assets/images/map80.png')),
)),
Text('Map', style: TextStyle(fontSize: 20.0))
],
)),
Card(
......
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class I_guider extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('I-Guider'),
// elevation: 0,
),
body: Column(
children: [
Row(
children: [
Expanded(
child: Container(
child: Text('Main Area'),
height: 300,
color: Colors.blue[200],
),
),
],
),
//------------------------------------
SizedBox(
height: 15,
),
Row(
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.fromLTRB(8, 0, 8, 0),
child: ButtonTheme(
minWidth: 100.0,
height: 150.0,
child: RaisedButton.icon(
icon: Icon(
Icons.bluetooth_audio_rounded,
size: 40,
color: Colors.white,
),
label: Text('',
style: TextStyle(fontWeight: FontWeight.bold)),
onPressed: () {},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10)),
color: Colors.blue[200],
),
),
),
),
Expanded(
child: Padding(
padding: const EdgeInsets.fromLTRB(8, 0, 8, 0),
child: ButtonTheme(
minWidth: 100.0,
height: 150.0,
child: RaisedButton.icon(
color: Colors.red[200],
icon: Icon(
Icons.face_unlock_sharp,
size: 60,
color: Colors.white,
),
label: Text(
'',
style: TextStyle(fontWeight: FontWeight.bold),
),
onPressed: () {},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10)),
),
),
),
)
],
),
SizedBox(height: 10),
Row(
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.fromLTRB(8, 0, 8, 0),
child: ButtonTheme(
minWidth: 100.0,
height: 150.0,
child: RaisedButton.icon(
icon: Icon(
Icons.notifications_active,
size: 40,
color: Colors.white,
),
label: Text('',
style: TextStyle(fontWeight: FontWeight.bold)),
onPressed: () {},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10)),
color: Colors.greenAccent,
),
),
),
),
Expanded(
child: Padding(
padding: const EdgeInsets.fromLTRB(8, 0, 8, 0),
child: ButtonTheme(
minWidth: 100.0,
height: 150.0,
child: RaisedButton.icon(
color: Colors.purple[200],
icon: Icon(
Icons.online_prediction_sharp,
size: 60,
color: Colors.white,
),
label: Text(
'',
style: TextStyle(fontWeight: FontWeight.bold),
),
onPressed: () {},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10)),
),
),
),
)
],
),
],
),
);
}
}
import 'package:flutter/material.dart';
import 'home_screen.dart';
import 'i_guider.dart';
void main() => runApp(MaterialApp(
// initialRoute: '/guider',
routes: {
'/':(context) => HomeScreen(),
'/guider':(context) => I_guider(),
},
));
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: HomeScreen(),
);
}
}
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