update
This commit is contained in:
parent
2d3f5bd96e
commit
f4119130a6
17 changed files with 232 additions and 138 deletions
22
lib/widgets/glossy_container_widget.dart
Normal file
22
lib/widgets/glossy_container_widget.dart
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:glossy/glossy.dart';
|
||||
|
||||
class GlossyContainerWidget extends StatelessWidget {
|
||||
final double height;
|
||||
final Widget child;
|
||||
const GlossyContainerWidget({super.key, required this.height, required this.child});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GlossyContainer(
|
||||
height: MediaQuery.of(context).size.height * height,
|
||||
width: MediaQuery.of(context).size.width,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(16)),
|
||||
color: const Color.fromRGBO(20, 13, 22, 1),
|
||||
border: Border.all(width: 0, color: const Color.fromRGBO(169, 132, 172, 1)),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(32, 32, 32, 40),
|
||||
child: child,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
@ -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