updateProfile

This commit is contained in:
2025-02-03 01:29:42 +05:30
parent 42aaa7cdad
commit 1f7254ecaa
48 changed files with 6088 additions and 2473 deletions

View File

@@ -62,14 +62,21 @@ class _BestDealScreenState extends State<BestDealScreen> {
],
),
floatingActionButton: floatingAction(),
body: itemBestdeal());
body: Padding(
padding: const EdgeInsets.only(bottom: 100),
child: itemBestdeal(),
));
}
Widget floatingAction() {
return Consumer<ProductProvider>(builder: (context, provider, child) {
if (provider.countList.isEmpty) {
Widget floatingAction()
{
return Consumer<ProductProvider>(builder: (context, provider, child)
{
if (provider.countList.isEmpty)
{
return Center();
} else {
} else
{
return Padding(
padding: const EdgeInsets.only(left: 30),
child: Container(
@@ -93,7 +100,7 @@ class _BestDealScreenState extends State<BestDealScreen> {
color: Colors.white.withOpacity(0.5),
borderRadius: BorderRadius.circular(10)),
),
const Positioned(
Positioned(
left: 20,
bottom: 0,
top: 0,
@@ -102,7 +109,7 @@ class _BestDealScreenState extends State<BestDealScreen> {
height: 70,
width: 70,
radius: 10,
imageUrl:
imageUrl: provider.lastImageurl ??
"https://5.imimg.com/data5/SELLER/Default/2024/2/385126988/OL/DA/VW/8627346/1l-fortune-sunflower-oil.jpg",
backGroundColor: Colors.white,
),
@@ -113,15 +120,12 @@ class _BestDealScreenState extends State<BestDealScreen> {
const SizedBox(
width: 10,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
provider.countList.length.toString(),
style: context.customRegular(Colors.white, 18),
),
],
Text(
provider.countList.length.toString(),
style: context.customRegular(
Colors.white,
29,
),
),
const Spacer(),
InkWell(
@@ -306,8 +310,12 @@ class _BestDealScreenState extends State<BestDealScreen> {
onTap: () async {
if (await SharedPrefUtils.getToken() !=
null) {
await provider.addToWithCart(context,
bestdealproduct.id!, bestdealproduct);
await provider.addToWithCart(
context,
bestdealproduct.id!,
bestdealproduct,
bestdealproduct
.productImages?.first.url);
} else {
context.push(MyRoutes.SIGNUP);
}