mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:05:10 +00:00
chore: Follow up mark messages
This commit is contained in:
parent
2fadb64bc0
commit
f8d4b1f3ae
1 changed files with 7 additions and 5 deletions
|
@ -144,9 +144,12 @@ class Message extends StatelessWidget {
|
||||||
duration: FluffyThemes.animationDuration,
|
duration: FluffyThemes.animationDuration,
|
||||||
curve: FluffyThemes.animationCurve,
|
curve: FluffyThemes.animationCurve,
|
||||||
child: longPressSelect
|
child: longPressSelect
|
||||||
? Checkbox.adaptive(
|
? SizedBox(
|
||||||
value: selected,
|
height: 32,
|
||||||
onChanged: (_) => onSelect(event),
|
child: Checkbox.adaptive(
|
||||||
|
value: selected,
|
||||||
|
onChanged: (_) => onSelect(event),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: const SizedBox.shrink(),
|
: const SizedBox.shrink(),
|
||||||
),
|
),
|
||||||
|
@ -212,9 +215,8 @@ class Message extends StatelessWidget {
|
||||||
alignment: alignment,
|
alignment: alignment,
|
||||||
padding: const EdgeInsets.only(left: 8),
|
padding: const EdgeInsets.only(left: 8),
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: !longPressSelect ? () {} : () => onSelect(event),
|
|
||||||
onLongPress:
|
onLongPress:
|
||||||
longPressSelect ? () {} : () => onSelect(event),
|
longPressSelect ? null : () => onSelect(event),
|
||||||
child: AnimatedOpacity(
|
child: AnimatedOpacity(
|
||||||
opacity: animateIn
|
opacity: animateIn
|
||||||
? 0
|
? 0
|
||||||
|
|
Loading…
Reference in a new issue