added cache for generics

This commit is contained in:
Patrick Alvin Alcala 2025-03-20 14:17:01 +08:00
parent 1aa7410e2e
commit bcf9823ffb
13 changed files with 108 additions and 9 deletions

View file

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:pharmacy_mobile/auth/auth_gate.dart';
import 'package:pharmacy_mobile/blocs/caches/categorylist/categorylist_cache_bloc.dart';
import 'package:pharmacy_mobile/blocs/caches/genericlist/genericlist_cache_bloc.dart';
import 'package:pharmacy_mobile/blocs/guest/guest_bloc.dart';
import 'package:pharmacy_mobile/blocs/user/user_bloc.dart';
import 'package:pharmacy_mobile/pages/add_category_page.dart';
@ -128,6 +129,9 @@ class MyApp extends StatelessWidget {
BlocProvider(
create: (context) => CategoryListBloc(),
),
BlocProvider(
create: (context) => GenericListBloc(),
),
],
child: MaterialApp.router(
debugShowCheckedModeBanner: false,