mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
Clean up design
This commit is contained in:
parent
c0429c1e93
commit
90e92e7982
@ -347,7 +347,7 @@ class _ChatState extends State<_Chat> {
|
||||
return Scaffold(
|
||||
extendBodyBehindAppBar: true,
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).appBarTheme.color.withOpacity(0.9),
|
||||
backgroundColor: Theme.of(context).appBarTheme.color.withOpacity(0.95),
|
||||
leading: selectMode
|
||||
? IconButton(
|
||||
icon: Icon(Icons.close),
|
||||
|
@ -437,14 +437,16 @@ class _ChatListState extends State<ChatList> {
|
||||
rooms.length + publicRoomsCount;
|
||||
final directChats =
|
||||
rooms.where((r) => r.isDirectChat).toList();
|
||||
directChats.sort((a, b) => Matrix.of(context)
|
||||
.client
|
||||
.presences[b.directChatMatrixID]
|
||||
?.presence
|
||||
?.statusMsg !=
|
||||
null
|
||||
? 1
|
||||
: -1);
|
||||
final presences =
|
||||
Matrix.of(context).client.presences;
|
||||
directChats.sort((a, b) =>
|
||||
presences[b.directChatMatrixID]
|
||||
?.presence
|
||||
?.statusMsg !=
|
||||
null
|
||||
? 1
|
||||
: a.lastEvent.originServerTs.compareTo(
|
||||
b.lastEvent.originServerTs));
|
||||
return ListView.separated(
|
||||
controller: _scrollController,
|
||||
separatorBuilder:
|
||||
|
@ -184,7 +184,7 @@ class _LoginState extends State<Login> {
|
||||
L10n.of(context).login.toUpperCase(),
|
||||
style: TextStyle(color: Colors.white, fontSize: 16),
|
||||
),
|
||||
onPressed: () => loading ? null : login(context),
|
||||
onPressed: loading ? null : () => login(context),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -155,7 +155,7 @@ class _SignUpState extends State<SignUp> {
|
||||
L10n.of(context).signUp.toUpperCase(),
|
||||
style: TextStyle(color: Colors.white, fontSize: 16),
|
||||
),
|
||||
onPressed: () => loading ? null : signUpAction(context),
|
||||
onPressed: loading ? null : () => signUpAction(context),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -168,7 +168,7 @@ class _SignUpPasswordState extends State<SignUpPassword> {
|
||||
L10n.of(context).createAccountNow.toUpperCase(),
|
||||
style: TextStyle(color: Colors.white, fontSize: 16),
|
||||
),
|
||||
onPressed: () => loading ? null : _signUpAction(context),
|
||||
onPressed: loading ? null : () => _signUpAction(context),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user