static analysis fixes

This commit is contained in:
Thibault Deckers 2021-03-09 20:01:07 +09:00
parent abd76511fc
commit a2cd013133
2 changed files with 27 additions and 23 deletions

View file

@ -2,25 +2,47 @@ name: aves
description: A visual media gallery and metadata explorer app. description: A visual media gallery and metadata explorer app.
repository: https://github.com/deckerst/aves repository: https://github.com/deckerst/aves
version: 1.3.5+41 version: 1.3.5+41
publish_to: none
environment: environment:
sdk: '>=2.10.0 <3.0.0' sdk: '>=2.10.0 <3.0.0'
# TODO TLAD merge null safe `expansion_tile_card` to fork
# TODO TLAD migrate from `flushbar` to basic SnackBar or `another_flushbar`
# TODO TLAD migrate from `geocoder` to `geocoding` (or reimplement) - https://github.com/Baseflow/flutter-geocoding/issues/37
# TODO TLAD remove explicit `overlay_support` version when 1.2.0 is stable (1.0.5 uses deprecated `ancestorWidgetOfExactType`)
# TODO TLAD upgrade printing to >=5 when `flutter_driver` dependency upgrade get on the right channel
# https://github.com/flutter/flutter/pull/75370
# https://github.com/flutter/flutter/blob/master/packages/flutter_driver/pubspec.yaml
# otherwise, we get this conundrum:
# every version of flutter_driver from sdk depends on crypto 2.1.5
# pdf >=3.0.1 depends on crypto ^3.0.0
# printing >=5.0.1 depends on pdf ^3.0.1
# not null safe, as of 2021/03/09
# `charts_flutter` - https://github.com/google/charts/issues/579
# `country_code` - unmaintained?
# `decorated_icon` - https://github.com/benPesso/flutter_decorated_icon/issues/2
# `flushbar` - discontinued
# `flutter_ijkplayer` - unmaintained?
# `flutter_map` - https://github.com/fleaflet/flutter_map/issues/829
# `geocoder` - unmaintained? - https://github.com/aloisdeniel/flutter_geocoder/issues/61
# `latlong` - archived - migrate to maps_toolkit? cf https://github.com/fleaflet/flutter_map/pull/750
# `palette_generator` - https://github.com/flutter/packages/pull/287
# `panorama` - no issue/PR
# `streams_channel` - unmaintained? - no issue/PR
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
# `charts_flutter` not null safe, as of 2021/03/09 - https://github.com/google/charts/issues/579
charts_flutter: charts_flutter:
collection: collection:
connectivity: connectivity:
# `country_code` not null safe, as of 2021/03/09 - unmaintained?
country_code: country_code:
# `decorated_icon` not null safe, as of 2021/03/09 - https://github.com/benPesso/flutter_decorated_icon/issues/2
decorated_icon: decorated_icon:
event_bus: event_bus:
# TODO TLAD merge null safe `expansion_tile_card` to fork
expansion_tile_card: expansion_tile_card:
# path: ../expansion_tile_card # path: ../expansion_tile_card
git: git:
@ -28,54 +50,36 @@ dependencies:
firebase_core: firebase_core:
firebase_analytics: firebase_analytics:
firebase_crashlytics: firebase_crashlytics:
# TODO TLAD migrate to basic SnackBar or `another_flushbar`
# `flushbar` not null safe, as of 2021/03/09 - discontinued
flushbar: flushbar:
flutter_highlight: flutter_highlight:
# `flutter_ijkplayer` not null safe, as of 2021/03/09 - unmaintained?
flutter_ijkplayer: flutter_ijkplayer:
# path: ../flutter_ijkplayer # path: ../flutter_ijkplayer
git: git:
url: git://github.com/deckerst/flutter_ijkplayer.git url: git://github.com/deckerst/flutter_ijkplayer.git
flutter_localized_locales: flutter_localized_locales:
# `flutter_map` not null safe, as of 2021/03/09 - https://github.com/fleaflet/flutter_map/issues/829
flutter_map: flutter_map:
flutter_markdown: flutter_markdown:
flutter_staggered_animations: flutter_staggered_animations:
flutter_svg: flutter_svg:
# TODO TLAD migrate to `geocoding` (or reimplement) - https://github.com/Baseflow/flutter-geocoding/issues/37
# `geocoder` not null safe, as of 2021/03/09 - unmaintained? - https://github.com/aloisdeniel/flutter_geocoder/issues/61
geocoder: geocoder:
github: github:
google_api_availability: google_api_availability:
google_maps_flutter: google_maps_flutter:
intl: intl:
# `latlong` not null safe, as of 2021/03/09 - archived - migrate to maps_toolkit? cf https://github.com/fleaflet/flutter_map/pull/750
latlong: latlong:
material_design_icons_flutter: material_design_icons_flutter:
# as of 2021/03/09, stable version 1.0.5 uses deprecated `ancestorWidgetOfExactType`
overlay_support: 1.2.0-nullsafety.0 overlay_support: 1.2.0-nullsafety.0
package_info: package_info:
# `palette_generator` not null safe, as of 2021/03/09 - https://github.com/flutter/packages/pull/287
palette_generator: palette_generator:
# `panorama` not null safe, as of 2021/03/09 - no issue/PR
panorama: panorama:
pdf: pdf:
pedantic: pedantic:
percent_indicator: percent_indicator:
permission_handler: permission_handler:
# TODO TLAD upgrade printing to >=5 when `flutter_driver` dependency upgrade get on the right channel
# https://github.com/flutter/flutter/pull/75370
# https://github.com/flutter/flutter/blob/master/packages/flutter_driver/pubspec.yaml
# otherwise, we get this conundrum:
# every version of flutter_driver from sdk depends on crypto 2.1.5
# pdf >=3.0.1 depends on crypto ^3.0.0
# printing >=5.0.1 depends on pdf ^3.0.1
printing: 4.1.0 printing: 4.1.0
provider: provider:
shared_preferences: shared_preferences:
sqflite: sqflite:
# `streams_channel` not null safe, as of 2021/03/09 - unmaintained? - no issue/PR
streams_channel: streams_channel:
tuple: tuple:
url_launcher: url_launcher:

View file

@ -140,7 +140,7 @@ void searchAlbum() {
await driver.tap(find.byValueKey('search-button')); await driver.tap(find.byValueKey('search-button'));
await driver.waitUntilNoTransientCallbacks(); await driver.waitUntilNoTransientCallbacks();
final albumPath = targetPicturesDirEmulated; const albumPath = targetPicturesDirEmulated;
final albumUniqueName = path.split(albumPath).last; final albumUniqueName = path.split(albumPath).last;
await driver.tap(find.byType('TextField')); await driver.tap(find.byType('TextField'));
await driver.enterText(albumUniqueName); await driver.enterText(albumUniqueName);