Skip to content

Commit 08e19c9

Browse files
author
lanhuajian
committed
[feature] Support Flutter 3.13.x & update example
1 parent 34bb433 commit 08e19c9

File tree

439 files changed

+23189
-5688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

439 files changed

+23189
-5688
lines changed

example/android/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ android {
3535
defaultConfig {
3636
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3737
applicationId "com.example.example"
38-
minSdkVersion 19
39-
targetSdkVersion 30
38+
minSdkVersion 20
39+
targetSdkVersion 31
4040
versionCode flutterVersionCode.toInteger()
4141
versionName flutterVersionName
4242
}
@@ -55,5 +55,5 @@ flutter {
5555
}
5656

5757
dependencies {
58-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
58+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
5959
}

example/android/app/src/main/AndroidManifest.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
android:theme="@style/LaunchTheme"
1010
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1111
android:hardwareAccelerated="true"
12-
android:windowSoftInputMode="adjustResize">
12+
android:windowSoftInputMode="adjustResize"
13+
android:exported="true">
1314
<!-- Specifies an Android theme to apply to this Activity as soon as
1415
the Android process has started. This theme is visible to the user
1516
while the Flutter UI initializes. After that, this theme continues

example/android/build.gradle

+19-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
buildscript {
2-
ext.kotlin_version = '1.8.10'
2+
ext.kotlin_version = '1.8.0'
33
repositories {
4+
maven {
5+
allowInsecureProtocol = true
6+
url 'https://maven.aliyun.com/repository/jcenter'
7+
}
48
google()
59
jcenter()
610
}
711

812
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
13+
classpath 'com.android.tools.build:gradle:7.1.2'
1014
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1115
}
1216
}
1317

1418
allprojects {
1519
repositories {
20+
maven {
21+
allowInsecureProtocol = true
22+
url 'https://maven.aliyun.com/repository/jcenter'
23+
}
24+
maven {
25+
allowInsecureProtocol = true
26+
url 'https://maven.aliyun.com/repository/google'
27+
}
28+
maven {
29+
allowInsecureProtocol = true
30+
url 'http://maven.aliyun.com/nexus/content/groups/public/'
31+
}
1632
google()
1733
jcenter()
1834
}
@@ -26,6 +42,6 @@ subprojects {
2642
project.evaluationDependsOn(':app')
2743
}
2844

29-
task clean(type: Delete) {
45+
tasks.register("clean", Delete) {
3046
delete rootProject.buildDir
3147
}

example/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

example/assets/fair/lib_best_flutter_ui_component_home_list.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,6 @@
6060
}
6161
}
6262
},
63-
"methodMap": {}
63+
"methodMap": {},
64+
"digest": "f8e618a1c8d026e7cb779d0527b55702"
6465
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.172230.
1+
# Generated by Fair on 2023-10-31 10:53:29.055437.
22

33
source: example|lib/best_flutter_ui/component/home_list.dart
4-
md5: 1f763bd5997d742302ba8ce22cf595c9
4+
md5: df2fb754edb75b2b64559cc1ef963e14
55
json: example|build/fair/lib_best_flutter_ui_component_home_list.fair.json
6-
date: 2023-05-16 17:00:06.172276
6+
date: 2023-10-31 10:53:29.055482

example/assets/fair/lib_best_flutter_ui_component_hotel_listview_content.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -368,5 +368,6 @@
368368
}
369369
}
370370
},
371-
"methodMap": {}
371+
"methodMap": {},
372+
"digest": "c71e611d0ea685885f67596691287e96"
372373
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.183962.
1+
# Generated by Fair on 2023-10-31 10:53:29.040904.
22

33
source: example|lib/best_flutter_ui/component/hotel_listview_content.dart
4-
md5: 9b5da932afbdaf3c17fa023200716315
4+
md5: b36b1cbe9f5ec06c6ef6132c34dc409f
55
json: example|build/fair/lib_best_flutter_ui_component_hotel_listview_content.fair.json
6-
date: 2023-05-16 17:00:06.184140
6+
date: 2023-10-31 10:53:29.041067

example/assets/fair/lib_best_flutter_ui_feedback_screen.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,6 @@
221221
}
222222
}
223223
},
224-
"methodMap": {}
224+
"methodMap": {},
225+
"digest": "1993ec6c374b699c43a4d29b6654b853"
225226
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.152348.
1+
# Generated by Fair on 2023-10-31 10:53:29.074415.
22

33
source: example|lib/best_flutter_ui/feedback_screen.dart
4-
md5: 177e27ea81b4826851fdc0838254371e
4+
md5: 46370672f312947e0bd06e8e4e9d8af3
55
json: example|build/fair/lib_best_flutter_ui_feedback_screen.fair.json
6-
date: 2023-05-16 17:00:06.152448
6+
date: 2023-10-31 10:53:29.074526

example/assets/fair/lib_best_flutter_ui_help_screen.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,6 @@
204204
}
205205
}
206206
},
207-
"methodMap": {}
207+
"methodMap": {},
208+
"digest": "a5302bcd8904f1273241fccba29541a2"
208209
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.216390.
1+
# Generated by Fair on 2023-10-31 10:53:29.084137.
22

33
source: example|lib/best_flutter_ui/help_screen.dart
4-
md5: 36e4633076d65d05b573dd6a65d5be31
4+
md5: 2f008247e34b9af5b19d04f329c0d746
55
json: example|build/fair/lib_best_flutter_ui_help_screen.fair.json
6-
date: 2023-05-16 17:00:06.216490
6+
date: 2023-10-31 10:53:29.084255

example/assets/fair/lib_best_flutter_ui_invite_friend_screen.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,6 @@
223223
}
224224
}
225225
},
226-
"methodMap": {}
226+
"methodMap": {},
227+
"digest": "0ad7d3e4f1d1f79c4158b3f0470e9dce"
227228
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.225999.
1+
# Generated by Fair on 2023-10-31 10:53:29.092573.
22

33
source: example|lib/best_flutter_ui/invite_friend_screen.dart
4-
md5: 4904771600e5888344da62190bd8aad2
4+
md5: b419d1d4bf78fd42bf1b094fa647b680
55
json: example|build/fair/lib_best_flutter_ui_invite_friend_screen.fair.json
6-
date: 2023-05-16 17:00:06.226097
6+
date: 2023-10-31 10:53:29.092677

example/assets/fair/lib_fair_widget_fair_delegate_widget.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
"_itemBuilder": {
2525
"className": "Container"
2626
}
27-
}
27+
},
28+
"digest": "738ff06e1e42523795d77960a016b525"
2829
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.205176.
1+
# Generated by Fair on 2023-10-31 10:53:28.985160.
22

33
source: example|lib/fair_widget/fair_delegate_widget.dart
4-
md5: b6dc09d65832729dcbeb54f8c587bf91
4+
md5: 4c0d73440d0bd147776fa5184dc3835c
55
json: example|build/fair/lib_fair_widget_fair_delegate_widget.fair.json
6-
date: 2023-05-16 17:00:06.205231
6+
date: 2023-10-31 10:53:28.985224

example/assets/fair/lib_fair_widget_fair_plugin_widget.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@
4343
}
4444
}
4545
},
46-
"methodMap": {}
46+
"methodMap": {},
47+
"digest": "3603040f2e2cb2d8ae3c200b08e85062"
4748
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.084617.
1+
# Generated by Fair on 2023-10-31 10:53:29.100833.
22

33
source: example|lib/fair_widget/fair_plugin_widget.dart
4-
md5: b77b062a6450fab531e3428d591fb5e4
4+
md5: cffd851be6c426bf983fb077075fad19
55
json: example|build/fair/lib_fair_widget_fair_plugin_widget.fair.json
6-
date: 2023-05-16 17:00:06.084677
6+
date: 2023-10-31 10:53:29.100916

example/assets/fair/lib_fair_widget_fair_props_widget.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@
3131
}
3232
}
3333
},
34-
"methodMap": {}
34+
"methodMap": {},
35+
"digest": "63f30c5614414d8cd9e315a8bbb3de67"
3536
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.021210.
1+
# Generated by Fair on 2023-10-31 10:53:28.996912.
22

33
source: example|lib/fair_widget/fair_props_widget.dart
4-
md5: 2826f90df6725f256080c8421c2d2d6a
4+
md5: f609a09df143913f51e3547f9bd3fa4e
55
json: example|build/fair/lib_fair_widget_fair_props_widget.fair.json
6-
date: 2023-05-16 17:00:06.021274
6+
date: 2023-10-31 10:53:28.996953

example/assets/fair/lib_fair_widget_fairbinding_fair_binding_sample.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@
3535
}
3636
}
3737
},
38-
"methodMap": {}
38+
"methodMap": {},
39+
"digest": "19acbe84f2fc9b1af2a72025d735b39a"
3940
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:05.990381.
1+
# Generated by Fair on 2023-10-31 10:53:28.991746.
22

33
source: example|lib/fair_widget/fairbinding/fair_binding_sample.dart
4-
md5: c75fe0eec710da949fbb394cfa68824d
4+
md5: 50d35e75a6ba9e417199781df8f93a3d
55
json: example|build/fair/lib_fair_widget_fairbinding_fair_binding_sample.fair.json
6-
date: 2023-05-16 17:00:05.990436
6+
date: 2023-10-31 10:53:28.991789

example/assets/fair/lib_json_file_explain.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@
6868
"title"
6969
]
7070
}
71-
}
71+
},
72+
"digest": "a2d5ea46d61a63f63c9cc7d256d6c9dd"
7273
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.038321.
1+
# Generated by Fair on 2023-10-31 10:53:28.969805.
22

33
source: example|lib/json_file_explain.dart
4-
md5: ba280911c77bc4f2b70c10d031f8ceaa
4+
md5: fd39c25e84402b622ba0dc2d174272fe
55
json: example|build/fair/lib_json_file_explain.fair.json
6-
date: 2023-05-16 17:00:06.038373
6+
date: 2023-10-31 10:53:28.969874

example/assets/fair/lib_main.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@
6666
}
6767
}
6868
},
69-
"methodMap": {}
69+
"methodMap": {},
70+
"digest": "a5b1303b82b3f77de8e67850400b9c1e"
7071
}
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.133895.
1+
# Generated by Fair on 2023-10-31 10:53:29.126396.
22

33
source: example|lib/main.dart
4-
md5: c68d158f9f232ce868ca772b68f4e864
4+
md5: c037c1cc5521a6558ebf16935f7d728c
55
json: example|build/fair/lib_main.fair.json
6-
date: 2023-05-16 17:00:06.134
6+
date: 2023-10-31 10:53:29.126442

example/assets/fair/lib_page2page_page_one.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@
6262
}
6363
}
6464
},
65-
"methodMap": {}
65+
"methodMap": {},
66+
"digest": "9790d0d1bfec1cf55952ccc682614fa2"
6667
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.058408.
1+
# Generated by Fair on 2023-10-31 10:53:29.109990.
22

33
source: example|lib/page2page/page_one.dart
4-
md5: 5e0a2134e417468d4318f8c8242b2e3e
4+
md5: 0e2b8fdbfdc55e2469870cb9462b403c
55
json: example|build/fair/lib_page2page_page_one.fair.json
6-
date: 2023-05-16 17:00:06.058471
6+
date: 2023-10-31 10:53:29.110033

example/assets/fair/lib_page2page_page_two.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@
3535
}
3636
}
3737
},
38-
"methodMap": {}
38+
"methodMap": {},
39+
"digest": "94973711a4be97191459e77c105a6441"
3940
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.142706.
1+
# Generated by Fair on 2023-10-31 10:53:29.064704.
22

33
source: example|lib/page2page/page_two.dart
4-
md5: 667130ca0c77da994c29aecd3bebf0bb
4+
md5: 363e74697451248cf0f2fc2376a6f3a7
55
json: example|build/fair/lib_page2page_page_two.fair.json
6-
date: 2023-05-16 17:00:06.142748
6+
date: 2023-10-31 10:53:29.064752

example/assets/fair/lib_template_appbar_appbar_template.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
}
2323
}
2424
},
25-
"methodMap": {}
25+
"methodMap": {},
26+
"digest": "e593158025d5b81cf30acb5bf41410ac"
2627
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.108931.
1+
# Generated by Fair on 2023-10-31 10:53:28.963318.
22

33
source: example|lib/template/appbar/appbar_template.dart
4-
md5: e5f4cb764283d409724ea14fe006ecf2
4+
md5: 1d724f88d4e38df16b49eb3d05a3df01
55
json: example|build/fair/lib_template_appbar_appbar_template.fair.json
6-
date: 2023-05-16 17:00:06.108996
6+
date: 2023-10-31 10:53:28.963369

example/assets/fair/lib_template_detail_page_fair_detail.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -373,5 +373,6 @@
373373
}
374374
}
375375
}
376-
}
376+
},
377+
"digest": "0bc5998caa5d7d3837a692bd5947b1f3"
377378
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.121449.
1+
# Generated by Fair on 2023-10-31 10:53:29.002185.
22

33
source: example|lib/template/detail_page/fair_detail.dart
4-
md5: 285ee91c30d7e5f110a846775136a0c9
4+
md5: 97e0d468098c76fdd996408a4aecc553
55
json: example|build/fair/lib_template_detail_page_fair_detail.fair.json
6-
date: 2023-05-16 17:00:06.121573
6+
date: 2023-10-31 10:53:29.002332

example/assets/fair/lib_template_drawer_drawer_template.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,6 @@
127127
}
128128
}
129129
},
130-
"methodMap": {}
130+
"methodMap": {},
131+
"digest": "03e886825ea89c448eab05f2c0f28bec"
131132
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Generated by Fair on 2023-05-16 17:00:06.046980.
1+
# Generated by Fair on 2023-10-31 10:53:29.014322.
22

33
source: example|lib/template/drawer/drawer_template.dart
4-
md5: 368e50aa99209d6277ff3563a01d7e83
4+
md5: aee48024646cf7db87015165b2a08eec
55
json: example|build/fair/lib_template_drawer_drawer_template.fair.json
6-
date: 2023-05-16 17:00:06.047101
6+
date: 2023-10-31 10:53:29.014382

example/assets/fair/lib_template_fab_fab_template.fair.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,6 @@
6060
}
6161
}
6262
},
63-
"methodMap": {}
63+
"methodMap": {},
64+
"digest": "55d7a801f77713bfdcb425941680e578"
6465
}

0 commit comments

Comments
 (0)