mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +00:00
chore: Follow up select events
This commit is contained in:
parent
504fccc98f
commit
7c8d40f186
1 changed files with 9 additions and 14 deletions
|
@ -140,20 +140,15 @@ class Message extends StatelessWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisAlignment: rowMainAxisAlignment,
|
mainAxisAlignment: rowMainAxisAlignment,
|
||||||
children: [
|
children: [
|
||||||
AnimatedSize(
|
if (longPressSelect)
|
||||||
duration: FluffyThemes.animationDuration,
|
SizedBox(
|
||||||
curve: FluffyThemes.animationCurve,
|
|
||||||
child: longPressSelect
|
|
||||||
? SizedBox(
|
|
||||||
height: 32,
|
height: 32,
|
||||||
child: Checkbox.adaptive(
|
child: Checkbox.adaptive(
|
||||||
value: selected,
|
value: selected,
|
||||||
onChanged: (_) => onSelect(event),
|
onChanged: (_) => onSelect(event),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: const SizedBox.shrink(),
|
else if (sameSender || ownMessage)
|
||||||
),
|
|
||||||
if (sameSender || ownMessage)
|
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: Avatar.defaultSize,
|
width: Avatar.defaultSize,
|
||||||
child: Center(
|
child: Center(
|
||||||
|
|
Loading…
Reference in a new issue