From b1722160d5da630e8be7104cd3b302014a1539ae Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:38:28 +0200 Subject: [PATCH] sync with iap changes --- .../components/film_picker/widget_picker_film.dart | 2 +- .../equipment/components/films/widget_list_tile_films.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/screens/metering/components/shared/readings_container/components/film_picker/widget_picker_film.dart b/lib/screens/metering/components/shared/readings_container/components/film_picker/widget_picker_film.dart index fe136cc..08f3952 100644 --- a/lib/screens/metering/components/shared/readings_container/components/film_picker/widget_picker_film.dart +++ b/lib/screens/metering/components/shared/readings_container/components/film_picker/widget_picker_film.dart @@ -16,7 +16,7 @@ class FilmPicker extends StatelessWidget { icon: Icons.camera_roll, title: S.of(context).film, selectedValue: Films.selectedOf(context), - values: Films.of(context), + values: Films.inUseOf(context), itemTitleBuilder: (_, value) => Text(value.name.isEmpty ? S.of(context).none : value.name), onChanged: FilmsProvider.of(context).setFilm, closedChild: ReadingValueContainer.singleValue( diff --git a/lib/screens/settings/components/equipment/components/films/widget_list_tile_films.dart b/lib/screens/settings/components/equipment/components/films/widget_list_tile_films.dart index 82ce5c1..c343e2b 100644 --- a/lib/screens/settings/components/equipment/components/films/widget_list_tile_films.dart +++ b/lib/screens/settings/components/equipment/components/films/widget_list_tile_films.dart @@ -20,8 +20,8 @@ class FilmsListTile extends StatelessWidget { icon: const Icon(Icons.camera_roll), title: S.of(context).filmsInUse, description: S.of(context).filmsInUseDescription, - values: Film.values.sublist(1), - selectedValues: Films.of(context), + values: Films.of(context).sublist(1), + selectedValues: Films.inUseOf(context), titleAdapter: (_, value) => value.name, ), ).then((values) {