mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-23 22:51:00 -04:00
home layout
This commit is contained in:
parent
f754f7d5ed
commit
ca6b00e021
45 changed files with 2168 additions and 561 deletions
|
@ -11,6 +11,7 @@ import '../components/default_app_bar.dart';
|
|||
import '../entities/proto.dart' as proto;
|
||||
import '../providers/local_accounts.dart';
|
||||
import '../providers/logins.dart';
|
||||
import '../providers/window_control.dart';
|
||||
import '../tools/tools.dart';
|
||||
import '../veilid_support/veilid_support.dart';
|
||||
|
||||
|
@ -111,8 +112,7 @@ class NewAccountPageState extends ConsumerState<NewAccountPage> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
enableTitleBar(true);
|
||||
portraitOnly();
|
||||
ref.watch(windowControlProvider);
|
||||
|
||||
final localAccounts = ref.watch(localAccountsProvider);
|
||||
final logins = ref.watch(loginsProvider);
|
||||
|
@ -132,15 +132,8 @@ class NewAccountPageState extends ConsumerState<NewAccountPage> {
|
|||
try {
|
||||
await createAccount();
|
||||
} on Exception catch (e) {
|
||||
await QuickAlert.show(
|
||||
context: context,
|
||||
type: QuickAlertType.error,
|
||||
title: translate('new_account_page.error'),
|
||||
text: 'Exception: $e',
|
||||
//backgroundColor: Colors.black,
|
||||
//titleColor: Colors.white,
|
||||
//textColor: Colors.white,
|
||||
);
|
||||
await showErrorModal(
|
||||
context, translate('new_account_page.error'), 'Exception: $e');
|
||||
}
|
||||
},
|
||||
).paddingSymmetric(horizontal: 24, vertical: 8),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue