Refactor routine creation logic and add new dropdown events

This commit is contained in:
mohammad
2025-06-15 13:29:32 +03:00
parent 994e9f4e57
commit 57508fe17e
9 changed files with 392 additions and 166 deletions

View File

@ -23,8 +23,7 @@ class _CreateNewRoutinesDialogState extends State<CreateNewRoutinesDialog> {
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (BuildContext context) =>
CreateRoutineBloc()..add(const FetchCommunityEvent()),
create: (BuildContext context) => CreateRoutineBloc(),
child: BlocBuilder<CreateRoutineBloc, CreateRoutineState>(
builder: (context, state) {
final _bloc = BlocProvider.of<CreateRoutineBloc>(context);