fix: Minor design bugs

This commit is contained in:
Christian Pauly 2020-10-04 10:05:00 +02:00 committed by Inex Code
parent 8dc382aa3d
commit 44a5acd0ab
5 changed files with 6 additions and 9 deletions

View file

@ -36,7 +36,7 @@ class _ConnectionStatusHeaderState extends State<ConnectionStatusHeader> {
); );
return AnimatedContainer( return AnimatedContainer(
duration: Duration(milliseconds: 500), duration: Duration(milliseconds: 300),
height: _connected ? 0 : 5, height: _connected ? 0 : 5,
child: LinearProgressIndicator(), child: LinearProgressIndicator(),
); );

View file

@ -143,8 +143,7 @@ class ChatListItem extends StatelessWidget {
? Padding( ? Padding(
padding: const EdgeInsets.only(left: 4.0), padding: const EdgeInsets.only(left: 4.0),
child: Icon( child: Icon(
Icons.favorite, Icons.favorite_outline_rounded,
color: Colors.grey[400],
size: 16, size: 16,
), ),
) )
@ -153,8 +152,7 @@ class ChatListItem extends StatelessWidget {
? Padding( ? Padding(
padding: const EdgeInsets.only(left: 4.0), padding: const EdgeInsets.only(left: 4.0),
child: Icon( child: Icon(
Icons.notifications_off, Icons.notifications_off_outlined,
color: Colors.grey[400],
size: 16, size: 16,
), ),
) )
@ -164,7 +162,6 @@ class ChatListItem extends StatelessWidget {
child: Text( child: Text(
room.timeCreated.localizedTimeShort(context), room.timeCreated.localizedTimeShort(context),
style: TextStyle( style: TextStyle(
color: Color(0xFF555555),
fontSize: 13, fontSize: 13,
), ),
), ),

View file

@ -114,7 +114,7 @@ final ThemeData amoledTheme = ThemeData.dark().copyWith(
Color chatListItemColor(BuildContext context, bool activeChat, bool selected) => Color chatListItemColor(BuildContext context, bool activeChat, bool selected) =>
selected selected
? Theme.of(context).primaryColor.withAlpha(50) ? Theme.of(context).primaryColor.withAlpha(100)
: Theme.of(context).brightness == Brightness.light : Theme.of(context).brightness == Brightness.light
? activeChat ? activeChat
? Color(0xFFE8E8E8) ? Color(0xFFE8E8E8)

View file

@ -619,7 +619,7 @@ class _ChatState extends State<_Chat> {
height: seenByText.isEmpty ? 0 : 24, height: seenByText.isEmpty ? 0 : 24,
duration: seenByText.isEmpty duration: seenByText.isEmpty
? Duration(milliseconds: 0) ? Duration(milliseconds: 0)
: Duration(milliseconds: 500), : Duration(milliseconds: 300),
alignment: alignment:
filteredEvents.first.senderId == filteredEvents.first.senderId ==
client.userID client.userID

View file

@ -545,7 +545,7 @@ class _ChatListState extends State<ChatList> {
children: [ children: [
AnimatedContainer( AnimatedContainer(
duration: Duration( duration: Duration(
milliseconds: 500), milliseconds: 300),
height: displayPresences height: displayPresences
? 78 ? 78
: displayShareStatus : displayShareStatus