fix: remove divider at the new chat screen because it is not working correctly

This commit is contained in:
Freek van de Ven 2024-05-23 16:49:26 +02:00
parent 146ec3a1a9
commit 1eb5f99b7b
4 changed files with 3 additions and 7 deletions

View file

@ -5,6 +5,7 @@
- Change onPressUserProfile callback to use a ChatUserModel instead of a String
- Add a enableGroupChatCreation boolean to the userstory configuration to enable or disable group chat creation
- Change the ChatTranslations constructor to require all translations or use the ChatTranslations.empty constructor if you don't want to specify all translations
- Remove the Divider between the users on the new chat screen
## 1.4.3

View file

@ -29,7 +29,7 @@ class ChatUserStoryConfiguration {
this.disableDismissForPermanentChats = false,
this.routeToNewChatIfEmpty = true,
this.enableGroupChatCreation = true,
this.translations = const ChatTranslations(),
this.translations = const ChatTranslations.empty(),
this.translationsBuilder,
this.chatPageBuilder,
this.onPressChatTitle,

View file

@ -384,7 +384,6 @@ class ChatListItem extends StatelessWidget {
),
),
),
const Divider(),
],
);
}

View file

@ -221,12 +221,8 @@ class _NewChatScreenState extends State<NewChatScreen> {
return widget.options.noChatsPlaceholderBuilder(widget.translations);
}
return ListView.separated(
return ListView.builder(
itemCount: filteredUsers.length,
separatorBuilder: (context, index) => const Padding(
padding: EdgeInsets.symmetric(horizontal: 28.0),
child: Divider(),
),
itemBuilder: (context, index) {
var user = filteredUsers[index];
return GestureDetector(