mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-09-19 20:14:56 -04:00
debugging and cleanup
This commit is contained in:
parent
604ec9cfdd
commit
d460a0388c
69 changed files with 2306 additions and 790 deletions
|
@ -127,9 +127,9 @@ class _EditAccountPageState extends WindowSetupState<EditAccountPage> {
|
|||
.info(text: translate('edit_account_page.account_removed'));
|
||||
GoRouterHelper(context).pop();
|
||||
} else {
|
||||
context
|
||||
.read<NotificationsCubit>()
|
||||
.error(text: translate('edit_account_page.failed_to_remove'));
|
||||
context.read<NotificationsCubit>().error(
|
||||
title: translate('edit_account_page.failed_to_remove_title'),
|
||||
text: translate('edit_account_page.try_again_network'));
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
@ -196,7 +196,8 @@ class _EditAccountPageState extends WindowSetupState<EditAccountPage> {
|
|||
GoRouterHelper(context).pop();
|
||||
} else {
|
||||
context.read<NotificationsCubit>().error(
|
||||
text: translate('edit_account_page.failed_to_destroy'));
|
||||
title: translate('edit_account_page.failed_to_destroy_title'),
|
||||
text: translate('edit_account_page.try_again_network'));
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
|
|
@ -135,9 +135,10 @@ class _NewAccountPageState extends WindowSetupState<NewAccountPage> {
|
|||
})
|
||||
]),
|
||||
body: SingleChildScrollView(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||
child: _newAccountForm(
|
||||
context,
|
||||
)).paddingSymmetric(horizontal: 24, vertical: 8),
|
||||
context,
|
||||
)).paddingAll(2),
|
||||
).withModalHUD(context, displayModalHUD);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:async_tools/async_tools.dart';
|
||||
import 'package:awesome_extensions/awesome_extensions.dart';
|
||||
import 'package:file_saver/file_saver.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_translate/flutter_translate.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
@ -61,7 +61,7 @@ class _ShowRecoveryKeyPageState extends WindowSetupState<ShowRecoveryKeyPage> {
|
|||
_isInAsyncCall = false;
|
||||
});
|
||||
|
||||
if (Platform.isLinux) {
|
||||
if (!kIsWeb && Platform.isLinux) {
|
||||
// Share plus doesn't do Linux yet
|
||||
await FileSaver.instance.saveFile(name: 'recovery_key.png', bytes: bytes);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue