Комментарии:
what if we dont make the variables like "counter" private, will it make any difference?
Ответитьbrother i used the code step by step and it added to sqlite but unable to see any in cart still 0. please help
Ответитьcart icon not visible kya kru ki visible ho pls reply me🙏
Ответитьsir badge to by default ab araha hai lakin ab es ko consumer ki saat kesy wrap krengi plz help
ОтветитьPlease solve this error: Cart( id:index, productId:index.toString(), productName:productName[index].toString(), initialPrice:productPrice[index], producPrice:productPrice[index], quantity:1, unitTag:productUnit[index].toString(), image:productImage[index].toString() ) this is the error:The argument type 'Cart (where Cart is defined in C:\Users\DELL\OneDrive\Documents\flutter\test2\test2\lib\Screens\cart.dart)' can't be assigned to the parameter type 'Cart (where Cart is defined in C:\Users\DELL\OneDrive\Documents\flutter\test2\test2\lib\Screens\cart_model.dart)'. The named parameter 'id' isn't defined.,The named parameter 'productId' isn't defined
As the name Cart is similar for both
please do videos in English
ОтветитьThanks Bro Very Nice Explained Videos
Ответить(1) table cart has no column named intialPrice
I/flutter (19653): DatabaseException(table cart has no column named intialPrice (code 1 SQLITE_ERROR): , while compiling: INSERT INTO cart (id, productId, productName, intialPrice, ProductPrice, quantity, unitTag, image) VALUES (?, ?, ?, ?, ?, ?, ?, ?)) sql 'INSERT INTO cart (id, productId, productName, intialPrice, ProductPrice, quantity, unitTag, image) VALUES (?, ?, ?, ?, ?, ?, ?, ?)' args [2, 2, Grapes, 30, 30, 1, KG, how to solve this and not add product to badge
Because shoppingcart depends on sqflite >=2.0.4-dev.1 which requires SDK version >=2.18.0-0 <3.0.0, version solving failed.
pub get failed (1; Because shoppingcart depends on sqflite >=2.0.4-dev.1 which requires SDK version >=2.18.0-0 <3.0.0, version solving failed.). how to solve this error
Bro Its good that you have make video but no properly explained code just typing the code from seeing somewhere.
ОтветитьGithub link provide kr do iska plz
Ответитьsir y wla project gibhub s download n hra r m code same to same yhi likh cka hn jb run krta hon products cart m add n hty r app run menu m build hti jati ha
ОтветитьFuture<Database?> get db async {
if (_db != null) {
return _db!;
}
_db = await initDatabase();
}
database_helper.dart file,
(db) is show error message;
This function has a nullable return type of 'FutureOr<Database?>', but ends without returning a value.\nTry adding a return statement, or if no value is ever returned, try changing the return type to 'void'.". please help!!
Bai mujay code ni mil raha ha github pay kindly link bata dyna
Ответитьbrother when um click first time add to cart it's don't added to cart and showing error (Null check operator used on a null value)...but 2nd time it's ok,,,,please check it may be you missed it
ОтветитьGrete and thanks. but i have an error "Error: Could not find the correct Provider<Cartprovider> above this", please help me to fixing this error
ОтветитьOn addition of the very first item to the cart there is and error saying "Null check operator used on a null value". Anyone knows how can we solve this problem?
Ответитьbrother when i add item to cart its print "Stack Overflow" error how to resolve this
Ответитьerrors are this video and fixed to add ======>>>> await dbClient?.insert('cart', cart.toMap(),
conflictAlgorithm: ConflictAlgorithm.replace);
**remember cart is table
Can you upload a tutorial of get api of e-commerce using provider and shared preferences as local storage instead of sqlite.
ОтветитьThanks it's help me in my mysql grocery project but i have 0 experienced with sqflite any big reason you used sqflite instead of mysql? & please make CRUD Tutorial in sqflite for beginners
ОтветитьBrother In this videos when you add item to cart for the first time it says Null check operator used on a null value and do not add item to cart then second time it added and again if you restart the project and add item it gives same error you have not solved this util your 9th (Last video)
Ответитьgreat videos .... useful video ... and properly define ... thanks again
Ответитьthanks dear
Ответитьsir mein DBHelper dbHelper = DBHelper(); lagta hon tho erroe deta hai sir please help kai kyun horaha hai
Ответитьlib/productlist.dart:116:31: Warning: Operand of null-aware operation '!' has type 'DBHelper' which excludes null.
- 'DBHelper' is from 'package:mycart/db/db_helper.dart' ('lib/db/db_helper.dart').
dbHelper!.insert(Cart(
Good job bro, but we need to update qty if product exists in cart not to show error that item already exists .. how we can ??
Ответить