Commit e178d99b authored by Piyumi Dayarathna's avatar Piyumi Dayarathna 💬

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

This reverts merge request !3
parent bd22a945
...@@ -90,38 +90,13 @@ class _HomeScreenState extends State<HomeScreen> { ...@@ -90,38 +90,13 @@ class _HomeScreenState extends State<HomeScreen> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
Container( Container(
child: Expanded( height: size.height * .1,
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( decoration: BoxDecoration(
// image: DecorationImage( image: DecorationImage(
// image: AssetImage( image: AssetImage(
// '')), 'lib/assets/images/map80.png')),
), )),
), Text('Map', style: TextStyle(fontSize: 20.0))
], ],
)), )),
Card( 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 'package:flutter/material.dart';
import 'home_screen.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