From 88b9d81bc2a72b2f6583449830fd5439bee1e700 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 14 Nov 2023 00:01:15 +0000 Subject: [PATCH 1/2] Update dependency flutter_lints to v3 --- pubspec.lock | 8 ++++---- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index c3098a4..9ade885 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -274,10 +274,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 + sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 url: "https://pub.dev" source: hosted - version: "2.0.3" + version: "3.0.1" flutter_localizations: dependency: "direct main" description: flutter @@ -425,10 +425,10 @@ packages: dependency: transitive description: name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "3.0.0" logger: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index b5e4339..2b1b6bb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -50,7 +50,7 @@ dev_dependencies: build_runner: 2.4.6 built_value_generator: 8.7.0 json_serializable: 6.7.1 - flutter_lints: 2.0.3 + flutter_lints: 3.0.1 # For information on the generic Dart part of this file, see the # following page: https://www.dartlang.org/tools/pub/pubspec From 7e871bb4b1c180728bd694c9b04d2ac512349f18 Mon Sep 17 00:00:00 2001 From: Varakh Date: Tue, 14 Nov 2023 20:22:12 +0100 Subject: [PATCH 2/2] Fix flutter lints for next major version #noissue --- lib/core/error/rest_service_exception.dart | 4 ++-- lib/core/manager/dialog_manager.dart | 2 +- lib/core/manager/lifecycle_manager.dart | 2 +- lib/ui/widgets/my_appbar.dart | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/core/error/rest_service_exception.dart b/lib/core/error/rest_service_exception.dart index 3f1bd35..4189d4d 100644 --- a/lib/core/error/rest_service_exception.dart +++ b/lib/core/error/rest_service_exception.dart @@ -5,8 +5,8 @@ class RestServiceException extends ServiceException { final int statusCode; final dynamic responseBody; - RestServiceException(this.statusCode, {this.responseBody, String? message}) - : super(code: ErrorCode.restError, message: message); + RestServiceException(this.statusCode, {this.responseBody, super.message = null}) + : super(code: ErrorCode.restError); @override String toString() { diff --git a/lib/core/manager/dialog_manager.dart b/lib/core/manager/dialog_manager.dart index 5eb75d0..94b9217 100644 --- a/lib/core/manager/dialog_manager.dart +++ b/lib/core/manager/dialog_manager.dart @@ -8,7 +8,7 @@ import '../services/dialog_service.dart'; class DialogManager extends StatefulWidget { final Widget? child; - const DialogManager({Key? key, this.child}) : super(key: key); + const DialogManager({super.key, this.child}); @override _DialogManagerState createState() => _DialogManagerState(); diff --git a/lib/core/manager/lifecycle_manager.dart b/lib/core/manager/lifecycle_manager.dart index 09840ed..8113e1a 100644 --- a/lib/core/manager/lifecycle_manager.dart +++ b/lib/core/manager/lifecycle_manager.dart @@ -11,7 +11,7 @@ import '../util/logger.dart'; class LifeCycleManager extends StatefulWidget { final Widget? child; - const LifeCycleManager({Key? key, this.child}) : super(key: key); + const LifeCycleManager({super.key, this.child}); @override _LifeCycleManagerState createState() => _LifeCycleManagerState(); diff --git a/lib/ui/widgets/my_appbar.dart b/lib/ui/widgets/my_appbar.dart index 67cd92b..9bda695 100644 --- a/lib/ui/widgets/my_appbar.dart +++ b/lib/ui/widgets/my_appbar.dart @@ -7,12 +7,11 @@ class MyAppBar extends AppBar { static final List aboutDisabledWidgets = []; MyAppBar( - {Key? key, + {super.key, required Widget title, List? actionWidgets, bool enableAbout = true}) : super( - key: key, title: Row(children: [title]), actions: _renderIconButtons(actionWidgets, enableAbout));