python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Moving my existing flutter project to bloc architechture
The project assigned to me is a huge project with multiple screens and widgets.
This project does not follow any kind of architecture. We are facing many issues related to state management and decided...
Nibha Jain
Votes: 0
Answers: 0
How to re-trigger initial event in Bloc instead using initState?
Here's the thing, I use get_it as dependency injection, and so I have the code:
final sl = GetIt.instance;
Future<void> init() async {
sl.registerFactory(
() => ABloc(
services:...
Daniel Roldán
Votes: 0
Answers: 0
FlutterBloc - set state value as initial text in TextFormField
Please look at my sample code:
@override
Widget build(BuildContext context) {
final selectedIssue = context.select((IssueDetailsBloc bloc) => bloc.state.selectedIssue) ?? InternalIssue();
...
user1209216
Votes: 0
Answers: 1
Could not find the correct Provider<Movies> above this MyApp Widget
So, I'm using BLoC and Provider packages in one app.
In my 'moviesprovider.dart' I am fetching some data from my API which returns a json, when app is opening first time. How can I get access to Provi...
Lexxxzy
Votes: 0
Answers: 2