addProductInformation

This commit is contained in:
2025-02-05 19:03:07 +05:30
parent f92e0300a4
commit 96e4c10656
14 changed files with 1399 additions and 1109 deletions

View File

@@ -68,15 +68,11 @@ class _BestDealScreenState extends State<BestDealScreen> {
));
}
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(
@@ -274,6 +270,10 @@ class _BestDealScreenState extends State<BestDealScreen> {
12,
),
),
if (provider.productDetails.data!.quantity > 0)
Text("In Stock ",
style:
TextStyle(color: Colors.green, fontSize: 14)),
Spacer(),
Row(
children: [