fish-redux
fish-redux copied to clipboard
An assembled flutter application framework.
新的SourceFlowAdapter没有加入,文档也没有同步更新
 一次发生在 Widget buildPage(P param) => protectedWrapper(_PageWidget( page: this, param: param, )); 另一次发生在 buildComponent 时 return protectedWrapper( isPureView() ? _PureViewWidget( store: store, viewBuilder: enhancer.viewEnhance(protectedView, this, store), getter: getter, bus: bus,...
I'm using SnakeNavigationBar, set padding to make it floating, but the body is not stretch to fill the space under bottom navigation. 我在用SnakeNavigationBar,当设定了Padding使导航按钮向上漂浮,页面没有扩展到导航按钮下方区域。
如题,我在BottomNavigationBar调用了一个点击方法,代码如下 `bottomNavigationBar: BottomNavigationBar( backgroundColor: Colors.white, unselectedItemColor: Colors.black54, elevation: 1, selectedItemColor: Colors.deepOrange, type: BottomNavigationBarType.fixed, onTap: (currentIndex) { dispatch(EntranceActionCreator.onChangeIndexAction(currentIndex)); },` Action: ` static Action onChangeIndexAction(int index) { return Action(EntranceAction.changeIndexAction, payload: index); }`...
路由的问题
在createApp()中指定了pages,但在MaterialApp中未指定routes,当从页面A=>B=>C=>D的时候,如果在D页面使用 pushNamedAndRemoveUntil(‘PageC’, ModalRoute.withName(‘PageB’), arguments: arguments)时,ModalRoute.withName(‘PageB’)始终为false,导致PageC成为route中为一个的一个page,在后退就黑屏了。 fish-redux能不能routes.buildPage的时候处理一下MaterialApp中的routes,使ModalRoute.withName可以返回正确的值
theme切换
1. todo example都是每个页面都指定了backgroundColor,这样局部写写还可以,全局都这样写肯定不行的吧 2. 是否能全局指定,在createApp()中的 theme和darkTheme如何全局刷新 MaterialApp( theme: GlobalStore.store.getState().themeData, darkTheme: GlobalStore.store.getState().themeData, navigatorKey: NavigationService.navigatorKey, home: routes.buildPage( RouteNames.MainPage, null), onGenerateRoute: (RouteSettings settings) { return MaterialPageRoute(builder: (BuildContext context) { return routes.buildPage(settings.name, settings.arguments); });...
我前面读过fish-redux的源码,我发现每一次更新子组件的状态都会向上通知 并且再调用get函数读取状态 ```text [ChildComponent] --set--> [ParentComponent] --set--> ... -> [Page] --get--> ... --get--> [ChildComponent] ``` 但是现在我要实现这样一个功能  在用户点击同意或者拒绝以后先反馈UI状态,然后才调用API去执行对应的操作,但是子组件的初始状态是根据网络请求返回的,所以调用完dispatch以后,还是会从父组件去生成状态,此时此刻由于网络原因不可能做到实时刷新state,所以从父组件获取到的状态还是 “pending”,所以UI上没有任何变化。  我的state是这样定义的,见下图  其实这个需求用局部的StatefulBuilder就可以实现,但是我想有没有办法用fish-redux实现,如果有那是最好的。
iOS native有提供viewWillAppear方法,在页面每次即将出现的时候调用,但我发现fish-redux并没有类似这样的方法,请问有没有办法可以监听到page即将出现/即将消失的方法,比如从某个页面(native/flutter)pop回来?
Hi, I see ViewPart and EffectPart classes in the docs, but couldn't find them in the codebase. Have you removed them? If so, why?