feat: update home ui

This commit is contained in:
Efril
2026-06-23 21:27:27 +07:00
parent e236d811ce
commit 83f4e065ed
34 changed files with 2128 additions and 1597 deletions
@@ -13,14 +13,10 @@ class HomeFeature extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.symmetric(
vertical: 24,
horizontal: AppValue.padding,
).copyWith(bottom: 0),
margin: const EdgeInsets.symmetric().copyWith(bottom: 0),
padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 10),
decoration: BoxDecoration(
color: AppColor.white,
borderRadius: BorderRadius.circular(AppValue.radius),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.04),
@@ -34,7 +30,7 @@ class HomeFeature extends StatelessWidget {
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
HomeFeatureTile(
title: context.lang.sales,
@@ -43,24 +39,25 @@ class HomeFeature extends StatelessWidget {
),
HomeFeatureTile(
title: context.lang.purchase,
iconPath: Assets.icons.icReportPurchase.path,
iconPath: Assets.icons.icReportPurchase.path,
onTap: () => context.router.push(PurchaseRoute()),
),
HomeFeatureTile(
title: context.lang.profit_loss,
iconPath: Assets.icons.icReportProfitLoss.path,
iconPath: Assets.icons.icReportProfitLoss.path,
onTap: () => context.router.push(FinanceRoute()),
isHighlighted: true,
),
HomeFeatureTile(
title: context.lang.exclusive_summary,
iconPath: Assets.icons.icReportExclusiveSummary.path,
onTap: () => context.router.push(ExclusiveSummaryRoute()),
title: context.lang.stock,
iconPath: Assets.icons.icReportStock.path,
onTap: () => context.router.push(InventoryRoute()),
),
HomeFeatureTile(
title: context.lang.product,
iconPath: Assets.icons.icReportProduct.path,
onTap: () => context.router.push(ProductRoute()),
),
// HomeFeatureTile(
// title: context.lang.inventory,
// iconPath: Assets.icons.icReportProduct.path,
// onTap: () => context.router.push(InventoryRoute()),
// ),
],
),
// Row(