mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-13 11:42:17 -04:00
refactor
This commit is contained in:
parent
b35b618a4d
commit
7cf44ef192
21 changed files with 338 additions and 82 deletions
32
lib/layout/home/home_account_invalid.dart
Normal file
32
lib/layout/home/home_account_invalid.dart
Normal file
|
@ -0,0 +1,32 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
class HomeAccountInvalid extends StatefulWidget {
|
||||
const HomeAccountInvalid({super.key});
|
||||
|
||||
@override
|
||||
HomeAccountInvalidState createState() => HomeAccountInvalidState();
|
||||
}
|
||||
|
||||
class HomeAccountInvalidState extends State<HomeAccountInvalid> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => const Text('Account invalid');
|
||||
}
|
||||
// xxx: delete invalid account
|
||||
// Future.delayed(0.ms, () async {
|
||||
// await showErrorModal(context, translate('home.invalid_account_title'),
|
||||
// translate('home.invalid_account_text'));
|
||||
// // Delete account
|
||||
// await AccountRepository.instance.deleteLocalAccount(activeUserLogin);
|
||||
// // Switch to no active user login
|
||||
// await AccountRepository.instance.switchToAccount(null);
|
||||
// });
|
Loading…
Add table
Add a link
Reference in a new issue