From dff3eefc4b6cb5205bc09633fce95b3c5c06c570 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:17:31 +0100 Subject: [PATCH] migrated to iap 1.1.0 --- lib/providers/films_provider.dart | 5 +++-- pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/providers/films_provider.dart b/lib/providers/films_provider.dart index e569b21..38cf769 100644 --- a/lib/providers/films_provider.dart +++ b/lib/providers/films_provider.dart @@ -70,8 +70,9 @@ class FilmsProviderState extends State { /* Custom films **/ Future addCustomFilm(FilmExponential film) async { - await widget.filmsStorageService.addFilm(film); - customFilms[film.id] = (film: film, isUsed: false); + // ignore: avoid_redundant_argument_values + await widget.filmsStorageService.addFilm(film, isUsed: true); + customFilms[film.id] = (film: film, isUsed: true); setState(() {}); } diff --git a/pubspec.yaml b/pubspec.yaml index 1194b15..b82a4c6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -30,7 +30,7 @@ dependencies: m3_lightmeter_iap: git: url: "https://github.com/vodemn/m3_lightmeter_iap" - ref: v1.0.1 + ref: v1.1.0 m3_lightmeter_resources: git: url: "https://github.com/vodemn/m3_lightmeter_resources"