added settings export
This commit is contained in:
parent
d984ee0a42
commit
9a7140744e
@ -1,5 +1,7 @@
|
||||
// ignore_for_file: no_leading_underscores_for_local_identifiers, use_build_context_synchronously, deprecated_member_use
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:refilc/api/providers/update_provider.dart';
|
||||
import 'package:refilc/providers/third_party_provider.dart';
|
||||
import 'package:refilc/theme/colors/accent.dart';
|
||||
@ -1063,6 +1065,21 @@ class SettingsScreenState extends State<SettingsScreen>
|
||||
activeColor: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
PanelButton(
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(4.0),
|
||||
bottom: Radius.circular(4.0),
|
||||
),
|
||||
leading: Icon(
|
||||
Icons.tune_outlined,
|
||||
size: 22.0,
|
||||
color: AppColors.of(context).text.withOpacity(.95),
|
||||
),
|
||||
title: Text("exp_settings".i18n),
|
||||
onPressed: () => Clipboard.setData(ClipboardData(
|
||||
text: json.encode(settings.toMap()),
|
||||
)),
|
||||
),
|
||||
PanelButton(
|
||||
borderRadius: BorderRadius.vertical(
|
||||
top: const Radius.circular(4.0),
|
||||
|
@ -113,6 +113,7 @@ extension SettingsLocalization on String {
|
||||
'change_account': 'Change Account (Logout)',
|
||||
"soon": "Soon",
|
||||
"new_colors": "New Colors",
|
||||
"exp_settings": "Export Settings",
|
||||
},
|
||||
"hu_hu": {
|
||||
"personal_details": "Személyes információk",
|
||||
@ -224,6 +225,7 @@ extension SettingsLocalization on String {
|
||||
"change_account": "Fiók cseréje (Kijelentkezés)",
|
||||
"soon": "Hamarosan",
|
||||
"new_colors": "Új színek",
|
||||
"exp_settings": "Beállítások exportálása",
|
||||
},
|
||||
"de_de": {
|
||||
"personal_details": "Persönliche Angaben",
|
||||
@ -335,6 +337,7 @@ extension SettingsLocalization on String {
|
||||
"change_account": "Konto ändern (Abmeldung)",
|
||||
"soon": "Bald",
|
||||
"new_colors": "Neue Farben",
|
||||
"exp_settings": "Einstellungen exportieren",
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user