Skip to content
Snippets Groups Projects
Commit 4a72698b authored by Om Akbari's avatar Om Akbari
Browse files

Changes to Login and Home Page

parent 04c89033
No related branches found
No related tags found
1 merge request!3Main product
assets/background.png

90.6 KiB | W: | H:

assets/background.png

108 KiB | W: | H:

assets/background.png
assets/background.png
assets/background.png
assets/background.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -12,15 +12,19 @@ class SignIn extends StatefulWidget {
}
class _SignInState extends State<SignIn> {
Future<void>_googleSignUp() async {
Future<void> _googleSignUp() async {
try {
final GoogleSignIn _googleSignIn = GoogleSignIn(
scopes: ['email','https://www.googleapis.com/auth/contacts.readonly', ],
scopes: [
'email',
'https://www.googleapis.com/auth/contacts.readonly',
],
);
final FirebaseAuth _auth = FirebaseAuth.instance;
final GoogleSignInAccount googleUser = await _googleSignIn.signIn();
final GoogleSignInAuthentication googleAuth = await googleUser.authentication;
final GoogleSignInAuthentication googleAuth =
await googleUser.authentication;
final AuthCredential credential = GoogleAuthProvider.credential(
accessToken: googleAuth.accessToken,
......@@ -57,9 +61,9 @@ class _SignInState extends State<SignIn> {
children: [
Text('Sign in to continue'),
Text(
'Vegi Cart',
'Vegi',
style:
TextStyle(fontSize: 50, color: Colors.white, shadows: [
TextStyle(fontSize: 50, color: Colors.orange, shadows: [
BoxShadow(
blurRadius: 5,
color: Colors.green.shade900,
......@@ -95,7 +99,7 @@ class _SignInState extends State<SignIn> {
'By signing in you are agreeing to our',
style: TextStyle(
color: Colors.grey[800],
),
),
),
Text(
'Terms and Privacy Policy',
......
......@@ -9,7 +9,7 @@ class ProductProvider with ChangeNotifier {
fetchHerbsProductData() async {
List<ProductModel> newList = [];
QuerySnapshot value =
await FirebaseFirestore.instance.collection("HerbsProduct").get();
await FirebaseFirestore.instance.collection("HerbsProduct ").get();
value.docs.forEach(
(element) {
productModel = ProductModel(
......@@ -33,9 +33,8 @@ class ProductProvider with ChangeNotifier {
fetchFreshProductData() async {
List<ProductModel> newList = [];
QuerySnapshot value = await FirebaseFirestore.instance
.collection("FreshFruitsProduct")
.get();
QuerySnapshot value =
await FirebaseFirestore.instance.collection("FreshFruitsProduct").get();
value.docs.forEach(
(element) {
......
......@@ -24,7 +24,7 @@ class DrawerSide extends StatelessWidget {
return Drawer(
child: Container(
width: 100,
color: primaryColor,
color: Color(0xff2196f3),
child: ListView(
children: [
DrawerHeader(
......@@ -132,7 +132,7 @@ class DrawerSide extends StatelessWidget {
width: 10,
),
Text(
"abc@contoso.com",
"customersupport@vegi.com",
overflow: TextOverflow.ellipsis,
),
],
......
......@@ -47,7 +47,6 @@ class _HomeScreenState extends State<HomeScreen> {
productImage: herbsProductData.productImage,
productName: herbsProductData.productName,
productPrice: herbsProductData.productPrice,
),
),
);
......@@ -55,7 +54,6 @@ class _HomeScreenState extends State<HomeScreen> {
productImage: herbsProductData.productImage,
productName: herbsProductData.productName,
productPrice: herbsProductData.productPrice,
);
},
).toList(),
......@@ -105,7 +103,6 @@ class _HomeScreenState extends State<HomeScreen> {
productImage: freshProductData.productImage,
productName: freshProductData.productName,
productPrice: freshProductData.productPrice,
);
},
).toList(),
......@@ -152,7 +149,6 @@ class _HomeScreenState extends State<HomeScreen> {
productImage: rootProductData.productImage,
productName: rootProductData.productName,
productPrice: rootProductData.productPrice,
);
},
).toList(),
......
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