mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
Minor design and UX improvements
This commit is contained in:
parent
90e92e7982
commit
6fc5fc54dd
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user