prodycrts
This commit is contained in:
@@ -394,19 +394,19 @@ class GridSpecs {
|
||||
static const int productGridColumns = 2;
|
||||
|
||||
/// Product grid cross axis spacing
|
||||
static const double productGridCrossSpacing = AppSpacing.md;
|
||||
static const double productGridCrossSpacing = AppSpacing.xs;
|
||||
|
||||
/// Product grid main axis spacing
|
||||
static const double productGridMainSpacing = AppSpacing.md;
|
||||
static const double productGridMainSpacing = AppSpacing.xs;
|
||||
|
||||
/// Quick action grid cross axis count
|
||||
static const int quickActionColumns = 3;
|
||||
|
||||
/// Quick action grid cross axis spacing
|
||||
static const double quickActionCrossSpacing = AppSpacing.md;
|
||||
static const double quickActionCrossSpacing = AppSpacing.sm;
|
||||
|
||||
/// Quick action grid main axis spacing
|
||||
static const double quickActionMainSpacing = AppSpacing.md;
|
||||
static const double quickActionMainSpacing = AppSpacing.sm;
|
||||
}
|
||||
|
||||
/// List specifications
|
||||
|
||||
@@ -7,6 +7,7 @@ library;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:worker/features/home/presentation/pages/home_page.dart';
|
||||
import 'package:worker/features/products/presentation/pages/products_page.dart';
|
||||
|
||||
/// App Router
|
||||
///
|
||||
@@ -34,16 +35,17 @@ class AppRouter {
|
||||
),
|
||||
),
|
||||
|
||||
// Products Route
|
||||
GoRoute(
|
||||
path: RouteNames.products,
|
||||
name: RouteNames.products,
|
||||
pageBuilder: (context, state) => MaterialPage(
|
||||
key: state.pageKey,
|
||||
child: const ProductsPage(),
|
||||
),
|
||||
),
|
||||
|
||||
// TODO: Add more routes as features are implemented
|
||||
// Example:
|
||||
// GoRoute(
|
||||
// path: RouteNames.products,
|
||||
// name: RouteNames.products,
|
||||
// pageBuilder: (context, state) => MaterialPage(
|
||||
// key: state.pageKey,
|
||||
// child: const ProductsPage(),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
|
||||
// Error page for unknown routes
|
||||
|
||||
Reference in New Issue
Block a user