From 6a6012f94e300b0749ca4bab0238601a58971765 Mon Sep 17 00:00:00 2001 From: wanbing01 Date: Mon, 14 Aug 2023 16:24:30 +0800 Subject: [PATCH] demo update --- test_case/fair_list_demo/android/build.gradle | 4 ++-- .../android/gradle/wrapper/gradle-wrapper.properties | 2 +- test_case/fair_list_demo/lib/JRList.dart | 4 ++-- test_case/fair_list_demo/lib/list_proxy.dart | 4 ++-- test_case/fair_list_demo/pubspec.yaml | 7 +++++-- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/test_case/fair_list_demo/android/build.gradle b/test_case/fair_list_demo/android/build.gradle index 433270e4..cbb5ca3a 100644 --- a/test_case/fair_list_demo/android/build.gradle +++ b/test_case/fair_list_demo/android/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.5.31' + ext.kotlin_version = '1.8.10' repositories { google() jcenter() @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/test_case/fair_list_demo/android/gradle/wrapper/gradle-wrapper.properties b/test_case/fair_list_demo/android/gradle/wrapper/gradle-wrapper.properties index 493072b3..039eda99 100644 --- a/test_case/fair_list_demo/android/gradle/wrapper/gradle-wrapper.properties +++ b/test_case/fair_list_demo/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip diff --git a/test_case/fair_list_demo/lib/JRList.dart b/test_case/fair_list_demo/lib/JRList.dart index aba4cc4d..f78301c1 100644 --- a/test_case/fair_list_demo/lib/JRList.dart +++ b/test_case/fair_list_demo/lib/JRList.dart @@ -13,10 +13,10 @@ class JRListWidget extends StatefulWidget { class JRListState extends State { @FairWell("list") - List list = List(); + var list = []; // 监听listview的滑动 @FairWell("_scrollController") - ScrollController _scrollController; + late ScrollController _scrollController; @override void initState() { diff --git a/test_case/fair_list_demo/lib/list_proxy.dart b/test_case/fair_list_demo/lib/list_proxy.dart index 4f1ad8ce..6487b878 100644 --- a/test_case/fair_list_demo/lib/list_proxy.dart +++ b/test_case/fair_list_demo/lib/list_proxy.dart @@ -5,8 +5,8 @@ import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; class ListDelegate extends FairDelegate { - List list = List(); - ScrollController _scrollController; + var list = []; + late ScrollController _scrollController; @override Map bindFunction() { diff --git a/test_case/fair_list_demo/pubspec.yaml b/test_case/fair_list_demo/pubspec.yaml index 39089c18..b9606dc1 100644 --- a/test_case/fair_list_demo/pubspec.yaml +++ b/test_case/fair_list_demo/pubspec.yaml @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.7.0 <3.0.0" + sdk: ">=2.12.0 <3.0.0" dependencies: flutter: @@ -41,7 +41,10 @@ dev_dependencies: # Switch to another stable flutter version dependency_overrides: fair_version: - path: ../../flutter_version/flutter_3_0_0 + path: ../../flutter_version/flutter_3_10_0 + analyzer: 5.6.0 + dart_style: 2.2.5 + collection: 1.17.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec