android fix:protobuf 3.1.0

This commit is contained in:
csf
2022-07-17 16:47:19 +08:00
parent 88fef77980
commit f587bdee5a
3 changed files with 37 additions and 53 deletions

View File

@@ -146,13 +146,7 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
leading: Icon(Icons.cloud),
onPressed: (context) {
showServerSettings();
}),
SettingsTile.navigation(
title: Text(translate('Language')),
leading: Icon(Icons.translate),
onPressed: (context) {
showLanguageSettings();
}),
})
]),
SettingsSection(
title: Text(translate("Enhancements")),
@@ -191,13 +185,6 @@ void showServerSettings() {
showServerSettingsWithValue(id, relay, key, api);
}
void showLanguageSettings() {
try {
final langs = json.decode(FFI.getByName('langs')) as Map<String, String>;
debugPrint("langs:$langs");
} catch (e) {}
}
void showAbout() {
DialogManager.show((setState, close) {
return CustomAlertDialog(