addProductInformation
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user