Skip to content

Commit

Permalink
Merge pull request #325 from wanbing/dev_wanbing
Browse files Browse the repository at this point in the history
demo update
  • Loading branch information
wanbing authored Aug 14, 2023
2 parents 016a410 + 6a6012f commit 48c3fdb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions test_case/fair_list_demo/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.5.31'
ext.kotlin_version = '1.8.10'
repositories {
google()
jcenter()
Expand All @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions test_case/fair_list_demo/lib/JRList.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class JRListWidget extends StatefulWidget {
class JRListState extends State<JRListWidget>
{
@FairWell("list")
List list = List();
var list = <String>[];
// 监听listview的滑动
@FairWell("_scrollController")
ScrollController _scrollController;
late ScrollController _scrollController;

@override
void initState() {
Expand Down
4 changes: 2 additions & 2 deletions test_case/fair_list_demo/lib/list_proxy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <String>[];
late ScrollController _scrollController;

@override
Map<String, Function> bindFunction() {
Expand Down
7 changes: 5 additions & 2 deletions test_case/fair_list_demo/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 48c3fdb

Please sign in to comment.