Handle BlocProvider with Modal Bottom Sheet

Issue I have a statefull widget with a Gesture detector within a Bloc Provider. @override Widget build(BuildContext context) { return RepositoryProvider.value( value: _authRepository, child: BlocProvider( create: (context) => AuthBloc(authRepository: AuthRepository()), child: Scaffold( body: GestureDetector( onTap: () { showSignInBottomSheet(context); }, ),

Continue reading

Router based navigation with flutter bloc

Issue I am trying to build my own router similar to go_router, based on flutter_bloc. What I am trying to achieve is very similar to this guide that inspired the minimal implementation below: import ‘package:flutter/foundation.dart’; import ‘package:flutter/material.dart’; import ‘package:flutter_bloc/flutter_bloc.dart’; void

Continue reading