mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
added RestorePurchasesListTile
This commit is contained in:
parent
2117df2f11
commit
fff510d4f2
6 changed files with 22 additions and 0 deletions
|
@ -82,6 +82,7 @@
|
|||
"primaryColor": "Primary color",
|
||||
"choosePrimaryColor": "Choose primary color",
|
||||
"about": "About",
|
||||
"restorePurchases": "Restore purchases",
|
||||
"sourceCode": "Source code",
|
||||
"reportIssue": "Report an issue",
|
||||
"writeEmail": "Write an email",
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
"primaryColor": "Couleur primaire",
|
||||
"choosePrimaryColor": "Choisir la couleur primaire",
|
||||
"about": "À propos de l'application",
|
||||
"restorePurchases": "Restaurer les achats",
|
||||
"sourceCode": "Code source",
|
||||
"reportIssue": "Rapporter un problème",
|
||||
"writeEmail": "Écrire un email",
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
"primaryColor": "Основной цвет",
|
||||
"choosePrimaryColor": "Выберите основной цвет",
|
||||
"about": "О приложении",
|
||||
"restorePurchases": "Восстановить покупки",
|
||||
"sourceCode": "Исходный код",
|
||||
"reportIssue": "Сообщить о проблеме",
|
||||
"writeEmail": "Написать на почту",
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
"primaryColor": "主题颜色",
|
||||
"choosePrimaryColor": "选择主题颜色",
|
||||
"about": "关于",
|
||||
"restorePurchases": "恢复购买",
|
||||
"sourceCode": "源代码",
|
||||
"reportIssue": "报告问题",
|
||||
"writeEmail": "Email",
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:lightmeter/generated/l10n.dart';
|
||||
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
|
||||
|
||||
class RestorePurchasesListTile extends StatelessWidget {
|
||||
const RestorePurchasesListTile({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListTile(
|
||||
leading: const Icon(Icons.restore),
|
||||
title: Text(S.of(context).restorePurchases),
|
||||
onTap: IAPProductsProvider.of(context).restorePurchases,
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:lightmeter/generated/l10n.dart';
|
||||
import 'package:lightmeter/screens/settings/components/about/components/report_issue/widget_list_tile_report_issue.dart';
|
||||
import 'package:lightmeter/screens/settings/components/about/components/restore_purchases/widget_list_tile_restore_purchases.dart';
|
||||
import 'package:lightmeter/screens/settings/components/about/components/source_code/widget_list_tile_source_code.dart';
|
||||
import 'package:lightmeter/screens/settings/components/about/components/version/widget_list_tile_version.dart';
|
||||
import 'package:lightmeter/screens/settings/components/about/components/write_email/widget_list_tile_write_email.dart';
|
||||
|
@ -14,6 +15,7 @@ class AboutSettingsSection extends StatelessWidget {
|
|||
return SettingsSection(
|
||||
title: S.of(context).about,
|
||||
children: const [
|
||||
RestorePurchasesListTile(),
|
||||
SourceCodeListTile(),
|
||||
ReportIssueListTile(),
|
||||
WriteEmailListTile(),
|
||||
|
|
Loading…
Reference in a new issue