diff --git a/making_school_asignment_app/android/gradle/wrapper/gradle-wrapper.properties b/making_school_asignment_app/android/gradle/wrapper/gradle-wrapper.properties index e1ca574..c288d7a 100644 --- a/making_school_asignment_app/android/gradle/wrapper/gradle-wrapper.properties +++ b/making_school_asignment_app/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip +distributionUrl=https://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/making_school_asignment_app/lib/common/config/request_config.dart b/making_school_asignment_app/lib/common/config/request_config.dart index a101124..2625524 100644 --- a/making_school_asignment_app/lib/common/config/request_config.dart +++ b/making_school_asignment_app/lib/common/config/request_config.dart @@ -18,8 +18,8 @@ class RequestConfig { static RequestConfig? _instance; String baseUrl; - static const connectTimeout = 8000; // 连接超时 - static const receiveTimeout = 8000; // 接收超时 + static const connectTimeout = 8 * 1000; // 连接超时 + static const receiveTimeout = 8 * 1000; // 接收超时 static const bool requestDataPrinting = true; // 打印返回数据 static const bool printSwitch = true; // 打印返回数据 static const successCode = [204, 200]; // 返回成功code diff --git a/making_school_asignment_app/lib/page/home_page/children/read_over/widget/annotate_list.dart b/making_school_asignment_app/lib/page/home_page/children/read_over/widget/annotate_list.dart index 1140f73..22105d7 100644 --- a/making_school_asignment_app/lib/page/home_page/children/read_over/widget/annotate_list.dart +++ b/making_school_asignment_app/lib/page/home_page/children/read_over/widget/annotate_list.dart @@ -36,17 +36,12 @@ class _AnnotateListState extends State with RequestToolMixin, Sing late int page = 1; late TabController tabController2; + /* 待阅卷 */ late final EasyRefreshController refreshController1; late final EasyRefreshController refreshController2; - WorkStudentParams params = WorkStudentParams( - assessType: 0, - pageSize: 10, - ); - WorkStudentParams params2 = WorkStudentParams( - assessType: 0, - pageSize: 10, - ); + WorkStudentParams params = WorkStudentParams(assessType: 0, pageSize: 10); + WorkStudentParams params2 = WorkStudentParams(assessType: 0, pageSize: 10); @override void initState() { diff --git a/making_school_asignment_app/pubspec.yaml b/making_school_asignment_app/pubspec.yaml index a6211b2..25f3ffd 100644 --- a/making_school_asignment_app/pubspec.yaml +++ b/making_school_asignment_app/pubspec.yaml @@ -105,18 +105,12 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - retrofit_generator: ^8.1.0 + flutter_lints: ^4.0.0 + retrofit_generator: ^9.0.0 build_runner: ^2.4.10 json_serializable: ^6.6.2 # 分离样式 functional_widget: ^0.10.2 - analyzer: ^6.4.1 - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^3.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec