Skip to content

Commit

Permalink
Merge pull request #25 from Subhash23jan/subhash
Browse files Browse the repository at this point in the history
final
  • Loading branch information
Subhash23jan authored Feb 10, 2024
2 parents de47899 + 1ff0b7c commit a600a54
Show file tree
Hide file tree
Showing 1,986 changed files with 85,151 additions and 56,711 deletions.
Binary file modified assets/images/amazon_in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
const express=require('express');
const express = require('express');
const http=require('http')
const mongoose=require('mongoose');
const authRouter = require('./server/routes/auth');
const userRouter = require('./server/routes/user_router');
const adminRouter = require('./server/routes/admin_router');
const productRouter = require('./server/routes/product_router');
const DB='mongodb+srv://xxxxxxxx@cluster0.wgtypza.mongodb.net/?retryWrites=true&w=majority';
console.log("subhash");
const app=express();
const app = express();

const PORT=3000;
app.set("connection", "close");
app.use(express.json());
Expand Down
2 changes: 1 addition & 1 deletion lib/constants/global_variables.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';

const String uri = "http://192.168.1.5:3000/";
const String uri = "http://192.168.1.8:3000/";

class GlobalVariables {
static const appBarGradient = LinearGradient(
Expand Down
330 changes: 196 additions & 134 deletions lib/pages/Cart/screens/cart_page.dart

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/pages/homeScreen/screens/home_screen_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class _HomepageScreenState extends State<HomepageScreen> {
),
),
prefixIcon:const Icon(Icons.search,color: Colors.grey,size: 26,),
hintText: "Search in Amazon.in",
hintText: "Search in our app",
hintStyle: TextStyle(color: Colors.black54,fontWeight: FontWeight.w500,fontSize: 14)
),
),
Expand Down Expand Up @@ -117,7 +117,7 @@ class _HomepageScreenState extends State<HomepageScreen> {
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(50)),
elevation: 16,
onPressed: (){
showSnackBar("sorry!! It is not real amazon app..🙅", context);
showSnackBar("sorry!! It is not real app..🙅", context);
},child: ClipRRect(
borderRadius: BorderRadius.circular(50),
child: Image.network("https://cdn.icon-icons.com/icons2/2108/PNG/512/amazon_alexa_icon_130998.png",width: 120,height: 120,)), ),
Expand Down
24 changes: 14 additions & 10 deletions lib/pages/homeScreen/widgets/addressBox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@ import 'package:flutter/material.dart';

import '../../../constants/global_variables.dart';

Container addressBox()
{
Container addressBox() {
return Container(
height: 30,
padding: const EdgeInsets.only(bottom: 15,left: 2,right: 2),
decoration: const BoxDecoration(
gradient: GlobalVariables.appBarGradient
),
padding: const EdgeInsets.only(bottom: 15, left: 2, right: 2),
decoration: const BoxDecoration(gradient: GlobalVariables.appBarGradient),
child: const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Icon(Icons.location_on,size: 18,),
children: [
Icon(
Icons.location_on,
size: 18,
),
Flexible(
child: Text(" Deliver to : Subhash Uttarahalli Bcm Hostel,Bengaluru 560061,karnataka",style:TextStyle(fontSize: 14.6,fontWeight: FontWeight.w400),overflow: TextOverflow.ellipsis,
child: Text(
" Deliver to : BMSCE,Bengaluru 560019,karnataka",
style: TextStyle(fontSize: 14.6, fontWeight: FontWeight.w400),
overflow: TextOverflow.ellipsis,
softWrap: true,
maxLines: 1,),
maxLines: 1,
),
),
Icon(Icons.arrow_drop_down)
],
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/order_history.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class _MyOrdersState extends State<MyOrders> {
return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar(

title: Text("Your Orders",style: GoogleFonts.aBeeZee(color: Colors.white),),
// centerTitle: true,
backgroundColor:GlobalVariables.secondaryColor,
Expand Down Expand Up @@ -85,7 +84,7 @@ class _MyOrdersState extends State<MyOrders> {
alignment: Alignment.center,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15),),
shadowColor: Colors.white,
side: BorderSide(width: 1,style: BorderStyle.solid)
side: const BorderSide(width: 1,style: BorderStyle.solid)
),

onPressed: (){
Expand Down
2 changes: 0 additions & 2 deletions lib/products/product_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,7 @@ class _ProductPageState extends State<ProductPage> {
DropdownButtonHideUnderline selectItemCount(BuildContext context){
return DropdownButtonHideUnderline(
child: DropdownButton2<String>(

hint: const Text("1"),

items: items
.map((String item) => DropdownMenuItem<String>(
value: item,
Expand Down
2 changes: 1 addition & 1 deletion lib/products/screens/all_products.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class _AllProductsState extends State<AllProducts> {
),
),
prefixIcon:const Icon(Icons.search,color: Colors.grey,size: 26,),
hintText: "Search in Amazon.in",
hintText: "Search in app",
hintStyle: const TextStyle(color: Colors.black54,fontWeight: FontWeight.w500,fontSize: 14)
),
),
Expand Down
4 changes: 4 additions & 0 deletions lib/services/auth_services.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ignore_for_file: use_build_context_synchronously
import 'package:amazon_clone_flutter/main.dart';
import 'package:amazon_clone_flutter/provider/user_provider.dart';
import 'package:flutter/foundation.dart';
import 'package:provider/provider.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'dart:convert';
Expand Down Expand Up @@ -50,6 +51,9 @@ class AuthService {
});
} catch (e) {
showSnackBar(e.toString(), context);
if (kDebugMode) {
print(e.toString());
}
}
}

Expand Down
Loading

0 comments on commit a600a54

Please sign in to comment.