mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-05 07:44:57 -04:00
refactor
This commit is contained in:
parent
b35b618a4d
commit
7cf44ef192
21 changed files with 338 additions and 82 deletions
33
lib/layout/home/home_account_missing.dart
Normal file
33
lib/layout/home/home_account_missing.dart
Normal file
|
@ -0,0 +1,33 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
class HomeAccountMissing extends StatefulWidget {
|
||||
const HomeAccountMissing({super.key});
|
||||
|
||||
@override
|
||||
HomeAccountMissingState createState() => HomeAccountMissingState();
|
||||
}
|
||||
|
||||
class HomeAccountMissingState extends State<HomeAccountMissing> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => const Text('Account missing');
|
||||
}
|
||||
|
||||
// xxx click to delete missing account or add to postframecallback
|
||||
// Future.delayed(0.ms, () async {
|
||||
// await showErrorModal(context, translate('home.missing_account_title'),
|
||||
// translate('home.missing_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