Skip to content
Snippets Groups Projects
Commit aeb35e03 authored by Aayush's avatar Aayush
Browse files

Review Cart Page

parent 797a309c
No related branches found
No related tags found
1 merge request!3Main product
import 'package:flutter/material.dart';
import 'package:food_app/screens/home_screens/my_profile/my_profile.dart';
import 'package:food_app/screens/review_cart/review_cart.dart';
import '../../config/colors.dart';
......@@ -72,17 +73,28 @@ class DrawerSide extends StatelessWidget {
iconData: Icons.home_outlined,
title: "Home",
),
listTile(iconData: Icons.shop_outlined, title: "Review Cart"),
listTile(
iconData: Icons.person_outlined,
title: "My Profile",
onTap: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => MyProfile(),
),
);
}),
iconData: Icons.shop_outlined,
title: "Review Cart",
onTap: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => ReviewCart(),
),
);
},
),
listTile(
iconData: Icons.person_outlined,
title: "My Profile",
onTap: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => MyProfile(),
),
);
},
),
listTile(
iconData: Icons.notifications_outlined, title: "Notification"),
listTile(iconData: Icons.star_outline, title: "Rating & Review"),
......
......@@ -247,8 +247,8 @@ class HomeScreen extends StatelessWidget {
),
actions: [
CircleAvatar(
radius: 12,
backgroundColor: primaryColor,
radius: 15,
backgroundColor: Color(0xffd6d382),
child: IconButton(
onPressed: () {
Navigator.of(context).push(
......@@ -263,8 +263,8 @@ class HomeScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 5),
child: CircleAvatar(
backgroundColor: primaryColor,
radius: 12,
backgroundColor: Color(0xffd6d382),
radius: 15,
child: Icon(Icons.shop, size: 17, color: textColor),
),
)
......
import 'package:flutter/material.dart';
import 'package:food_app/config/colors.dart';
import 'package:food_app/widgets/single_item.dart';
class ReviewCart extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
bottomNavigationBar: ListTile(
title: Text("Total Amount"),
subtitle: Text("\$ 170.00",style: TextStyle(color: Colors.green[900],),),
trailing: Container(
width: 160,
child: MaterialButton(
child: Text("Submit"),
color: primaryColor,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30,),),
onPressed: () {},
),
),
),
appBar: AppBar(
title: Text(
"Review Cart",
style: TextStyle(color: textColor, fontSize: 18),
),
),
body: ListView(
children: [
SizedBox(
height: 10,
),
SingleItem(
isBool: true,
),
SingleItem(
isBool: true,
),
SizedBox(
height: 10,
),
],
),
);
}
}
import 'package:flutter/material.dart';
import 'package:food_app/screens/search/search_item.dart';
import 'package:food_app/widgets/single_item.dart';
class Search extends StatelessWidget {
@override
......@@ -38,11 +38,18 @@ class Search extends StatelessWidget {
SizedBox(
height: 10,
),
SearchItem(),
SearchItem(),
SearchItem(),
SearchItem(),
SearchItem(),
SingleItem(
isBool: false,
),
SingleItem(
isBool: false,
),
SingleItem(
isBool: false,
),
SingleItem(
isBool: false,
),
],
),
);
......
import 'package:flutter/material.dart';
import 'package:food_app/config/colors.dart';
class SearchItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: Row(
children: [
Expanded(
child: Container(
height: 100,
child: Center(
child: Image.network(
"https://www.pngitem.com/pimgs/m/490-4903879_fresh-basil-leaf-png-transparent-png.png"),
),
),
),
Expanded(
child: Container(
height: 100,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Column(
children: [
Text(
"productName",
style: TextStyle(
color: textColor, fontWeight: FontWeight.bold),
),
Text(
"50\$/50 Gram",
style: TextStyle(
color: Colors.grey,
),
),
],
),
Container(
margin: EdgeInsets.only(right: 15),
padding: EdgeInsets.symmetric(horizontal: 10),
height: 35,
decoration: BoxDecoration(
border: Border.all(color: Colors.grey),
borderRadius: BorderRadius.circular(30),
),
child: Row(
children: [
Expanded(
child: Text(
"50 Gram",
style: TextStyle(
color: Colors.grey,
fontSize: 12,
),
),
),
Center(
child: Icon(
Icons.arrow_drop_down,
size: 20,
color: primaryColor,
),
)
],
),
)
],
),
),
),
Expanded(
child: Container(
height: 100,
child: Container(
height: 100,
padding: EdgeInsets.symmetric(horizontal: 15, vertical: 32),
child: Container(
height: 25,
width: 50,
decoration: BoxDecoration(
border: Border.all(color: Colors.grey),
borderRadius: BorderRadius.circular(30),
),
child: Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.add,
color: primaryColor,
size: 20,
),
Text(
"ADD",
style: TextStyle(
color: primaryColor,
),
),
],
),
),
),
),
),
),
],
),
);
}
}
import 'package:flutter/material.dart';
import 'package:food_app/config/colors.dart';
import 'package:food_app/screens/search/search.dart';
class SingleItem extends StatelessWidget {
bool isBool = false;
SingleItem({this.isBool});
@override
Widget build(BuildContext context) {
return Column(
children: [
Padding(
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
child: Row(
children: [
Expanded(
child: Container(
height: 100,
child: Center(
child: Image.network(
"https://www.pngitem.com/pimgs/m/490-4903879_fresh-basil-leaf-png-transparent-png.png"),
),
),
),
Expanded(
child: Container(
height: 100,
child: Column(
mainAxisAlignment: isBool == false
? MainAxisAlignment.spaceAround
: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Column(
children: [
Text(
"productName",
style: TextStyle(
color: textColor, fontWeight: FontWeight.bold),
),
Text(
"50\$",
style: TextStyle(
color: textColor,
fontWeight: FontWeight.bold,
),
),
],
),
isBool == false
? Container(
margin: EdgeInsets.only(right: 5),
padding: EdgeInsets.symmetric(horizontal: 10),
height: 35,
decoration: BoxDecoration(
border: Border.all(color: Colors.grey),
borderRadius: BorderRadius.circular(30),
),
child: Row(
children: [
Expanded(
child: Text(
"50 Gram",
style: TextStyle(
color: Colors.grey,
fontSize: 12,
),
),
),
Center(
child: Icon(
Icons.arrow_drop_down,
size: 20,
color: primaryColor,
),
)
],
),
)
: Text("50 Gram")
],
),
),
),
Expanded(
child: Container(
height: 100,
child: Container(
height: 100,
padding: isBool == false
? EdgeInsets.symmetric(horizontal: 15, vertical: 32)
: EdgeInsets.only(left: 15, right: 15),
child: isBool == false
? Container(
height: 25,
width: 50,
decoration: BoxDecoration(
border: Border.all(color: Colors.grey),
borderRadius: BorderRadius.circular(30),
),
child: Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.add,
color: primaryColor,
size: 20,
),
Text(
"ADD",
style: TextStyle(
color: primaryColor,
),
),
],
),
),
)
: Column(
children: [
Icon(
Icons.delete,
size: 30,
color: Colors.black54,
),
SizedBox(
height: 5,
),
Container(
height: 25,
width: 70,
decoration: BoxDecoration(
border: Border.all(color: Colors.grey),
borderRadius: BorderRadius.circular(30),
),
child: Center(
child: Row(
mainAxisAlignment:
MainAxisAlignment.center,
children: [
Icon(
Icons.add,
color: primaryColor,
size: 20,
),
Text(
"ADD",
style: TextStyle(
color: primaryColor,
),
),
],
),
),
)
],
)),
),
),
],
),
),
isBool == false
? Container()
: Divider(
height: 1,
color: Colors.black45,
)
],
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment