mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 02:42:34 +01:00
style: Animate in out search results
This commit is contained in:
parent
ba885ca69e
commit
22abd54176
@ -79,14 +79,17 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
title: L10n.of(context)!.publicRooms,
|
title: L10n.of(context)!.publicRooms,
|
||||||
icon: const Icon(Icons.explore_outlined),
|
icon: const Icon(Icons.explore_outlined),
|
||||||
),
|
),
|
||||||
SizedBox(
|
AnimatedContainer(
|
||||||
height: 106,
|
clipBehavior: Clip.hardEdge,
|
||||||
child: roomSearchResult == null ||
|
decoration: const BoxDecoration(),
|
||||||
|
curve: Curves.easeInOut,
|
||||||
|
height: roomSearchResult == null ||
|
||||||
roomSearchResult.chunk.isEmpty
|
roomSearchResult.chunk.isEmpty
|
||||||
? Center(
|
? 0
|
||||||
child:
|
: 106,
|
||||||
Text(L10n.of(context)!.noSearchResult),
|
duration: const Duration(milliseconds: 250),
|
||||||
)
|
child: roomSearchResult == null
|
||||||
|
? null
|
||||||
: ListView.builder(
|
: ListView.builder(
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
itemCount: roomSearchResult.chunk.length,
|
itemCount: roomSearchResult.chunk.length,
|
||||||
@ -114,14 +117,17 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
title: L10n.of(context)!.users,
|
title: L10n.of(context)!.users,
|
||||||
icon: const Icon(Icons.group_outlined),
|
icon: const Icon(Icons.group_outlined),
|
||||||
),
|
),
|
||||||
SizedBox(
|
AnimatedContainer(
|
||||||
height: 106,
|
clipBehavior: Clip.hardEdge,
|
||||||
child: userSearchResult == null ||
|
decoration: const BoxDecoration(),
|
||||||
|
curve: Curves.easeInOut,
|
||||||
|
height: userSearchResult == null ||
|
||||||
userSearchResult.results.isEmpty
|
userSearchResult.results.isEmpty
|
||||||
? Center(
|
? 0
|
||||||
child:
|
: 106,
|
||||||
Text(L10n.of(context)!.noSearchResult),
|
duration: const Duration(milliseconds: 250),
|
||||||
)
|
child: userSearchResult == null
|
||||||
|
? null
|
||||||
: ListView.builder(
|
: ListView.builder(
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
itemCount: userSearchResult.results.length,
|
itemCount: userSearchResult.results.length,
|
||||||
|
Loading…
Reference in New Issue
Block a user