update
This commit is contained in:
parent
87d8bb483e
commit
17a1430ef0
11 changed files with 271 additions and 25 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue