Commit graph

213 commits

Author SHA1 Message Date
Freek van de Ven
3085f61b40 feat: add flutter_accessibility package 2025-02-21 14:14:53 +01:00
Freek van de Ven
c1c3aab808 feat: stop loading new messages while autoscroll is on and stop loading old messages if there are no new results 2025-02-21 10:40:12 +01:00
Freek van de Ven
02469f715e feat: improve loading visualisation on the chatdetailscreen 2025-02-21 10:40:12 +01:00
Freek van de Ven
e9d1d84ab9 feat: add imageProviderResolver in the ChatOptions to override the default CachedNetworkImageProvider 2025-02-20 15:40:27 +01:00
Freek van de Ven
f93a450259 feat: add previousMessage to the messageThemeResolver 2025-02-20 14:30:35 +01:00
Freek van de Ven
9a67564dbf fix: allow the messageTheme to override default behavior for message time 2025-02-20 14:30:35 +01:00
Freek van de Ven
cddd0b19b1 feat: add senderTitleResolver to override the default sender.firstName for chat messages 2025-02-20 13:45:34 +01:00
Freek van de Ven
100683f554 fix: let the chats align to the top 2025-02-20 13:02:11 +01:00
Freek van de Ven
dd70e7344e fix: check if context.mounted before updating usestates in chat_detail_screen.dart 2025-02-20 09:15:11 +01:00
Freek van de Ven
7b3ddc5118 feat: add chatScreenBuilder to use instead of baseScreenBuilder on the ChatDetailScreen 2025-02-19 15:40:24 +01:00
Freek van de Ven
e5c47c2f61 feat: make the default messageInputBuilder use a multiline textfield which increase the ChatBottomInputSection 2025-02-19 14:33:48 +01:00
Freek van de Ven
4e9feeadb2 feat: add imagePickerBuilder to builders to override the default imagepicker for selecting an image 2025-02-19 12:00:19 +01:00
Freek van de Ven
0fc0153463 feat: pass showFullDate to dateformatter for the messageTime 2025-02-19 12:00:19 +01:00
Freek van de Ven
efafb8dac1 feat: add senderId and chatId to uploadImage 2025-02-18 09:29:20 +01:00
946bfe1ee9 fix(README): improve wording and add syntax highlighting to all code snippets 2025-02-17 15:47:15 +01:00
Freek van de Ven
68462fb2cc feat: submit the chat message inputfield when enter is pressed 2025-02-17 15:47:15 +01:00
Freek van de Ven
6b7c1eef05 feat: add borderRadius option for the MessageTheme 2025-02-17 14:59:42 +01:00
Freek van de Ven
1dc1461a22 feat: add minimum delay for fetching new and old messages that can be configured 2025-02-17 10:07:24 +01:00
Freek van de Ven
b9d6e21863 feat: add pagination controls to ChatOptions 2025-02-17 10:07:24 +01:00
Freek van de Ven
ffbce235a5 feat: add proper pagination to chat_detail_screen.dart 2025-02-17 10:07:24 +01:00
Freek van de Ven
f4c02829f5 fix: make the loadingWidgetBuilder not nullable 2025-02-17 10:07:24 +01:00
Freek van de Ven
63575ac8fe feat: allow chatTitleResolver to return null to fallback to default chatTitles 2025-02-17 10:07:24 +01:00
Freek van de Ven
c38a608716 refactor: move widgets from ChatDetailScreen to seperate files
This makes the chat_detail_screen.dart easier to read and only containing the logic
2025-02-17 10:07:24 +01:00
Freek van de Ven
d298fbe15b fix: use ChatService instead of UserRepository directly for getAllUsersForChat 2025-02-14 09:31:39 +01:00
Freek van de Ven
acbb809a57 feat: update ChatRepositoryInterface with methods to manage pagination of messages in a chat 2025-02-14 09:31:39 +01:00
Freek van de Ven
756b99cfaa feat: use getAllUsersForChat on ChatDetailScreen to avoid call to getUser for each user 2025-02-13 19:56:09 +01:00
Freek van de Ven
cb1ceb456a feat: add chatTitleResolver to ChatOptions to override chatTitle behavior 2025-02-13 15:46:36 +01:00
Freek van de Ven
ab8045e6bf feat: add chatTitle to baseScreenBuilder 2025-02-13 14:58:38 +01:00
Freek van de Ven
6c7887700e fix: remove unnecessary ChatOptions from routes.dart 2025-02-13 14:58:38 +01:00
Freek van de Ven
627a78310a feat: use chatId instead of chat on chat_detail_screen and load chat from stream 2025-02-13 14:58:38 +01:00
Freek van de Ven
cc52c78487 feat: remove chatService and chatOptions from widget parameters to use ChatScope instead 2025-02-13 11:07:48 +01:00
Freek van de Ven
97c259761c fix: remove NavigationWrapper to be more consistent with flutter_availability userstory 2025-02-13 10:47:48 +01:00
Freek van de Ven
44209c4d2f feat: add FlutterChatDetailNavigatorUserstory to start a userstory with only the chat detail and subscreens of that screen 2025-02-13 10:47:48 +01:00
Freek van de Ven
c2f4d60bae feat: use ChatScope for userstory screens to get service, options and userId 2025-02-13 10:47:48 +01:00
Freek van de Ven
d610a0bb7d feat: add onback behavior for each userstory screen so it pops correctly with the android backarrow 2025-02-13 10:47:48 +01:00
Freek van de Ven
a26e5d92f0 feat: rework the existing navigator userstory to look more like flutter_availability userstory 2025-02-13 10:47:48 +01:00
Freek van de Ven
5414ab237f feat: add flutter_hooks dependency 2025-02-13 10:47:48 +01:00
Freek van de Ven
52e3e570dd 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-02-13 10:47:48 +01:00
Freek van de Ven
9af9bc8078 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-02-11 16:15:34 +01:00
Freek van de Ven
ea3ea0a21d feat: add chat detailscreen styling options for beep 2025-02-11 14:03:01 +01:00
FlutterJoey
24695aa87a
Merge pull request #119 from Iconica-Development/feature/chat-scope
feat: add ChatScope inherited widget for accessing the options, service and userId everywhere through the context
2025-02-11 11:35:30 +01:00
Freek van de Ven
45b5d4eeea feat: add ChatScope inherited widget for accessing the options, service and userId everywhere through the context 2025-02-10 08:25:50 +01:00
Freek van de Ven
da3b78f63b feat: add messageType to MessageModel 2025-02-03 11:19:59 +01:00
Freek van de Ven
d60917028a 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-01-30 16:24:14 +01:00
Kiril Tijsma
7a30621ab9 fix(color-picker): get icon color from theme 2025-01-30 16:22:00 +01:00
Freek van de Ven
91420fde78 feat: finishup 4.0.0 2024-10-31 11:41:47 +01:00
d5b7183df5 chore: publish all packages to forgejo 2024-10-31 11:41:47 +01:00
bd14f5cd6d fix: add remaining documentation and fix deep nesting 2024-10-31 11:41:47 +01:00
mike doornenbal
b6fc7b2cb0 fix: getting users 2024-10-31 11:41:47 +01:00
mike doornenbal
4ee5445809 fix: image_picker version 2024-10-31 11:41:47 +01:00