mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-04 15:25:08 -04:00
chat refactor
This commit is contained in:
parent
4a8958a868
commit
03a6a781a6
18 changed files with 239 additions and 333 deletions
|
@ -1,8 +1,6 @@
|
|||
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:veilid_support/veilid_support.dart';
|
||||
|
||||
import '../../account_manager/account_manager.dart';
|
||||
import '../../theme/theme.dart';
|
||||
|
@ -39,8 +37,7 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||
super.dispose();
|
||||
}
|
||||
|
||||
Widget buildWithLogin(BuildContext context, IList<LocalAccount> localAccounts,
|
||||
Typed<FixedEncodedString43>? activeUserLogin) {
|
||||
Widget buildWithLogin(BuildContext context) {
|
||||
final activeUserLogin = context.watch<ActiveUserLoginCubit>().state;
|
||||
|
||||
if (activeUserLogin == null) {
|
||||
|
@ -64,7 +61,7 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||
child: BlocProvider(
|
||||
create: (context) => AccountRecordCubit(
|
||||
record: accountInfo.activeAccountInfo!.accountRecord),
|
||||
child: HomeAccountReady()));
|
||||
child: const HomeAccountReady()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue