Questions tagged [flutter-redux]
60 questions
1
vote
1 answer
How to navigate in a CupertinoApp
With a MaterialApp you can provide the navigatorKey and use that in your middleware to redirect the user if necessary (as it's done in the flutter redux example).
But CupertinoApp doesn’t have a navigatorKey.
What we are doing now is to add the…

enyo
- 16,269
- 9
- 56
- 73
1
vote
1 answer
Flutter redux: typedef vs viewmodel property
I have a question about flutter_redux.
I have seen that there are two ways for passing a function to a presentational component by StoreConnector:
with typedef
as a viewmodel property
What is the difference, if any, beetween this two pieces of…

ilBarra
- 796
- 1
- 8
- 25
1
vote
1 answer
Flutter typedMiddleware
I am kinda new to flutter and trying out the flutter redux library but I am stuck with having a proper list of middlewares.
import 'package:flutter_app/incrementButtonScreen/IncrementButtonActions.dart';
import…

Alex
- 327
- 3
- 11
1
vote
0 answers
Globals in Flutter States
Is it bad practice to use globals for state management in Flutter? I've come across a few different methodologies (ex: Redux) that seem like quite a bit of work to integrate with Firebase Cloud Firestore. Wondering what the downfalls would be to…

cbcguitarist
- 21
- 2
0
votes
0 answers
Middleware isn't able to trigger dispatch
recently I was working with Redux state management in Flutter and got this issue
The middleware isn't able to trigger dispatch here is the snippet for the code you need to analyse the problem
Action:
class GetLeaveType {
GetLeaveType();
}
class…

mustafa hasria
- 460
- 1
- 4
- 14
0
votes
1 answer
Flutter redux store.dispatch(...) resetting the value of another redux state variable
The scenario is, when the app opens, we need to do two REST API calls,
Get User Function List API call
Get Chat Bubble List API call
We have two redux state variable
userFunctionList
chatBubbleList
state.dart
class AppState {
final List…

Dhevendhiran M
- 994
- 2
- 12
- 29
0
votes
0 answers
How to use Redux state for global variables?
When I use Redux in Flutter and I need to change state val, redux rebuild all app. I have some variables in some places where I want avoid rebuild app. Can I change state value without rebuild?

Atljh0987
- 3
- 1
0
votes
0 answers
Dart Rx - what function to use that only completes when a data result arrives from two different sources?
I want to put in place a StreamBuilder widget in my Flutter app that waits for data to arrive from two separate streams, with each stream delivering a different data class
What Rx function should I use for this situation?

user2868835
- 1,250
- 3
- 19
- 33
0
votes
0 answers
Is there any logical mistake in my code ? Middleware not showing decoded data from json file from liveserver?
I have been following Flutter Redux tutorial from youtube. The same is code is working in tutorial but when I implemented it, it's not working logically. Basically, I am fetching data from json file running on live server on my pc and there is no…
0
votes
1 answer
Flutter redux combined state dispatch action and update UI issue
I am learning redux. I have the following issues:
My initial state does not seem to be taken into the account
My actions are dispatched but they are not updating the actual state on the UI
I am trying to understand how things work so please be…

xyz83242
- 629
- 14
- 27
0
votes
1 answer
Flutter Redux Navigation library import error
I have been developing application and one of the libraries I have used was Flutter Redux Navigation. Everything was working fine, until recently, when I started getting following error
../../lib/src/navigation_middleware.dart:3:1: Error:…

Prebiusta
- 477
- 3
- 14
0
votes
1 answer
buildWhen in StoreConnector
I'm facing a problem that I can't solve.
There are two StoreConnectors on different screens, which are tied to 1 state.
How can I make it so that when the second StoreConnector is rendered, the first one is not rebuilt?
In Bloc this could be done…

Hot January
- 1
- 1
0
votes
1 answer
How to allow a null return from a function in dart with null safety on
After moving to null safety I am having hard time on how to refactor some pieces of my code.
I have a method looking like this
final Reducer _errorReducer = combineReducers([
TypedReducer

bihire boris
- 1,530
- 3
- 19
- 44
0
votes
1 answer
App Crashes with "No StoreProvider> found." on launch. flutter redux
Non-fatal Exception: package:flutter_redux/flutter_redux.dart 29 in StoreProvider.of Error: No StoreProvider found. To fix, please try: * Using Dart 2 (required) by using the --preview-dart-2 flag * Wrapping your MaterialApp with the StoreProvider,…

D V Yogesh
- 3,337
- 1
- 28
- 39
0
votes
1 answer
Flutter: combining stateful widgets into a flutter-redux app architecture
Following this question, I understand why StatefulWidgets do make sense in the context of a Redux-based flutter app. And that's what I'm trying to accomplish as well-
a Page that is "fed" information from the app-wide state (logged in user details,…

Maor Barazani
- 680
- 3
- 12
- 31