added cache for categories

This commit is contained in:
Patrick Alvin Alcala 2025-03-20 13:10:39 +08:00
parent 753c730588
commit 1aa7410e2e
14 changed files with 195 additions and 63 deletions

View file

@ -1,6 +1,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/guest/guest_bloc.dart';
import 'package:pharmacy_mobile/blocs/user/user_bloc.dart';
import 'package:pharmacy_mobile/pages/add_category_page.dart';
@ -124,6 +125,9 @@ class MyApp extends StatelessWidget {
BlocProvider(
create: (context) => UserBloc(),
),
BlocProvider(
create: (context) => CategoryListBloc(),
),
],
child: MaterialApp.router(
debugShowCheckedModeBanner: false,