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, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: rowMainAxisAlignment, mainAxisAlignment: rowMainAxisAlignment,
children: [ children: [
AnimatedSize( if (longPressSelect)
duration: FluffyThemes.animationDuration, SizedBox(
curve: FluffyThemes.animationCurve, height: 32,
child: longPressSelect child: Checkbox.adaptive(
? SizedBox( value: selected,
height: 32, onChanged: (_) => onSelect(event),
child: Checkbox.adaptive( ),
value: selected, )
onChanged: (_) => onSelect(event), else if (sameSender || ownMessage)
),
)
: const SizedBox.shrink(),
),
if (sameSender || ownMessage)
SizedBox( SizedBox(
width: Avatar.defaultSize, width: Avatar.defaultSize,
child: Center( child: Center(