Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo update #325

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading