mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: More minor fixes
This commit is contained in:
parent
89d0a85716
commit
4c10ef5213
@ -16,9 +16,6 @@ class ContactListTile extends StatelessWidget {
|
||||
var statusMsg = contact.presence?.statusMsg?.isNotEmpty ?? false
|
||||
? contact.presence.statusMsg
|
||||
: null;
|
||||
if (contact.senderId == '@jana:janian.de') {
|
||||
statusMsg = 'Hallo Welt';
|
||||
}
|
||||
return FutureBuilder<Profile>(
|
||||
future:
|
||||
Matrix.of(context).client.getProfileFromUserId(contact.senderId),
|
||||
|
@ -26,6 +26,8 @@ extension ClientPresenceExtension on Client {
|
||||
(p.presence?.statusMsg?.isNotEmpty ?? false))
|
||||
.toList(),
|
||||
);
|
||||
|
||||
contactList.sort((a, b) => a.senderId.compareTo(b.senderId));
|
||||
contactList.sort((a, b) => (a.presence.lastActiveAgo?.toDouble() ??
|
||||
double.infinity)
|
||||
.compareTo((b.presence.lastActiveAgo?.toDouble() ?? double.infinity)));
|
||||
|
@ -208,18 +208,27 @@ class _HomeViewState extends State<HomeView> with TickerProviderStateMixin {
|
||||
return Scaffold(
|
||||
appBar: appBar ??
|
||||
AppBar(
|
||||
centerTitle: false,
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: Icon(currentIndex == 3
|
||||
? Icons.exit_to_app_outlined
|
||||
: Icons.search_outlined),
|
||||
onPressed: () => _pageController.indexIsChanging
|
||||
? null
|
||||
: _onAppBarButtonTap.add(currentIndex),
|
||||
),
|
||||
],
|
||||
title: Text(title)),
|
||||
centerTitle: false,
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: Icon(currentIndex == 3
|
||||
? Icons.exit_to_app_outlined
|
||||
: Icons.search_outlined),
|
||||
onPressed: () => _pageController.indexIsChanging
|
||||
? null
|
||||
: _onAppBarButtonTap.add(currentIndex),
|
||||
),
|
||||
],
|
||||
title: Text(title),
|
||||
elevation:
|
||||
AdaptivePageLayout.of(context).columnMode(context) ? 0 : null,
|
||||
bottom: AdaptivePageLayout.of(context).columnMode(context)
|
||||
? PreferredSize(
|
||||
preferredSize: Size.fromHeight(1),
|
||||
child: Divider(height: 1),
|
||||
)
|
||||
: null,
|
||||
),
|
||||
body: TabBarView(
|
||||
controller: _pageController,
|
||||
children: [
|
||||
|
Loading…
Reference in New Issue
Block a user