feat: Refactor account handling and improve group creation logic
This commit is contained in:
@@ -157,13 +157,15 @@ class _HomeContentState extends State<HomeContent> with AutomaticKeepAliveClient
|
||||
),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () async {
|
||||
final tripBloc = context.read<TripBloc>();
|
||||
|
||||
final result = await Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const CreateTripContent()),
|
||||
);
|
||||
|
||||
if (result == true && mounted) {
|
||||
context.read<TripBloc>().add(LoadTripsByUserId(userId: user.id));
|
||||
tripBloc.add(LoadTripsByUserId(userId: user.id));
|
||||
}
|
||||
},
|
||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||
|
||||
Reference in New Issue
Block a user