feat: update
This commit is contained in:
parent
cc8012354f
commit
79585b253d
@ -28,9 +28,7 @@ class _InventoryReportWidgetState extends State<InventoryReportWidget> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Expanded(
|
||||
flex: 4,
|
||||
child: Container(
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.white,
|
||||
@ -83,10 +81,8 @@ class _InventoryReportWidgetState extends State<InventoryReportWidget> {
|
||||
final status =
|
||||
await PermessionHelper().checkPermission();
|
||||
if (status) {
|
||||
final pdfFile =
|
||||
await InventoryReport.previewPdf(
|
||||
searchDateFormatted:
|
||||
widget.searchDateFormatted,
|
||||
final pdfFile = await InventoryReport.previewPdf(
|
||||
searchDateFormatted: widget.searchDateFormatted,
|
||||
inventory: widget.inventory,
|
||||
);
|
||||
log("pdfFile: $pdfFile");
|
||||
@ -115,8 +111,8 @@ class _InventoryReportWidgetState extends State<InventoryReportWidget> {
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.primary.withOpacity(0.1),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
border: Border.all(
|
||||
color: AppColors.primary, width: 1),
|
||||
border:
|
||||
Border.all(color: AppColors.primary, width: 1),
|
||||
),
|
||||
child: Icon(
|
||||
Icons.download_outlined,
|
||||
@ -135,8 +131,7 @@ class _InventoryReportWidgetState extends State<InventoryReportWidget> {
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.green.withOpacity(0.1),
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
border:
|
||||
Border.all(color: AppColors.green, width: 1),
|
||||
border: Border.all(color: AppColors.green, width: 1),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@ -251,7 +246,6 @@ class _InventoryReportWidgetState extends State<InventoryReportWidget> {
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user