Downgrade flutter to 3.19 until I figure out how to get visiblity_detector to work with 3.22

This commit is contained in:
Ming Ming 2024-10-20 22:42:14 +08:00
parent e3370bd26e
commit 551d6694c5
31 changed files with 101 additions and 99 deletions

View file

@ -10,6 +10,10 @@ import 'package:np_ui/np_ui.dart';
const defaultSeedColor = Color(0xFF2196F3);
// Compatibility with flutter 3.22
typedef WidgetStateProperty = MaterialStateProperty;
typedef WidgetState = MaterialState;
extension ThemeExtension on ThemeData {
double get widthLimitedContentMaxWidth => 550.0;

View file

@ -23,6 +23,9 @@ part 'changelog/changelog_680.dart';
part 'changelog/changelog_690.dart';
part 'changelog/changelog_700.dart';
// Compatibility with flutter 3.22
typedef WidgetStateProperty = MaterialStateProperty;
class ChangelogArguments {
const ChangelogArguments(this.fromVersion);

View file

@ -18,6 +18,9 @@ import 'package:path/path.dart' as path_lib;
part 'dir_picker.g.dart';
// Compatibility with flutter 3.22
typedef WidgetState = MaterialState;
class DirPicker extends StatefulWidget {
const DirPicker({
super.key,

View file

@ -118,10 +118,10 @@ packages:
dependency: transitive
description:
name: build_daemon
sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9"
sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1"
url: "https://pub.dev"
source: hosted
version: "4.0.2"
version: "4.0.1"
build_resolvers:
dependency: transitive
description:
@ -134,18 +134,18 @@ packages:
dependency: "direct dev"
description:
name: build_runner
sha256: "644dc98a0f179b872f612d3eb627924b578897c629788e858157fa5e704ca0c7"
sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22"
url: "https://pub.dev"
source: hosted
version: "2.4.11"
version: "2.4.9"
build_runner_core:
dependency: transitive
description:
name: build_runner_core
sha256: e3c79f69a64bdfcd8a776a3c28db4eb6e3fb5356d013ae5eb2e52007706d5dbe
sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799"
url: "https://pub.dev"
source: hosted
version: "7.3.1"
version: "7.3.0"
built_collection:
dependency: transitive
description:
@ -280,18 +280,18 @@ packages:
dependency: transitive
description:
name: coverage
sha256: c1fb2dce3c0085f39dc72668e85f8e0210ec7de05345821ff58530567df345a5
sha256: "3945034e86ea203af7a056d98e98e42a5518fff200d6e8e6647e1886b07e936e"
url: "https://pub.dev"
source: hosted
version: "1.9.2"
version: "1.8.0"
cronet_http:
dependency: transitive
description:
name: cronet_http
sha256: "3af9c4d57bf07ef4b307e77b22be4ad61bea19ee6ff65e62184863f3a09f1415"
sha256: "013c515e2caf1381fcdc577b0c1a3625021b0df32880c20c06757fc616d375bb"
url: "https://pub.dev"
source: hosted
version: "1.3.2"
version: "1.2.1"
crypto:
dependency: "direct main"
description:
@ -312,10 +312,10 @@ packages:
dependency: transitive
description:
name: cupertino_http
sha256: "7e75c45a27cc13a886ab0a1e4d8570078397057bd612de9d24fe5df0d9387717"
sha256: "20c167fd843c9ff6fc25cc4a0e8efa4180dfe119fb6d18c3c55104113e9cfc6f"
url: "https://pub.dev"
source: hosted
version: "1.5.1"
version: "1.4.0"
dart_style:
dependency: transitive
description:
@ -589,10 +589,10 @@ packages:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: "9ee02950848f61c4129af3d6ec84a1cfc0e47931abc746b03e7a3bc3e8ff6eda"
sha256: "8cf40eebf5dec866a6d1956ad7b4f7016e6c0cc69847ab946833b7d43743809f"
url: "https://pub.dev"
source: hosted
version: "2.0.22"
version: "2.0.19"
flutter_secure_storage:
dependency: "direct main"
description:
@ -680,10 +680,10 @@ packages:
dependency: transitive
description:
name: frontend_server_client
sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694
sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "3.2.0"
glob:
dependency: transitive
description:
@ -752,10 +752,10 @@ packages:
dependency: transitive
description:
name: graphs
sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0"
sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19
url: "https://pub.dev"
source: hosted
version: "2.3.2"
version: "2.3.1"
hashcodes:
dependency: transitive
description:
@ -796,14 +796,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.2"
http_profile:
dependency: transitive
description:
name: http_profile
sha256: "7e679e355b09aaee2ab5010915c932cce3f2d1c11c3b2dc177891687014ffa78"
url: "https://pub.dev"
source: hosted
version: "0.1.0"
image_size_getter:
dependency: "direct main"
description:
@ -817,10 +809,10 @@ packages:
dependency: "direct main"
description:
name: intl
sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
url: "https://pub.dev"
source: hosted
version: "0.19.0"
version: "0.18.1"
io:
dependency: transitive
description:
@ -833,10 +825,10 @@ packages:
dependency: transitive
description:
name: jni
sha256: f377c585ea9c08d48b427dc2e03780af2889d1bb094440da853c6883c1acba4b
sha256: "85cf3fbc8ce837e09b4cfe59d688c0249a5b9f4cc9a9a5be38e2823f218988a8"
url: "https://pub.dev"
source: hosted
version: "0.10.1"
version: "0.9.3"
js:
dependency: transitive
description:
@ -890,26 +882,26 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
url: "https://pub.dev"
source: hosted
version: "10.0.4"
version: "10.0.0"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
url: "https://pub.dev"
source: hosted
version: "3.0.3"
version: "2.0.1"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
url: "https://pub.dev"
source: hosted
version: "3.0.1"
version: "2.0.1"
lints:
dependency: transitive
description:
@ -1018,10 +1010,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
url: "https://pub.dev"
source: hosted
version: "1.12.0"
version: "1.11.0"
mgrs_dart:
dependency: transitive
description:
@ -1328,10 +1320,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"
sha256: a248d8146ee5983446bf03ed5ea8f6533129a12b11f12057ad1b4a67a2b3b41d
url: "https://pub.dev"
source: hosted
version: "2.2.10"
version: "2.2.4"
path_provider_foundation:
dependency: transitive
description:
@ -1741,26 +1733,26 @@ packages:
dependency: "direct dev"
description:
name: test
sha256: "7ee446762c2c50b3bd4ea96fe13ffac69919352bd3b4b17bac3f3465edc58073"
sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f
url: "https://pub.dev"
source: hosted
version: "1.25.2"
version: "1.24.9"
test_api:
dependency: transitive
description:
name: test_api
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
version: "0.6.1"
test_core:
dependency: transitive
description:
name: test_core
sha256: "2bc4b4ecddd75309300d8096f781c0e3280ca1ef85beda558d33fcbedc2eead4"
sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.5.9"
timing:
dependency: transitive
description:
@ -1823,10 +1815,10 @@ packages:
dependency: transitive
description:
name: url_launcher_android
sha256: f0c73347dfcfa5b3db8bc06e1502668265d39c08f310c29bff4e28eea9699f79
sha256: "17cd5e205ea615e2c6ea7a77323a11712dffa0720a8a90540db57a01347f9ad9"
url: "https://pub.dev"
source: hosted
version: "6.3.9"
version: "6.3.2"
url_launcher_ios:
dependency: transitive
description:
@ -1946,10 +1938,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
url: "https://pub.dev"
source: hosted
version: "14.2.1"
version: "13.0.0"
wakelock_plus:
dependency: "direct main"
description:
@ -1978,10 +1970,10 @@ packages:
dependency: transitive
description:
name: web
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
version: "0.5.1"
web_socket:
dependency: transitive
description:
@ -2063,5 +2055,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
dart: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"

View file

@ -18,8 +18,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.70.0+7000
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:
@ -83,7 +83,7 @@ dependencies:
url: https://gitlab.com/nc-photos/dart_image_size_getter
ref: 1.0.0-nc-photos-2
path: library
intl: 0.19.0
intl: 0.18.1
kiwi: ^4.1.0
local_auth: ^2.2.0
logging: ^1.2.0

View file

@ -4,7 +4,7 @@ version: 1.0.0
# homepage: https://www.example.com
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dev_dependencies:
np_lints:

View file

@ -5,7 +5,7 @@ version: 1.0.0
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dependencies:
analyzer: ^6.2.0

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
equatable: ^2.0.5

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,7 +5,7 @@ version: 1.0.0
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dependencies:
collection: ^1.18.0

View file

@ -5,7 +5,7 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dependencies:
to_string:

View file

@ -5,7 +5,7 @@ version: 1.0.0
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dependencies:
clock: ^1.1.1

View file

@ -5,8 +5,8 @@ version: 1.0.0
publish_to: 'none'
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
copy_with:

View file

@ -5,8 +5,8 @@ version: 1.0.0
publish_to: 'none'
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
clock: ^1.1.1

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,7 +5,7 @@ version: 1.0.0
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dependencies:
cronet_http: ^1.2.0

View file

@ -4,7 +4,7 @@ version: 1.0.0
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dependencies:
flutter_lints: ^4.0.0

View file

@ -4,7 +4,7 @@ version: 1.0.0
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dependencies:
logging: ^1.2.0

View file

@ -5,7 +5,7 @@ version: 1.0.0
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dev_dependencies:
np_lints:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,7 +5,7 @@ version: 1.0.0
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
dev_dependencies:
np_lints:

View file

@ -4,8 +4,8 @@ version: 0.0.1
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -5,8 +5,8 @@ homepage:
publish_to: none
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:

View file

@ -4,8 +4,8 @@ version: 0.0.1
homepage:
environment:
sdk: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter: