-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State Framework similar to Fish #52
Comments
In the past six months, fish-redux has not supported null safety, and it has not been updated for a long time. I think fish-redux should be abandoned.
I prefer to use Mobx combined Provider for state management. |
@o1298098 I am adapting this approach: https://medium.com/flutter-community/flutter-state-management-for-minimalists-4c71a2f2f0c1 to be used in an almost identical approach used by fish, but.... without any framework, super clean, O(1) performance, only using plain dart. This is my first scratch: https://github.com/insurdao/flutter-boilerplate [still changing to use immutable state] For the action, only this class is needed: class Action {
const Action(this.type, {this.payload});
final Object type;
final dynamic payload;
} this is how the action.dart looks like import 'package:insurdao/config/base.dart';
enum MainAction { action, loading, tabChanged, jumpToPage, pendingConversations}
loading(bool loading) {
return Action(MainAction.loading, payload: loading);
}
onTabChanged(int index) {
return Action(MainAction.tabChanged, payload: index);
}
onJumpToPage(int index) {
return Action(MainAction.jumpToPage, payload: index);
}
onPendingConversations(int pending) {
return Action(MainAction.pendingConversations, payload: pending);
} |
Dear @o1298098 ,
I would like to ask you about fish-redux. I feel that their maintenance is very slow, and almost no feedback about the null safety issues posted there.
regards
hh
The text was updated successfully, but these errors were encountered: