flutter_crud 0.0.2
SDKflutter
Platformandroidioswindowslinuxmacosweb
A [creat, updata, reset, delete] Hook for mobile device or table device。With a one-time configuration, all paginated data content within the app can be handled with minimal code.
一个 [creat, updata, reset, delete] 的钩子
Usage
/// 使用方式 : /// 1. 全局覆盖 PaginatedRequest 配置 /// 2. 全局覆盖 PaginatedDialog 配置 /// 3. 全局覆盖 RGetMoreResult 配置 /// 4. 使用:
late Crud useCrud = Crud(
options: CrudOptions(
dataListUrl: '/app/page',
commonUrl: '/app',
params: {"bizType": 0, "bizId": "5333"}
),
onChange: () => setState((){}));
你需要搭配一种下拉刷新组件使用。