提交 33442f8f authored 作者: 张国庆's avatar 张国庆

修改不可刷新

上级 bda62d5f
const en = { const en = {
'Sample': 'Sample',
'Style': 'Style',
'More': 'More',
'Theme': 'Theme',
'System': 'System',
'Light': 'Light',
'Dark': 'Dark',
'Classic': 'Classic',
'Classic and default': 'Classic and default',
'Direction': 'Direction',
'Vertical': 'Vertical',
'Horizontal': 'Horizontal',
'Clamping': 'Clamping',
'Background': 'Background',
'Alignment': 'Alignment',
'Center': 'Center',
'Start': 'Start',
'End': 'End',
'Infinite': 'Infinite',
'Message': 'Message',
'Text': 'Text',
'Animation': 'Animation',
'Bounce': 'Bounce',
'List Spring': 'List Spring', 'List Spring': 'List Spring',
'Pull to refresh': 'Pull to refresh', 'Pull to refresh': 'Pull to refresh',
'Release ready': 'Release ready', 'Release ready': 'Release ready',
...@@ -32,68 +9,5 @@ const en = { ...@@ -32,68 +9,5 @@ const en = {
'Last updated at %T': 'Last updated at %T', 'Last updated at %T': 'Last updated at %T',
'Pull to load': 'Pull to load', 'Pull to load': 'Pull to load',
'Loading...': 'Loading...', 'Loading...': 'Loading...',
'Bezier curve': 'Bezier curve',
'Disable': 'Disable',
'Display balls': 'Display balls',
'Bezier circle': 'Bezier circle',
'Golden campus': 'Golden campus',
'Rush to the sky': 'Rush to the sky',
'Balloon delivery': 'Balloon delivery',
'Star track': 'Star track',
'Lumberjack Squats': 'Lumberjack Squats',
'Skating boy': 'BSkating boy',
'Halloween horror': 'Halloween horror',
'User profile': 'User profile',
'User personal center': 'User personal center',
'QQ group': 'QQ group',
'Name': 'Name',
'Age': 'Age',
'Not yet bald': 'Not yet bald',
'City': 'City',
'China - ChengDu': 'China - ChengDu',
'Phone': 'Phone',
'Mail': 'Mail',
'NestedScrollView example': 'NestedScrollView example',
'Carousel': 'Carousel',
'Carousel example': 'Carousel example',
'Refresh on start': 'Refresh on start',
'Refresh when the list is displayed and specify the Header':
'Refresh when the list is displayed and specify the Header',
'Listener': 'Listener',
'Use listener to respond anywhere': 'Use listener to respond anywhere',
'Secondary': 'Secondary',
'Combine existing Header with secondary':
'Combine existing Header with secondary',
'Open the second floor': 'Open the second floor',
'Chat': 'Chat',
'Chat page example': 'Chat page example',
'PageView example': 'PageView example',
'Join discussion': 'Join discussion',
'Join the QQ group (554981921)': 'Join the QQ group (554981921)',
'Repository': 'Repository',
'Support me': 'Support me',
'Buy me a coffee ~': 'Buy me a coffee ~',
'Alipay': 'Alipay',
'Alipay donation': 'Alipay donation',
'Wechat': 'Wechat',
'Wechat donation': 'Wechat donation',
'Cryptocurrency': 'Cryptocurrency',
'Cryptocurrency donation': 'Cryptocurrency donation',
'Bitcoin donation': 'Bitcoin donation',
'Ethereum series, ETH, BNB, MATIC, USDT and other tokens':
'Ethereum series, ETH, BNB, MATIC, USDT and other tokens',
'Tron chain, TRX, USDT, USDC and other tokens':
'Tron chain, TRX, USDT, USDC and other tokens',
'Dogecoin donation': 'Dogecoin donation',
'%s copied!': '%s copied!', '%s copied!': '%s copied!',
'Trigger immediately': 'Trigger immediately',
'TabBarView example': 'NestedScrollView + TabBarView example',
'Paging': 'Paging',
'Paging example': 'Paging example',
'No Data': 'No Data',
'Theme switch': 'Theme switch',
'Theme switch example': 'Theme switch example',
'Theme switch describe':
'Pull down to display the switching panel, slide left and right to select the theme color, and release to switch.',
'Bubbles launch': 'Bubbles launch',
}; };
const zhCN = { const zhCN = {
'Sample': '示例',
'Style': '样式',
'More': '更多',
'Theme': '主题',
'System': '系统',
'Light': '明亮',
'Dark': '暗黑',
'Classic': '经典',
'Classic and default': '经典和默认',
'Direction': '方向',
'Vertical': '垂直',
'Horizontal': '水平',
'Clamping': '固定',
'Background': '背景',
'Alignment': '对齐',
'Center': '中心',
'Start': '开端',
'End': '结尾',
'Infinite': '无限',
'Message': '信息',
'Text': '文本',
'Animation': '动画',
'Bounce': '回弹',
'List Spring': '列表弹簧', 'List Spring': '列表弹簧',
'Pull to refresh': '下拉刷新', 'Pull to refresh': '下拉刷新',
'Release ready': '释放开始', 'Release ready': '释放开始',
...@@ -32,65 +9,5 @@ const zhCN = { ...@@ -32,65 +9,5 @@ const zhCN = {
'Last updated at %T': '最后更新于 %T', 'Last updated at %T': '最后更新于 %T',
'Pull to load': '上拉加载', 'Pull to load': '上拉加载',
'Loading...': '加载中...', 'Loading...': '加载中...',
'Bezier curve': '贝塞尔曲线',
'Disable': '禁用',
'Display balls': '显示小球',
'Bezier circle': '弹出圆圈',
'Golden campus': '金色校园',
'Rush to the sky': '冲上云霄',
'Balloon delivery': '气球快递',
'Star track': '太空轨道',
'Lumberjack Squats': '暴力深蹲',
'Skating boy': '滑雪少年',
'Halloween horror': '万圣节惊魂',
'User profile': '个人中心',
'User personal center': '用户个人中心',
'QQ group': 'QQ群',
'Name': '名字',
'Age': '年龄',
'Not yet bald': '尚未秃顶',
'City': '城市',
'China - ChengDu': '中国 - 成都',
'Phone': '电话',
'Mail': '邮箱',
'NestedScrollView example': 'NestedScrollView示例',
'Carousel': '轮播',
'Carousel example': '轮播示例',
'Refresh on start': '启动时刷新',
'Refresh when the list is displayed and specify the Header':
'列表显示时刷新并指定Header',
'Listener': '监听器',
'Use listener to respond anywhere': '使用监听器,在任意位置响应',
'Secondary': '二楼',
'Combine existing Header with secondary': '将已有的Header结合二楼',
'Open the second floor': '打开二楼',
'Chat': '聊天',
'Chat page example': '聊天页面示例',
'PageView example': 'PageView 示例',
'Join discussion': '加入讨论',
'Join the QQ group (554981921)': '加入QQ群(554981921)',
'Repository': '项目地址',
'Support me': '支持作者',
'Buy me a coffee ~': '请作者喝一杯咖啡~',
'Alipay': '支付宝',
'Alipay donation': '支付宝捐赠',
'Wechat': '微信',
'Wechat donation': '微信捐赠',
'Cryptocurrency': '加密货币',
'Cryptocurrency donation': '加密货币捐赠',
'Bitcoin donation': '比特币捐赠',
'Ethereum series, ETH, BNB, MATIC, USDT and other tokens':
'以太坊系列,ETH、BNB、MATIC、USDT及其他代币',
'Tron chain, TRX, USDT, USDC and other tokens': '波场链,TRX、USDT、USDC及其他代币',
'Dogecoin donation': '狗狗币捐赠',
'%s copied!': '%s 已复制!', '%s copied!': '%s 已复制!',
'Trigger immediately': '立即触发',
'TabBarView example': 'NestedScrollView + TabBarView示例',
'Paging': '分页',
'Paging example': '分页示例',
'No Data': '暂无数据',
'Theme switch': '主题切换',
'Theme switch example': '主题切换示例',
'Theme switch describe': '下拉显示切换面板,左右滑动选中主题色,释放进行切换。',
'Bubbles launch': '泡泡发射',
}; };
...@@ -12,6 +12,7 @@ class BaseListWidget extends StatefulWidget { ...@@ -12,6 +12,7 @@ class BaseListWidget extends StatefulWidget {
final Footer? footer; final Footer? footer;
final Widget? startLoadWidget; final Widget? startLoadWidget;
final Widget? emptyWidget; final Widget? emptyWidget;
final bool noMoreLoad;
final BaseListController? controller; final BaseListController? controller;
const BaseListWidget({ const BaseListWidget({
...@@ -24,6 +25,7 @@ class BaseListWidget extends StatefulWidget { ...@@ -24,6 +25,7 @@ class BaseListWidget extends StatefulWidget {
this.startLoadWidget, this.startLoadWidget,
this.controller, this.controller,
this.emptyWidget, this.emptyWidget,
this.noMoreLoad = false,
}) : super(key: key); }) : super(key: key);
@override @override
...@@ -57,8 +59,9 @@ class _BaseListWidgetState extends State<BaseListWidget> { ...@@ -57,8 +59,9 @@ class _BaseListWidgetState extends State<BaseListWidget> {
return EasyRefresh( return EasyRefresh(
controller: _controller.c, controller: _controller.c,
refreshOnStart: true, refreshOnStart: true,
header:header, header: header,
footer: footer, footer: footer,
noMoreLoad: widget.noMoreLoad,
refreshOnStartHeader: BuilderHeader( refreshOnStartHeader: BuilderHeader(
triggerOffset: 70, triggerOffset: 70,
clamping: true, clamping: true,
......
...@@ -4,7 +4,7 @@ version: 1.0.7 ...@@ -4,7 +4,7 @@ version: 1.0.7
homepage: http://t.clxkj.cn/clx-android/flutter_clx_base.git homepage: http://t.clxkj.cn/clx-android/flutter_clx_base.git
environment: environment:
sdk: ">=2.12.0 <3.0.0" sdk: ">=2.17.0 <3.0.0"
flutter: ">=2.5.0" flutter: ">=2.5.0"
dependencies: dependencies:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论