Jacques
371ff6c335
feat: add semantics for buttons
2025-03-06 13:03:27 +01:00
Jacques
b3b8b1828e
feat: add semantics for text fields
2025-03-06 13:03:27 +01:00
Jacques
30fc7b4368
feat: add semantics for texts
2025-03-06 13:03:27 +01:00
6ecf073f15
feat: add error builder to chat detail screen for failed to load messages
2025-03-06 13:03:27 +01:00
d3f839dc94
fix: remove debugPrints to reduce polution of debug console
2025-03-06 13:03:27 +01:00
John Gorter
ba818158fb
bugfixes: localtime representations
2025-03-06 13:03:27 +01:00
Jacques
c1181d4e84
fix: add ability to set the color of the CircularProgressIndicator of the ImageLoadingSnackbar
...
This was standard grey and not changeable which was needed
2025-03-06 13:03:27 +01:00
Freek van de Ven
b0b4121a25
feat: stop loading new messages while autoscroll is on and stop loading old messages if there are no new results
2025-03-06 13:03:27 +01:00
Freek van de Ven
313ead2029
feat: improve loading visualisation on the chatdetailscreen
2025-03-06 13:03:27 +01:00
Freek van de Ven
5975e2f1c0
feat: add imageProviderResolver in the ChatOptions to override the default CachedNetworkImageProvider
2025-03-06 13:03:27 +01:00
Freek van de Ven
a1fc65aba2
feat: add previousMessage to the messageThemeResolver
2025-03-06 13:03:27 +01:00
Freek van de Ven
11d8c81161
fix: allow the messageTheme to override default behavior for message time
2025-03-06 13:03:27 +01:00
Freek van de Ven
590a339d0d
feat: add senderTitleResolver to override the default sender.firstName for chat messages
2025-03-06 13:03:27 +01:00
Freek van de Ven
2508789a6d
fix: let the chats align to the top
2025-03-06 13:03:27 +01:00
Freek van de Ven
b0d379284d
fix: check if context.mounted before updating usestates in chat_detail_screen.dart
2025-03-06 13:03:27 +01:00
Freek van de Ven
62f04e2d9b
feat: add chatScreenBuilder to use instead of baseScreenBuilder on the ChatDetailScreen
2025-03-06 13:03:27 +01:00
Freek van de Ven
6a63429efd
feat: make the default messageInputBuilder use a multiline textfield which increase the ChatBottomInputSection
2025-03-06 13:03:27 +01:00
Freek van de Ven
1a7b4a2cda
feat: add imagePickerBuilder to builders to override the default imagepicker for selecting an image
2025-03-06 13:03:27 +01:00
Freek van de Ven
c82df25aed
feat: pass showFullDate to dateformatter for the messageTime
2025-03-06 13:03:27 +01:00
Freek van de Ven
23f61dd5ff
feat: add senderId and chatId to uploadImage
2025-03-06 13:03:27 +01:00
e7bb4909ba
fix(README): improve wording and add syntax highlighting to all code snippets
2025-03-06 13:03:27 +01:00
Freek van de Ven
02ae851d13
feat: submit the chat message inputfield when enter is pressed
2025-03-06 13:03:27 +01:00
Freek van de Ven
7a0fd49070
feat: add borderRadius option for the MessageTheme
2025-03-06 13:03:27 +01:00
Freek van de Ven
70eeb816e2
feat: add minimum delay for fetching new and old messages that can be configured
2025-03-06 13:03:27 +01:00
Freek van de Ven
f57ba9a736
feat: add pagination controls to ChatOptions
2025-03-06 13:03:27 +01:00
Freek van de Ven
ab8a9d9e6f
feat: add proper pagination to chat_detail_screen.dart
2025-03-06 13:03:27 +01:00
Freek van de Ven
e1ca5aab71
fix: make the loadingWidgetBuilder not nullable
2025-03-06 13:03:27 +01:00
Freek van de Ven
8112e939e1
feat: allow chatTitleResolver to return null to fallback to default chatTitles
2025-03-06 13:03:27 +01:00
Freek van de Ven
7c80341ff5
refactor: move widgets from ChatDetailScreen to seperate files
...
This makes the chat_detail_screen.dart easier to read and only containing the logic
2025-03-06 13:03:27 +01:00
Freek van de Ven
5d29e733aa
fix: use ChatService instead of UserRepository directly for getAllUsersForChat
2025-03-06 13:03:27 +01:00
Freek van de Ven
d475cf7298
feat: update ChatRepositoryInterface with methods to manage pagination of messages in a chat
2025-03-06 13:03:27 +01:00
Freek van de Ven
77d6f7257e
feat: use getAllUsersForChat on ChatDetailScreen to avoid call to getUser for each user
2025-03-06 13:03:27 +01:00
Freek van de Ven
990a89199b
feat: add chatTitleResolver to ChatOptions to override chatTitle behavior
2025-03-06 13:03:27 +01:00
Freek van de Ven
281188c2b7
feat: add chatTitle to baseScreenBuilder
2025-03-06 13:03:27 +01:00
Freek van de Ven
8604ccada7
fix: remove unnecessary ChatOptions from routes.dart
2025-03-06 13:03:27 +01:00
Freek van de Ven
a9b52ef5d9
feat: use chatId instead of chat on chat_detail_screen and load chat from stream
2025-03-06 13:03:27 +01:00
Freek van de Ven
a9eb1a8df4
feat: remove chatService and chatOptions from widget parameters to use ChatScope instead
2025-03-06 13:03:27 +01:00
Freek van de Ven
b1909689f2
fix: remove NavigationWrapper to be more consistent with flutter_availability userstory
2025-03-06 13:03:27 +01:00
Freek van de Ven
4ec7da429e
feat: add FlutterChatDetailNavigatorUserstory to start a userstory with only the chat detail and subscreens of that screen
2025-03-06 13:03:27 +01:00
Freek van de Ven
ff28f91524
feat: use ChatScope for userstory screens to get service, options and userId
2025-03-06 13:03:27 +01:00
Freek van de Ven
d66942893f
feat: add onback behavior for each userstory screen so it pops correctly with the android backarrow
2025-03-06 13:03:27 +01:00
Freek van de Ven
15604bf264
feat: rework the existing navigator userstory to look more like flutter_availability userstory
2025-03-06 13:03:27 +01:00
Freek van de Ven
4c48cf8cd4
feat: add flutter_hooks dependency
2025-03-06 13:03:27 +01:00
Freek van de Ven
55be653975
feat: change ChatService and ChatScope to work the same as in flutter_availability
...
The userid should be managed inside of the service and it should come from the ChatOptions
2025-03-06 13:03:27 +01:00
Freek van de Ven
ed72545cc4
feat: add getAllUsersForChat to UserRepositoryInterface
...
This allows to get all the users for a chat in one call instead of doing multiple seperate calls for every individual user of a chat
2025-03-06 13:03:27 +01:00
Freek van de Ven
070a4d5adc
feat: add chat detailscreen styling options for beep
2025-03-06 13:03:27 +01:00
Freek van de Ven
22884ea395
feat: add ChatScope inherited widget for accessing the options, service and userId everywhere through the context
2025-03-06 13:03:27 +01:00
Freek van de Ven
3e03dd755e
feat: add messageType to MessageModel
2025-03-06 13:03:27 +01:00
Freek van de Ven
7457602afe
feat: add chatMessageBuilder to the chatoptions to override default behavior
...
With the chatMessageBuilder it is possible to run a null whenever you still want to use the default but only want to update the chat in very specific cases.
I also slightly refactored the chat_detail_screen.dart to remove duplicate code and make it more readable
2025-03-06 13:03:27 +01:00
Kiril Tijsma
1ea2887e27
fix(color-picker): get icon color from theme
2025-03-06 13:03:27 +01:00