Browse Source

update pubs via melos bootstrap on latest flutter stable

* Include new `dart format .` changes
* Fix the `flutter analyze` failures

```bash
$ flutter --version
Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 796c8ef792 (2 weeks ago) • 2023-06-13 15:51:02 -0700
Engine • revision 45f6e00911
Tools • Dart 3.0.5 • DevTools 2.23.1
```
pull/98/head
Philip Hayes 1 year ago
parent
commit
fd57649acd
  1. 34
      example/pubspec.lock
  2. 4
      example/test/widget_test.dart
  3. 6
      test/flutter_zxing_test.dart
  4. 12
      zxscanner/lib/configs/app_store.g.dart
  5. 2
      zxscanner/lib/pages/barcodes_page.dart
  6. 4
      zxscanner/lib/pages/help_page.dart
  7. 2
      zxscanner/lib/pages/history_page.dart
  8. 38
      zxscanner/pubspec.lock
  9. 2
      zxscanner/pubspec.yaml

34
example/pubspec.lock

@ -29,10 +29,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: async name: async
sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.10.0" version: "2.11.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -85,10 +85,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: characters name: characters
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.2.1" version: "1.3.0"
charcode: charcode:
dependency: transitive dependency: transitive
description: description:
@ -125,10 +125,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.17.0" version: "1.17.1"
conventional_commit: conventional_commit:
dependency: transitive dependency: transitive
description: description:
@ -315,10 +315,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: js name: js
sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.6.5" version: "0.6.7"
json_annotation: json_annotation:
dependency: transitive dependency: transitive
description: description:
@ -339,10 +339,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: matcher name: matcher
sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.12.13" version: "0.12.15"
material_color_utilities: material_color_utilities:
dependency: transitive dependency: transitive
description: description:
@ -363,10 +363,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.8.0" version: "1.9.1"
mustache_template: mustache_template:
dependency: transitive dependency: transitive
description: description:
@ -379,10 +379,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: path name: path
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.8.2" version: "1.8.3"
petitparser: petitparser:
dependency: transitive dependency: transitive
description: description:
@ -528,10 +528,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.4.16" version: "0.5.1"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@ -581,5 +581,5 @@ packages:
source: hosted source: hosted
version: "2.1.1" version: "2.1.1"
sdks: sdks:
dart: ">=2.19.0 <3.0.0" dart: ">=3.0.0-0 <4.0.0"
flutter: ">=3.3.0" flutter: ">=3.3.0"

4
example/test/widget_test.dart

@ -18,8 +18,8 @@ void main() {
// Verify that platform version is retrieved. // Verify that platform version is retrieved.
expect( expect(
find.byWidgetPredicate( find.byWidgetPredicate(
(Widget widget) => widget is Text && (Widget widget) =>
widget.data!.startsWith('Running on:'), widget is Text && widget.data!.startsWith('Running on:'),
), ),
findsOneWidget, findsOneWidget,
); );

6
test/flutter_zxing_test.dart

@ -7,12 +7,14 @@ void main() {
TestWidgetsFlutterBinding.ensureInitialized(); TestWidgetsFlutterBinding.ensureInitialized();
setUp(() { setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async { TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, (MethodCall methodCall) async {
return '42'; return '42';
}); });
}); });
tearDown(() { tearDown(() {
channel.setMockMethodCallHandler(null); TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, null);
}); });
} }

12
zxscanner/lib/configs/app_store.g.dart

@ -24,7 +24,8 @@ mixin _$AppStore on AppStoreBase, Store {
}); });
} }
final Atom _$colorSchemeIndexAtom = Atom(name: 'AppStoreBase.colorSchemeIndex'); final Atom _$colorSchemeIndexAtom =
Atom(name: 'AppStoreBase.colorSchemeIndex');
@override @override
int get colorSchemeIndex { int get colorSchemeIndex {
@ -69,7 +70,8 @@ mixin _$AppStore on AppStoreBase, Store {
}); });
} }
final Atom _$selectedLanguageAtom = Atom(name: 'AppStoreBase.selectedLanguage'); final Atom _$selectedLanguageAtom =
Atom(name: 'AppStoreBase.selectedLanguage');
@override @override
String get selectedLanguage { String get selectedLanguage {
@ -84,7 +86,8 @@ mixin _$AppStore on AppStoreBase, Store {
}); });
} }
final AsyncAction _$setThemeModeAsyncAction = AsyncAction('AppStoreBase.setThemeMode'); final AsyncAction _$setThemeModeAsyncAction =
AsyncAction('AppStoreBase.setThemeMode');
@override @override
Future<void> setThemeMode(ThemeMode value) { Future<void> setThemeMode(ThemeMode value) {
@ -118,7 +121,8 @@ mixin _$AppStore on AppStoreBase, Store {
.run(() => super.toggleVibrationMode(value: value)); .run(() => super.toggleVibrationMode(value: value));
} }
final AsyncAction _$setLanguageAsyncAction = AsyncAction('AppStoreBase.setLanguage'); final AsyncAction _$setLanguageAsyncAction =
AsyncAction('AppStoreBase.setLanguage');
@override @override
Future<void> setLanguage(String aLanguage) { Future<void> setLanguage(String aLanguage) {

2
zxscanner/lib/pages/barcodes_page.dart

@ -66,7 +66,7 @@ class _BarcodesPageState extends State<BarcodesPage> {
icon: const Icon(FontAwesomeIcons.copy), icon: const Icon(FontAwesomeIcons.copy),
onPressed: () { onPressed: () {
Clipboard.setData( Clipboard.setData(
ClipboardData(text: result.text)); ClipboardData(text: result.text ?? ''));
}, },
), ),
// Remove button // Remove button

4
zxscanner/lib/pages/help_page.dart

@ -22,8 +22,8 @@ class HelpPage extends StatelessWidget {
onTap: () { onTap: () {
launchUrlString('https://scanbot.io'); launchUrlString('https://scanbot.io');
}, },
child: Column( child: const Column(
children: const <Widget>[ children: <Widget>[
Text('All information is taken from'), Text('All information is taken from'),
Text( Text(
'scanbot.io', 'scanbot.io',

2
zxscanner/lib/pages/history_page.dart

@ -55,7 +55,7 @@ class _HistoryPageState extends State<HistoryPage> {
icon: const Icon(FontAwesomeIcons.copy), icon: const Icon(FontAwesomeIcons.copy),
onPressed: () { onPressed: () {
Clipboard.setData( Clipboard.setData(
ClipboardData(text: result.text)); ClipboardData(text: result.text ?? ''));
}, },
), ),
// Remove button // Remove button

38
zxscanner/pubspec.lock

@ -45,10 +45,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: async name: async
sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.10.0" version: "2.11.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -165,10 +165,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: characters name: characters
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.2.1" version: "1.3.0"
charcode: charcode:
dependency: transitive dependency: transitive
description: description:
@ -221,10 +221,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.17.0" version: "1.17.1"
conventional_commit: conventional_commit:
dependency: transitive dependency: transitive
description: description:
@ -552,10 +552,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: intl name: intl
sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91" sha256: a3715e3bc90294e971cb7dc063fbf3cd9ee0ebf8604ffeafabd9e6f16abbdbe6
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.17.0" version: "0.18.0"
io: io:
dependency: transitive dependency: transitive
description: description:
@ -568,10 +568,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: js name: js
sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.6.5" version: "0.6.7"
json_annotation: json_annotation:
dependency: transitive dependency: transitive
description: description:
@ -608,10 +608,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: matcher name: matcher
sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.12.13" version: "0.12.15"
material_color_utilities: material_color_utilities:
dependency: transitive dependency: transitive
description: description:
@ -632,10 +632,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.8.0" version: "1.9.1"
mime: mime:
dependency: transitive dependency: transitive
description: description:
@ -680,10 +680,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: path name: path
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.8.2" version: "1.8.3"
path_provider: path_provider:
dependency: "direct main" dependency: "direct main"
description: description:
@ -989,10 +989,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.4.16" version: "0.5.1"
timing: timing:
dependency: transitive dependency: transitive
description: description:
@ -1162,5 +1162,5 @@ packages:
source: hosted source: hosted
version: "2.1.1" version: "2.1.1"
sdks: sdks:
dart: ">=2.19.0 <3.0.0" dart: ">=3.0.0-0 <4.0.0"
flutter: ">=3.7.0" flutter: ">=3.7.0"

2
zxscanner/pubspec.yaml

@ -24,7 +24,7 @@ dependencies:
hive_flutter: ^1.1.0 hive_flutter: ^1.1.0
image: any image: any
image_picker: ^0.8.5 image_picker: ^0.8.5
intl: ^0.17.0 intl: ^0.18.0
mobx: ^2.0.0 mobx: ^2.0.0
path_provider: ^2.0.0 path_provider: ^2.0.0
share_plus: ^7.0.0 share_plus: ^7.0.0

Loading…
Cancel
Save