Commit graph

224 commits

Author SHA1 Message Date
4e0967cc33 docs: change docs in preparation of 5.0.0 release 2025-03-06 13:03:27 +01:00
John Gorter
c63efadd2c bugfix: add imageQuality with default 20 value to options of flutter chat. 2025-03-06 13:03:27 +01:00
John Gorter
ad4cf1e37b bugfix: add compression parameter to image_picker widget for chat to prevent too large requests. 2025-03-06 13:03:27 +01:00
Freek van de Ven
d14ad4716a chore: update flutter_chat to version 5.0.0 2025-03-06 13:03:27 +01:00
Freek van de Ven
c1e20e84ff fix: set padding for message inputfield to the chatSidePadding 2025-03-06 13:03:27 +01:00
5126b8dab7 feat: add flag to disable new/old message loading on scroll 2025-03-06 13:03:27 +01:00
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