From 4b192672bf5513574dd8b36bae1e96bb075fa055 Mon Sep 17 00:00:00 2001 From: chenyouyu Date: Thu, 13 Apr 2023 11:26:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=20Fair=203.2.1=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-zh.md | 9 ++++++-- README.md | 9 ++++++-- fair/CHANGELOG.md | 3 +++ fair/README.md | 4 ++-- .../load-more/sample_logic_loadmore_page.dart | 18 ++++++++------- .../permission/sample_permission_page.dart | 22 +++++++++---------- .../lib/src/page/sugars/ifequal_page.dart | 6 ++--- .../lib/src/page/sugars/ifequalbool_page.dart | 6 ++--- fair/pubspec.yaml | 2 +- 9 files changed, 47 insertions(+), 32 deletions(-) diff --git a/README-zh.md b/README-zh.md index 93eb58c9..83ac9ecd 100644 --- a/README-zh.md +++ b/README-zh.md @@ -1,7 +1,7 @@ ![social preview](social-dark.png)

- pub + pub github doc license @@ -58,7 +58,7 @@ git clone https://github.com/wuba/fair.git ```yaml # add Fair dependency dependencies: - fair: 3.2.0 + fair: 3.2.1 # add build_runner and compiler dependency dev_dependencies: @@ -176,6 +176,11 @@ Fair-Online 是面向Flutter 开发者,提供从Flutter 在线开发,到实 ## 🔨最近版本 +### 3.2.1 +更新时间:2023.04.13 + +- 修复了一些bug. + ### 3.2.0 更新时间:2023.04.12 diff --git a/README.md b/README.md index 15899db1..0f8ab52c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![social preview](social-dark.png)

- pub + pub github doc license @@ -50,7 +50,7 @@ Assuming that the fair project and your own project are in the same folder: ```yaml # add Fair dependency dependencies: - fair: 3.2.0 + fair: 3.2.1 # add build_runner and compiler dependency dev_dependencies: @@ -174,6 +174,11 @@ Hot update platform: [FAIR PUSHY](https://github.com/wuba/FairPushy) ## versions +### 3.2.1 +updateDate:2023.04.13 + +- Fixed some issues. + ### 3.2.0 updateDate:2023.04.12 diff --git a/fair/CHANGELOG.md b/fair/CHANGELOG.md index 04690643..cb85d86e 100644 --- a/fair/CHANGELOG.md +++ b/fair/CHANGELOG.md @@ -1,3 +1,6 @@ +## [3.2.1] +* Fixed some issues. + ## [3.2.0] * Adjust the call sequence of dispose; * Fix for #244 IconData making it impossible to make tree-shake-icons. diff --git a/fair/README.md b/fair/README.md index f2752d87..88ff51e8 100644 --- a/fair/README.md +++ b/fair/README.md @@ -2,7 +2,7 @@

- pub + pub github doc license @@ -19,7 +19,7 @@ We create Fair so we can dispatch UI changes to users as bundle(s), the way simi Use Flutter Fair require few steps. Add dependency inside `pubspec.yaml`. ```yaml dependencies: - fair: ^3.2.0 + fair: ^3.2.1 ``` Wrap your app with FairApp Widget. diff --git a/fair/example/lib/src/page/list/load-more/sample_logic_loadmore_page.dart b/fair/example/lib/src/page/list/load-more/sample_logic_loadmore_page.dart index 5a8e5b90..4394184f 100644 --- a/fair/example/lib/src/page/list/load-more/sample_logic_loadmore_page.dart +++ b/fair/example/lib/src/page/list/load-more/sample_logic_loadmore_page.dart @@ -119,14 +119,16 @@ class JRListState extends State { //下拉刷新 displacement: 10.0, onRefresh: _onRefresh, - child: Sugar.ifEqualBool(listIsEmpty(), - trueValue: Center( - child: CircularProgressIndicator(), //没有数据就转圈 - ), - falseValue: ListView.builder( - controller: _scrollController, - itemCount: _itemCount(), - itemBuilder: _itemBuilder))), + child: Text('123'), + // child: Sugar.ifEqualBool(listIsEmpty(), + // trueValue: Center( + // child: CircularProgressIndicator(), //没有数据就转圈 + // ), + // falseValue: ListView.builder( + // controller: _scrollController, + // itemCount: _itemCount(), + // itemBuilder: _itemBuilder)) + ), ), ); } diff --git a/fair/example/lib/src/page/plugins/permission/sample_permission_page.dart b/fair/example/lib/src/page/plugins/permission/sample_permission_page.dart index 4dd23870..0737e7d3 100644 --- a/fair/example/lib/src/page/plugins/permission/sample_permission_page.dart +++ b/fair/example/lib/src/page/plugins/permission/sample_permission_page.dart @@ -28,17 +28,17 @@ class PermissionPageState extends State { body: Container( child: Column( children: [ - Sugar.ifEqual(picUrl, '', - trueValue: Image.network( - 'https://img.58cdn.com.cn/logo/58/252_84/logo-o.png', - width: 500, - height: 250, - ), - falseValue: Image.file( - File(picUrl), - width: 500, - height: 250, - )), + // Sugar.ifEqual(picUrl, '', + // trueValue: Image.network( + // 'https://img.58cdn.com.cn/logo/58/252_84/logo-o.png', + // width: 500, + // height: 250, + // ), + // falseValue: Image.file( + // File(picUrl), + // width: 500, + // height: 250, + // )), Text('点击按钮拍照'), MaterialButton( color: Colors.grey, diff --git a/fair/example/lib/src/page/sugars/ifequal_page.dart b/fair/example/lib/src/page/sugars/ifequal_page.dart index 8d32e635..9b24b206 100644 --- a/fair/example/lib/src/page/sugars/ifequal_page.dart +++ b/fair/example/lib/src/page/sugars/ifequal_page.dart @@ -54,9 +54,9 @@ class _State extends State { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - Sugar.ifEqual(_count, 2, - falseValue: Image.asset('assets/image/logo.png'), - trueValue: Image.asset('assets/image/logo2.png')), + // Sugar.ifEqual(_count, 2, + // falseValue: Image.asset('assets/image/logo.png'), + // trueValue: Image.asset('assets/image/logo2.png')), Padding( padding: EdgeInsets.only(top: 20), child: Text('_count = $_count'), diff --git a/fair/example/lib/src/page/sugars/ifequalbool_page.dart b/fair/example/lib/src/page/sugars/ifequalbool_page.dart index b957588d..f2f8ca19 100644 --- a/fair/example/lib/src/page/sugars/ifequalbool_page.dart +++ b/fair/example/lib/src/page/sugars/ifequalbool_page.dart @@ -61,9 +61,9 @@ class _State extends State { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - Sugar.ifEqualBool(_countCanMod2(), - falseValue: Image.asset('assets/image/logo.png'), - trueValue: Image.asset('assets/image/logo2.png')), + // Sugar.ifEqualBool(_countCanMod2(), + // falseValue: Image.asset('assets/image/logo.png'), + // trueValue: Image.asset('assets/image/logo2.png')), Padding( padding: EdgeInsets.only(top: 20), child: Text('_count = $_count'), diff --git a/fair/pubspec.yaml b/fair/pubspec.yaml index 82a604e6..c35686d4 100644 --- a/fair/pubspec.yaml +++ b/fair/pubspec.yaml @@ -1,6 +1,6 @@ name: fair description: Flutter Fair is a package used to update widget dynamically. -version: 3.2.0 +version: 3.2.1 homepage: https://fair.58.com/ environment: