sync with iap changes

This commit is contained in:
Vadim 2023-09-14 15:38:28 +02:00
parent eeb70bfaff
commit b1722160d5
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ class FilmPicker extends StatelessWidget {
icon: Icons.camera_roll, icon: Icons.camera_roll,
title: S.of(context).film, title: S.of(context).film,
selectedValue: Films.selectedOf(context), selectedValue: Films.selectedOf(context),
values: Films.of(context), values: Films.inUseOf(context),
itemTitleBuilder: (_, value) => Text(value.name.isEmpty ? S.of(context).none : value.name), itemTitleBuilder: (_, value) => Text(value.name.isEmpty ? S.of(context).none : value.name),
onChanged: FilmsProvider.of(context).setFilm, onChanged: FilmsProvider.of(context).setFilm,
closedChild: ReadingValueContainer.singleValue( closedChild: ReadingValueContainer.singleValue(

View file

@ -20,8 +20,8 @@ class FilmsListTile extends StatelessWidget {
icon: const Icon(Icons.camera_roll), icon: const Icon(Icons.camera_roll),
title: S.of(context).filmsInUse, title: S.of(context).filmsInUse,
description: S.of(context).filmsInUseDescription, description: S.of(context).filmsInUseDescription,
values: Film.values.sublist(1), values: Films.of(context).sublist(1),
selectedValues: Films.of(context), selectedValues: Films.inUseOf(context),
titleAdapter: (_, value) => value.name, titleAdapter: (_, value) => value.name,
), ),
).then((values) { ).then((values) {