diff --git a/lib/start3.dart b/lib/start3.dart index c122cc2..0d051eb 100644 --- a/lib/start3.dart +++ b/lib/start3.dart @@ -22,10 +22,7 @@ class start3 extends StatelessWidget { return Material( child: Scaffold( backgroundColor: Colors.greenAccent[100], - floatingActionButton: FloatingActionButton( - onPressed: () { - _BottomSheet(context); - }, + backgroundColor: Colors.deepOrangeAccent, child: Icon(Icons.add), ), @@ -148,86 +145,7 @@ class start3 extends StatelessWidget { ); } - void _BottomSheet(context) { - showModalBottomSheet( - backgroundColor: Colors.blue[100], - context: context, - builder: (BuildContext bc) { - return Container( - margin: EdgeInsets.only(bottom: 20.0), - child: Row( - children: [ - Expanded( - child: FlatButton( - onPressed: () { - Navigator.push(context, - MaterialPageRoute(builder: (context) => create())); - }, - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Container( - margin: EdgeInsets.only(top: 20.0), - child: Image.asset( - 'images/s5.jpg', - fit: BoxFit.fill, - ), - color: Colors.deepOrangeAccent, - ), - Text("Craete Plant") - ], - )), - ), - Expanded( - child: FlatButton( - onPressed: () { - Navigator.push(context, - MaterialPageRoute(builder: (context) => search())); - }, - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Container( - margin: EdgeInsets.only(top: 12.0), - child: Image.asset( - "images/s3.jpg", - fit: BoxFit.fill, - ), - color: Colors.blue, - ), - Text("Search Plant") - ], - )), - ), - Expanded( - child: FlatButton( - onPressed: () { - Navigator.push(context, - MaterialPageRoute(builder: (context) => group())); - }, - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Container( - margin: EdgeInsets.only(top: 20.0), - child: Image.asset( - 'images/s4.jpg', - fit: BoxFit.fill, - ), - color: Colors.lightGreenAccent, - ), - Text( - "Create Group", - style: TextStyle(), - ) - ], - )), - ) - ], - ), - ); - }); - } + // void validation(String str) { // if (iValue == 'Logout') { @@ -245,15 +163,5 @@ class start3 extends StatelessWidget { // } // } - void Watering(BuildContext context) { - showDialog( - context: context, - builder: (BuildContext conntext) { - return AlertDialog( - content: Container( - child: Text("Watering to Plants"), - ), - ); - }); - } + }