👽 Update API to microservices

♻️ Refactor router pushes
This commit is contained in:
2025-07-17 14:35:09 +08:00
parent a7454edec0
commit e6c58b7b63
109 changed files with 9156 additions and 344 deletions

View File

@@ -178,7 +178,7 @@ class _ShareSheetState extends ConsumerState<ShareSheet> {
// Navigate to compose screen
if (mounted) {
context.push('/posts/compose', extra: initialState);
context.pushNamed('postCompose', extra: initialState);
Navigator.of(context).pop(); // Close the share sheet
}
} catch (e) {
@@ -323,7 +323,7 @@ class _ShareSheetState extends ConsumerState<ShareSheet> {
// Navigate to chat if requested
if (shouldNavigate == true && mounted) {
context.push('/chat/${chatRoom.id}');
context.push('/sphere/chat/${chatRoom.id}');
}
}
} catch (e) {