bloc Questions

1

Solved

im new to bloc pattern in flutter. One of my states classes have a list of widget and an index as a field. My goal is to update the child of an Animated Switcher using this state's widgets. ret...
Pahang asked 7/11, 2019 at 13:25

2

In Android’s MVVM passing context to viewmodel means breaking the pattern. Should you pass BuildContext to bloc class in Flutter’s Bloc architecture?
Galarza asked 22/10, 2019 at 13:26

3

Solved

I have created a Flutter page which has a bunch of inputs in it. I thought this is a mess, let's refactor it and created a new stateful widget for each input. This is great except the data needs ...
Geomorphic asked 23/6, 2019 at 9:2

2

Solved

I am trying to fetch some data from the internet, store it to my sqlite database and display it on the screen using a ListView. When I fetch the data for the first time everything works fine and I...
Kalat asked 14/1, 2019 at 16:48

2

Solved

hi I am new with bloc in flutter and I'm trying to understand block timer In the doc of flutter_bloc and I would know what's this constructor class mean @immutable abstract class TimerState exte...
Can asked 27/9, 2019 at 17:3

1

Solved

I am using the flutter_bloc library to architect my app. In addition to the BlocProvider I am using the Repository Provider, since I will be using a specific repository extensively throughout my ap...
Labannah asked 25/9, 2019 at 17:25

1

I'm relatively new to Flutter and the BLoC pattern, so I'm still trying to wrap my head around everything. Let's say I have a quiz app where I have a BLoC called QuestionBloc which uses a reposito...
Monkfish asked 1/8, 2019 at 13:5

1

Solved

I need to make a function call which does not return anything (void). Only way to get notified about function completion is sending a callback function. Now I an using BLoC pattern along with ReDux...
Actinozoan asked 19/7, 2019 at 6:5

1

Solved

BlocBuilder of flutter_bloc is kind of put all state of page together. There's a case for pulling a list there's 2 data (isPullingState, dataList), how can I avoid build widget part of dataList wh...
Torquemada asked 14/7, 2019 at 5:44

1

Solved

Currently I'm working with BLoCs in Flutter and I've got a question about multiple streams within a Bloc. For example when a screen has got multiple widgets which should depend on the Bloc. I cou...
Colman asked 12/7, 2019 at 12:13

1

Solved

Trying to learn BLoCs I came up with this problem. I have some code in which I generate some buttons with BLoC pattern. However, I have no clue how to update specific buttons properties with dispat...
Berte asked 4/7, 2019 at 10:28

1

this is my cloud firestore looks like: Error Message: Unhandled Exception: Converting object to an encodable object failed: Photography used jsonSerialization for my database import 'packag...
Humectant asked 22/6, 2019 at 6:39

3

Solved

I would like to know the best way to pass the bloc. I read about the bloc providers, but what`s the difference between using them and just passing the bloc in the constructor like: ExampleView X =...
Battery asked 16/5, 2019 at 7:54

1

Solved

I've been dabbling with flutter for a few days, and I'm trying to make a simple ToDo app, as a learning project. I'm trying to implement something like a BLoC. A list of ListItem widgets is built w...
Ofelia asked 13/5, 2019 at 10:58

1

Solved

I am fetching articles from HackerNews API using Bloc Pattern and Streams. I am loading all the articles and presenting in the UI with the help of a stream builder, and this works fine. Now I wr...
Chantay asked 6/5, 2019 at 20:58

1

Solved

I think I have now at least a vague idea of how to use a BLoC, Stream Builder and Inherited Widget(or Model) in my app (nothing special, but for me it took time), but playing with the Scoped Model ...
Paradies asked 16/12, 2018 at 15:26

1

Solved

so I was following bloc login tutorial, and while I managed to complete it, I'm still fairly new to Flutter & Dart. There is a portion of the code where, depending on the state, the code retur...
Turboelectric asked 8/4, 2019 at 20:15

1

Solved

I know that some of my BLOCs will be instantiated only once throughout the app lifecycle. Is it bad practice or anti-pattern to create these BLOC classes as a singleton. Singleton can help in acces...
Phraseologist asked 10/3, 2019 at 11:19

1

Solved

I am trying to implement bloc pattern in rxdart . I am trying to build todo app type of app . I implemented showing all items in list but what I want is not to show completed and uncompleted items ...
Byler asked 3/2, 2019 at 5:44

1

Solved

I have a Bloc class that needs three streams based on the same stream controller. class TodoBloc { final _todoController = StreamController<List<TodoModel>>(); get allTodoStream =&...
Vachel asked 20/1, 2019 at 14:45

1

Solved

I am trying the bloc pattern for my flutter app. I want to change colour of text field when the stream value changes. Following is my bloc code class Bloc { final StreamController<bool> _...
Lafrance asked 17/1, 2019 at 4:10

© 2022 - 2024 — McMap. All rights reserved.