chore: Follow up select events

This commit is contained in:
Krille 2023-12-29 12:22:51 +01:00
parent 504fccc98f
commit 7c8d40f186
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -140,20 +140,15 @@ class Message extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: rowMainAxisAlignment,
children: [
AnimatedSize(
duration: FluffyThemes.animationDuration,
curve: FluffyThemes.animationCurve,
child: longPressSelect
? SizedBox(
height: 32,
child: Checkbox.adaptive(
value: selected,
onChanged: (_) => onSelect(event),
),
)
: const SizedBox.shrink(),
),
if (sameSender || ownMessage)
if (longPressSelect)
SizedBox(
height: 32,
child: Checkbox.adaptive(
value: selected,
onChanged: (_) => onSelect(event),
),
)
else if (sameSender || ownMessage)
SizedBox(
width: Avatar.defaultSize,
child: Center(