Minor design and UX improvements

This commit is contained in:
Christian Pauly 2020-06-20 11:46:12 +02:00
parent 90e92e7982
commit 6fc5fc54dd
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- New room list app bar design
- Chat app bar transparent
- Implement web file picker
- Minor design and UX improvements
### Changes:
- Show presences of users sharing a direct chat
- Big refactoring

View File

@ -32,6 +32,10 @@ class Message extends StatelessWidget {
this.selected,
this.timeline});
/// Indicates wheither the user may use a mouse instead
/// of touchscreen.
static bool useMouse = false;
@override
Widget build(BuildContext context) {
if (event.type == EventTypes.Unknown) {
@ -169,7 +173,8 @@ class Message extends StatelessWidget {
}
return InkWell(
onTap: longPressSelect ? () => null : () => onSelect(event),
onHover: (b) => useMouse = true,
onTap: !useMouse && longPressSelect ? () => null : () => onSelect(event),
splashColor: Theme.of(context).primaryColor.withAlpha(100),
onLongPress: !longPressSelect ? null : () => onSelect(event),
child: AnimatedContainer(