How to change the state in a bloc? – Flutter
I just started to study the bloc and I have a question. I need to change the color when the state is selected, and according to my logic, I have to do state = Colors.red, but unfortunately this is not…
I just started to study the bloc and I have a question. I need to change the color when the state is selected, and according to my logic, I have to do state = Colors.red, but unfortunately this is not…
Hello I have filled a ListView from list on my State Bloc(CustomerGetAllLoadedState) and work fine but now I need to search item from a TextField, I did so: I declare list: List<Customer> _customersFromRepo = []; this is ListView where intercept…
I'm a beginner developer and I have problem with implementation of BloC framework. Let's assume that I have this code (Model, NetworkService, Repository, Cubit, State, Widget): class NetworkService { Future getData(Uri uri) async { try { http.Response httpsResponse = await…
I'm trying to fetch the names of countries from an API and display it in a drop-down box. I'm using the bloc library for state management. Here's my Code. select_input_field.dart - Custom wrapper widget for DropdownButtonField import 'package:flutter/material.dart'; class SelectInputField…
This may be a noob question but I am new to Flutter. Hearing all those keywords: "State Management, Provider, Redux, MVVM and Bloc", I get a little bit confused. When implementing the Bloc pattern, is it that you already implemented…