|
|
|
|
@ -50,7 +50,9 @@ class _ChatHomeScreenState extends State<ChatHomeScreen> {
|
|
|
|
|
body: Consumer<ChatProviderModel>(
|
|
|
|
|
builder: (BuildContext context, ChatProviderModel m, Widget? child) {
|
|
|
|
|
return m.isLoading
|
|
|
|
|
? ChatHomeShimmer(isDetailedScreen: false,)
|
|
|
|
|
? ChatHomeShimmer(
|
|
|
|
|
isDetailedScreen: false,
|
|
|
|
|
)
|
|
|
|
|
: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
TextField(
|
|
|
|
|
@ -86,7 +88,7 @@ class _ChatHomeScreenState extends State<ChatHomeScreen> {
|
|
|
|
|
itemCount: m.searchedChats!.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const ClampingScrollPhysics(),
|
|
|
|
|
padding: const EdgeInsets.only(bottom: 80.0),
|
|
|
|
|
padding: const EdgeInsets.only(bottom: 80.0),
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
return SizedBox(
|
|
|
|
|
height: 55,
|
|
|
|
|
@ -99,7 +101,7 @@ class _ChatHomeScreenState extends State<ChatHomeScreen> {
|
|
|
|
|
height: 48,
|
|
|
|
|
width: 48,
|
|
|
|
|
).toShimmer().circle(30),
|
|
|
|
|
if (m.searchedChats![index].isImageLoaded! && m.searchedChats![index].image != null && m.searchedChats![index].image.isNotEmpty)
|
|
|
|
|
if (m.searchedChats![index].isImageLoaded! && m.searchedChats![index].image.isNotEmpty)
|
|
|
|
|
CircularAvatar(
|
|
|
|
|
radius: 20,
|
|
|
|
|
height: 48,
|
|
|
|
|
@ -197,7 +199,7 @@ class _ChatHomeScreenState extends State<ChatHomeScreen> {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (BuildContext context, int index) => const Divider(color: MyColors.lightGreyE5Color).paddingOnly(left: 59),
|
|
|
|
|
).expanded,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).paddingOnly(left: 21, right: 21);
|
|
|
|
|
},
|
|
|
|
|
|