Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 3 additions & 95 deletions lib/start3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
Expand Down Expand Up @@ -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: <Widget>[
Expanded(
child: FlatButton(
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (context) => create()));
},
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
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: <Widget>[
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: <Widget>[
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') {
Expand All @@ -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"),
),
);
});
}

}