diff --git a/native_image_cropper/example/pubspec.lock b/native_image_cropper/example/pubspec.lock index 725f0020..ad20a4d4 100644 --- a/native_image_cropper/example/pubspec.lock +++ b/native_image_cropper/example/pubspec.lock @@ -101,10 +101,10 @@ packages: dependency: "direct dev" description: name: cosee_lints - sha256: "4369ad0964e217729530356f4323ca936ed08b89180d29fd59391cd91bbafe7d" + sha256: a0ecaffb89cd5446d9338a4475f96f55f679c578d342c8250b936cffdb0b9158 url: "https://pub.dev" source: hosted - version: "0.13.0" + version: "0.14.0" crypto: dependency: transitive description: @@ -350,7 +350,7 @@ packages: path: ".." relative: true source: path - version: "0.7.0" + version: "0.7.1" native_image_cropper_android: dependency: "direct overridden" description: @@ -648,5 +648,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.11.0 <4.0.0" + dart: ">=3.12.0 <4.0.0" flutter: ">=3.41.0" diff --git a/native_image_cropper/example/pubspec.yaml b/native_image_cropper/example/pubspec.yaml index aa48b3f5..9fe40448 100644 --- a/native_image_cropper/example/pubspec.yaml +++ b/native_image_cropper/example/pubspec.yaml @@ -19,7 +19,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 flutter: diff --git a/native_image_cropper/pubspec.yaml b/native_image_cropper/pubspec.yaml index c5933d9c..606c412b 100644 --- a/native_image_cropper/pubspec.yaml +++ b/native_image_cropper/pubspec.yaml @@ -40,5 +40,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 diff --git a/native_image_cropper_android/example/pubspec.lock b/native_image_cropper_android/example/pubspec.lock index 94130cee..22a041b5 100644 --- a/native_image_cropper_android/example/pubspec.lock +++ b/native_image_cropper_android/example/pubspec.lock @@ -93,10 +93,10 @@ packages: dependency: "direct dev" description: name: cosee_lints - sha256: "4369ad0964e217729530356f4323ca936ed08b89180d29fd59391cd91bbafe7d" + sha256: a0ecaffb89cd5446d9338a4475f96f55f679c578d342c8250b936cffdb0b9158 url: "https://pub.dev" source: hosted - version: "0.13.0" + version: "0.14.0" crypto: dependency: transitive description: @@ -455,5 +455,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.11.0 <4.0.0" + dart: ">=3.12.0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54" diff --git a/native_image_cropper_android/example/pubspec.yaml b/native_image_cropper_android/example/pubspec.yaml index c91db120..5870cb0d 100644 --- a/native_image_cropper_android/example/pubspec.yaml +++ b/native_image_cropper_android/example/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 flutter: diff --git a/native_image_cropper_android/pubspec.yaml b/native_image_cropper_android/pubspec.yaml index 705fdc0e..6df484d7 100644 --- a/native_image_cropper_android/pubspec.yaml +++ b/native_image_cropper_android/pubspec.yaml @@ -26,5 +26,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 diff --git a/native_image_cropper_ios/example/pubspec.lock b/native_image_cropper_ios/example/pubspec.lock index 3dd3599a..a77c98f4 100644 --- a/native_image_cropper_ios/example/pubspec.lock +++ b/native_image_cropper_ios/example/pubspec.lock @@ -93,10 +93,10 @@ packages: dependency: "direct dev" description: name: cosee_lints - sha256: "4369ad0964e217729530356f4323ca936ed08b89180d29fd59391cd91bbafe7d" + sha256: a0ecaffb89cd5446d9338a4475f96f55f679c578d342c8250b936cffdb0b9158 url: "https://pub.dev" source: hosted - version: "0.13.0" + version: "0.14.0" crypto: dependency: transitive description: @@ -463,5 +463,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.11.0 <4.0.0" + dart: ">=3.12.0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54" diff --git a/native_image_cropper_ios/example/pubspec.yaml b/native_image_cropper_ios/example/pubspec.yaml index e3bd2257..cd3c718d 100644 --- a/native_image_cropper_ios/example/pubspec.yaml +++ b/native_image_cropper_ios/example/pubspec.yaml @@ -18,7 +18,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 flutter: diff --git a/native_image_cropper_ios/pubspec.yaml b/native_image_cropper_ios/pubspec.yaml index b25ba04a..44f10b11 100644 --- a/native_image_cropper_ios/pubspec.yaml +++ b/native_image_cropper_ios/pubspec.yaml @@ -25,5 +25,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 diff --git a/native_image_cropper_macos/example/pubspec.lock b/native_image_cropper_macos/example/pubspec.lock index 4ae40481..75a29042 100644 --- a/native_image_cropper_macos/example/pubspec.lock +++ b/native_image_cropper_macos/example/pubspec.lock @@ -93,10 +93,10 @@ packages: dependency: "direct dev" description: name: cosee_lints - sha256: "4369ad0964e217729530356f4323ca936ed08b89180d29fd59391cd91bbafe7d" + sha256: a0ecaffb89cd5446d9338a4475f96f55f679c578d342c8250b936cffdb0b9158 url: "https://pub.dev" source: hosted - version: "0.13.0" + version: "0.14.0" crypto: dependency: transitive description: @@ -463,5 +463,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.11.0 <4.0.0" + dart: ">=3.12.0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54" diff --git a/native_image_cropper_macos/example/pubspec.yaml b/native_image_cropper_macos/example/pubspec.yaml index 017b9f69..48d13f5b 100644 --- a/native_image_cropper_macos/example/pubspec.yaml +++ b/native_image_cropper_macos/example/pubspec.yaml @@ -18,7 +18,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 flutter: diff --git a/native_image_cropper_macos/pubspec.yaml b/native_image_cropper_macos/pubspec.yaml index 21ab33ba..54452c38 100644 --- a/native_image_cropper_macos/pubspec.yaml +++ b/native_image_cropper_macos/pubspec.yaml @@ -25,5 +25,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 diff --git a/native_image_cropper_platform_interface/example/pubspec.lock b/native_image_cropper_platform_interface/example/pubspec.lock index 5c702d59..b36f1070 100644 --- a/native_image_cropper_platform_interface/example/pubspec.lock +++ b/native_image_cropper_platform_interface/example/pubspec.lock @@ -77,10 +77,10 @@ packages: dependency: "direct dev" description: name: cosee_lints - sha256: "4369ad0964e217729530356f4323ca936ed08b89180d29fd59391cd91bbafe7d" + sha256: a0ecaffb89cd5446d9338a4475f96f55f679c578d342c8250b936cffdb0b9158 url: "https://pub.dev" source: hosted - version: "0.13.0" + version: "0.14.0" crypto: dependency: transitive description: @@ -347,4 +347,4 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.11.0 <4.0.0" + dart: ">=3.12.0 <4.0.0" diff --git a/native_image_cropper_platform_interface/example/pubspec.yaml b/native_image_cropper_platform_interface/example/pubspec.yaml index d436861e..5c541d85 100644 --- a/native_image_cropper_platform_interface/example/pubspec.yaml +++ b/native_image_cropper_platform_interface/example/pubspec.yaml @@ -12,5 +12,5 @@ dependencies: native_image_cropper_platform_interface: ^0.2.0 dev_dependencies: - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 diff --git a/native_image_cropper_platform_interface/pubspec.yaml b/native_image_cropper_platform_interface/pubspec.yaml index f630440d..9ec662c8 100644 --- a/native_image_cropper_platform_interface/pubspec.yaml +++ b/native_image_cropper_platform_interface/pubspec.yaml @@ -17,5 +17,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 diff --git a/native_image_cropper_web/example/lib/main.dart b/native_image_cropper_web/example/lib/main.dart index 15c8e0e5..abd4e205 100644 --- a/native_image_cropper_web/example/lib/main.dart +++ b/native_image_cropper_web/example/lib/main.dart @@ -24,6 +24,13 @@ class MyApp extends StatefulWidget { class _MyAppState extends State { final _nativeImageCropperWeb = NativeImageCropperPlugin(); ImageFormat _format = ImageFormat.jpg; + late Future _future; + + @override + void initState() { + super.initState(); + _future = _getBytes(); + } @override Widget build(BuildContext context) { @@ -34,8 +41,7 @@ class _MyAppState extends State { title: const Text('Native Image Cropper Web Example'), ), body: FutureBuilder( - // ignore: discarded_futures, build method cannot be marked async. - future: _getBytes(), + future: _future, builder: (context, snapshot) { if (snapshot.hasData) { final bytes = snapshot.data; diff --git a/native_image_cropper_web/example/pubspec.lock b/native_image_cropper_web/example/pubspec.lock index f22d36d5..24430899 100644 --- a/native_image_cropper_web/example/pubspec.lock +++ b/native_image_cropper_web/example/pubspec.lock @@ -101,10 +101,10 @@ packages: dependency: "direct dev" description: name: cosee_lints - sha256: "4369ad0964e217729530356f4323ca936ed08b89180d29fd59391cd91bbafe7d" + sha256: a0ecaffb89cd5446d9338a4475f96f55f679c578d342c8250b936cffdb0b9158 url: "https://pub.dev" source: hosted - version: "0.13.0" + version: "0.14.0" crypto: dependency: transitive description: @@ -612,5 +612,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.11.0 <4.0.0" + dart: ">=3.12.0 <4.0.0" flutter: ">=3.41.0" diff --git a/native_image_cropper_web/example/pubspec.yaml b/native_image_cropper_web/example/pubspec.yaml index 31104557..d33dc519 100644 --- a/native_image_cropper_web/example/pubspec.yaml +++ b/native_image_cropper_web/example/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0 flutter: diff --git a/native_image_cropper_web/pubspec.yaml b/native_image_cropper_web/pubspec.yaml index 42494fb6..2cdaf17f 100644 --- a/native_image_cropper_web/pubspec.yaml +++ b/native_image_cropper_web/pubspec.yaml @@ -26,5 +26,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - cosee_lints: ^0.13.0 + cosee_lints: ^0.14.0 dart_code_linter: ^4.0.0