This commit is contained in:
Patrick Alvin Alcala 2025-02-05 17:06:13 +08:00
parent 87d8bb483e
commit 17a1430ef0
11 changed files with 271 additions and 25 deletions

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:pharmacy_mobile/pages/add_category.dart';
import 'package:pharmacy_mobile/pages/add_generics.dart';
import 'package:pharmacy_mobile/pages/add_medicine.dart';
import 'package:pharmacy_mobile/pages/add_stock.dart';
@ -35,7 +36,7 @@ final _router = GoRouter(
initialLocation: '/',
routes: [
GoRoute(
name: 'index', // Optional, add name to your routes. Allows you navigate by name instead of path
name: 'index',
path: '/',
builder: (context, state) => IndexPage(),
),
@ -69,6 +70,11 @@ final _router = GoRouter(
path: '/addtype',
builder: (context, state) => AddTypePage(),
),
GoRoute(
name: 'addcategory',
path: '/addcategory',
builder: (context, state) => AddCategoryPage(),
),
GoRoute(
name: 'addstock',
path: '/addstock',