mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-03-12 05:10:41 +00:00
copy
This commit is contained in:
parent
d479d62ec1
commit
3e8e9d9426
2 changed files with 5 additions and 3 deletions
|
@ -56,6 +56,8 @@
|
||||||
"equipmentProfile": "Equipment profile",
|
"equipmentProfile": "Equipment profile",
|
||||||
"equipmentProfiles": "Equipment profiles",
|
"equipmentProfiles": "Equipment profiles",
|
||||||
"tapToAdd": "Tap to add",
|
"tapToAdd": "Tap to add",
|
||||||
|
"filmsInUse": "Films in use",
|
||||||
|
"filmsInUseDescription": "Deselect films that you are not using, so they will not appear in the film picker",
|
||||||
"general": "General",
|
"general": "General",
|
||||||
"keepScreenOn": "Keep screen on",
|
"keepScreenOn": "Keep screen on",
|
||||||
"haptics": "Haptics",
|
"haptics": "Haptics",
|
||||||
|
|
|
@ -13,15 +13,15 @@ class FilmsListTile extends StatelessWidget {
|
||||||
return IAPBuilder(
|
return IAPBuilder(
|
||||||
builder: (context, status) => ListTile(
|
builder: (context, status) => ListTile(
|
||||||
leading: const Icon(Icons.camera_roll),
|
leading: const Icon(Icons.camera_roll),
|
||||||
title: Text('Films in use'),
|
title: Text(S.of(context).filmsInUse),
|
||||||
onTap: status == IAPProductStatus.purchased
|
onTap: status == IAPProductStatus.purchased
|
||||||
? () {
|
? () {
|
||||||
showDialog<List<Film>>(
|
showDialog<List<Film>>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (_) => DialogFilter<Film>(
|
builder: (_) => DialogFilter<Film>(
|
||||||
icon: const Icon(Icons.camera_roll),
|
icon: const Icon(Icons.camera_roll),
|
||||||
title: "Films in use",
|
title: S.of(context).filmsInUse,
|
||||||
description: "Deselect films that you are not using, so they will not appear in the film picker",
|
description: S.of(context).filmsInUseDescription,
|
||||||
values: Film.values.sublist(1),
|
values: Film.values.sublist(1),
|
||||||
selectedValues: Film.values.sublist(1),
|
selectedValues: Film.values.sublist(1),
|
||||||
titleAdapter: (_, value) => value.name,
|
titleAdapter: (_, value) => value.name,
|
||||||
|
|
Loading…
Reference in a new issue