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