feat: Enhance trip management features and improve UI responsiveness
- Implemented AutomaticKeepAliveClientMixin in HomeContent to maintain state during navigation. - Modified trip loading logic to trigger after the first frame for better performance. - Updated trip loading events to use LoadTripsByUserId for consistency. - Added temporary success messages for trip creation and operations. - Improved UI elements for better user experience, including updated text styles and spacing. - Refactored trip model to support Firestore timestamps and improved error handling during parsing. - Streamlined trip repository methods for better clarity and performance. - Enhanced trip service methods to ensure correct mapping from Firestore documents. - Removed unnecessary trip reset logic on logout.
This commit is contained in:
@@ -108,7 +108,6 @@ class _HomePageState extends State<HomePage> {
|
||||
if (shouldLogout != true || !mounted) return;
|
||||
|
||||
try {
|
||||
context.read<TripBloc>().add(ResetTrips());
|
||||
context.read<UserBloc>().add(UserLoggedOut());
|
||||
_pageCache.clear();
|
||||
context.read<AuthBloc>().add(AuthSignOutRequested());
|
||||
|
||||
Reference in New Issue
Block a user