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,
|
||||
curve: FluffyThemes.animationCurve,
|
||||
child: longPressSelect
|
||||
? Checkbox.adaptive(
|
||||
value: selected,
|
||||
onChanged: (_) => onSelect(event),
|
||||
? SizedBox(
|
||||
height: 32,
|
||||
child: Checkbox.adaptive(
|
||||
value: selected,
|
||||
onChanged: (_) => onSelect(event),
|
||||
),
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
),
|
||||
|
@ -212,9 +215,8 @@ class Message extends StatelessWidget {
|
|||
alignment: alignment,
|
||||
padding: const EdgeInsets.only(left: 8),
|
||||
child: GestureDetector(
|
||||
onTap: !longPressSelect ? () {} : () => onSelect(event),
|
||||
onLongPress:
|
||||
longPressSelect ? () {} : () => onSelect(event),
|
||||
longPressSelect ? null : () => onSelect(event),
|
||||
child: AnimatedOpacity(
|
||||
opacity: animateIn
|
||||
? 0
|
||||
|
|
Loading…
Reference in a new issue