update
This commit is contained in:
parent
2d3f5bd96e
commit
f4119130a6
17 changed files with 232 additions and 138 deletions
|
|
@ -2,15 +2,22 @@ import 'package:flutter/material.dart';
|
|||
import 'package:gap/gap.dart';
|
||||
import 'package:pharmacy_mobile/widgets/text_widget.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:redacted/redacted.dart';
|
||||
|
||||
class ItemCardWidget extends StatelessWidget {
|
||||
final String imageUrl;
|
||||
final String text;
|
||||
final double price;
|
||||
final double quantity;
|
||||
final bool isLoading;
|
||||
|
||||
const ItemCardWidget(
|
||||
{super.key, required this.imageUrl, required this.text, required this.price, required this.quantity});
|
||||
{super.key,
|
||||
required this.imageUrl,
|
||||
required this.text,
|
||||
required this.price,
|
||||
required this.quantity,
|
||||
required this.isLoading});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
@ -74,7 +81,7 @@ class ItemCardWidget extends StatelessWidget {
|
|||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
).redacted(context: context, redact: isLoading),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue