mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-18 18:33:49 +02:00
fix: remove divider at the new chat screen because it is not working correctly
This commit is contained in:
parent
146ec3a1a9
commit
1eb5f99b7b
4 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -384,7 +384,6 @@ class ChatListItem extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
const Divider(),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue