mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 10:53:51 +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
|
- 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
|
- 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
|
- 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
|
## 1.4.3
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ class ChatUserStoryConfiguration {
|
||||||
this.disableDismissForPermanentChats = false,
|
this.disableDismissForPermanentChats = false,
|
||||||
this.routeToNewChatIfEmpty = true,
|
this.routeToNewChatIfEmpty = true,
|
||||||
this.enableGroupChatCreation = true,
|
this.enableGroupChatCreation = true,
|
||||||
this.translations = const ChatTranslations(),
|
this.translations = const ChatTranslations.empty(),
|
||||||
this.translationsBuilder,
|
this.translationsBuilder,
|
||||||
this.chatPageBuilder,
|
this.chatPageBuilder,
|
||||||
this.onPressChatTitle,
|
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 widget.options.noChatsPlaceholderBuilder(widget.translations);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ListView.separated(
|
return ListView.builder(
|
||||||
itemCount: filteredUsers.length,
|
itemCount: filteredUsers.length,
|
||||||
separatorBuilder: (context, index) => const Padding(
|
|
||||||
padding: EdgeInsets.symmetric(horizontal: 28.0),
|
|
||||||
child: Divider(),
|
|
||||||
),
|
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
var user = filteredUsers[index];
|
var user = filteredUsers[index];
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
|
|
Loading…
Reference in a new issue