From d4c9c8a6ddfe32dc576b14867d642e7b5eed76ab Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 6 Oct 2024 09:39:24 +0200 Subject: [PATCH] build: Update flutter lints --- lib/widgets/mxc_image.dart | 4 ++-- pubspec.lock | 37 ++++++++++++------------------------- pubspec.yaml | 2 +- 3 files changed, 15 insertions(+), 28 deletions(-) diff --git a/lib/widgets/mxc_image.dart b/lib/widgets/mxc_image.dart index bf007f5308..3fa089a8f4 100644 --- a/lib/widgets/mxc_image.dart +++ b/lib/widgets/mxc_image.dart @@ -104,7 +104,7 @@ class _MxcImageState extends State { } } - void _tryLoad(_) async { + void _tryLoad([_]) async { if (_imageData != null) { return; } @@ -113,7 +113,7 @@ class _MxcImageState extends State { } catch (_) { if (!mounted) return; await Future.delayed(widget.retryDuration); - _tryLoad(_); + _tryLoad(); } } diff --git a/pubspec.lock b/pubspec.lock index 51f11e686d..41d0801d7c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,15 +5,10 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 + sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a url: "https://pub.dev" source: hosted - version: "72.0.0" - _macros: - dependency: transitive - description: dart - source: sdk - version: "0.3.2" + version: "61.0.0" adaptive_dialog: dependency: "direct main" description: @@ -26,10 +21,10 @@ packages: dependency: transitive description: name: analyzer - sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 + sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562 url: "https://pub.dev" source: hosted - version: "6.7.0" + version: "5.13.0" animations: dependency: "direct main" description: @@ -580,10 +575,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" + sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "5.0.0" flutter_local_notifications: dependency: "direct main" description: @@ -1151,10 +1146,10 @@ packages: dependency: transitive description: name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + sha256: "3315600f3fb3b135be672bf4a178c55f274bebe368325ae18462c89ac1e3b413" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "5.0.0" list_counter: dependency: transitive description: @@ -1203,14 +1198,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.0" - macros: - dependency: transitive - description: - name: macros - sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" - url: "https://pub.dev" - source: hosted - version: "0.1.2-main.4" markdown: dependency: transitive description: @@ -1343,10 +1330,10 @@ packages: dependency: transitive description: name: pana - sha256: "3fc3fe8e7a9fd4827fa4d625a423eec95d305b2bc3538a3adf7fd6c49217af97" + sha256: a9c03df79c6dde15848efbfb49b07065c30cc13e828e517c2a36eb83d4cffc41 url: "https://pub.dev" source: hosted - version: "0.21.45" + version: "0.21.33" pasteboard: dependency: "direct main" description: @@ -1988,10 +1975,10 @@ packages: dependency: transitive description: name: tar - sha256: "22f67e2d77b51050436620b2a5de521c58ca6f0b75af1d9ab3c8cae2eae58fcd" + sha256: "85ffd53e277f2bac8afa2885e6b195e26937e9c402424c3d88d92fd920b56de9" url: "https://pub.dev" source: hosted - version: "1.0.5" + version: "0.5.6" term_glyph: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 85dfb2d334..5423167e37 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -100,7 +100,7 @@ dependencies: webrtc_interface: ^1.0.13 dev_dependencies: - flutter_lints: ^3.0.0 + flutter_lints: ^5.0.0 flutter_native_splash: ^2.0.3+1 flutter_test: sdk: flutter