Minor design and UX improvements
This commit is contained in:
parent
90e92e7982
commit
6fc5fc54dd
|
@ -3,6 +3,7 @@
|
||||||
- New room list app bar design
|
- New room list app bar design
|
||||||
- Chat app bar transparent
|
- Chat app bar transparent
|
||||||
- Implement web file picker
|
- Implement web file picker
|
||||||
|
- Minor design and UX improvements
|
||||||
### Changes:
|
### Changes:
|
||||||
- Show presences of users sharing a direct chat
|
- Show presences of users sharing a direct chat
|
||||||
- Big refactoring
|
- Big refactoring
|
||||||
|
|
|
@ -32,6 +32,10 @@ class Message extends StatelessWidget {
|
||||||
this.selected,
|
this.selected,
|
||||||
this.timeline});
|
this.timeline});
|
||||||
|
|
||||||
|
/// Indicates wheither the user may use a mouse instead
|
||||||
|
/// of touchscreen.
|
||||||
|
static bool useMouse = false;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (event.type == EventTypes.Unknown) {
|
if (event.type == EventTypes.Unknown) {
|
||||||
|
@ -169,7 +173,8 @@ class Message extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: longPressSelect ? () => null : () => onSelect(event),
|
onHover: (b) => useMouse = true,
|
||||||
|
onTap: !useMouse && longPressSelect ? () => null : () => onSelect(event),
|
||||||
splashColor: Theme.of(context).primaryColor.withAlpha(100),
|
splashColor: Theme.of(context).primaryColor.withAlpha(100),
|
||||||
onLongPress: !longPressSelect ? null : () => onSelect(event),
|
onLongPress: !longPressSelect ? null : () => onSelect(event),
|
||||||
child: AnimatedContainer(
|
child: AnimatedContainer(
|
||||||
|
|
Loading…
Reference in a new issue