mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +00:00
fix: message bubble position on desktop devices
Signed-off-by: The one with the braid <info@braid.business>
This commit is contained in:
parent
bac4dd22ad
commit
ed16bdb1ff
1 changed files with 24 additions and 22 deletions
|
@ -368,30 +368,32 @@ class Message extends StatelessWidget {
|
||||||
container = Opacity(opacity: 0.4, child: container);
|
container = Opacity(opacity: 0.4, child: container);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Swipeable(
|
return Center(
|
||||||
key: ValueKey(event.eventId),
|
child: Swipeable(
|
||||||
background: const Padding(
|
key: ValueKey(event.eventId),
|
||||||
padding: EdgeInsets.symmetric(horizontal: 12.0),
|
background: const Padding(
|
||||||
child: Center(
|
padding: EdgeInsets.symmetric(horizontal: 12.0),
|
||||||
child: Icon(Icons.check_outlined),
|
child: Center(
|
||||||
|
child: Icon(Icons.check_outlined),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
direction: SwipeDirection.endToStart,
|
||||||
direction: SwipeDirection.endToStart,
|
onSwipe: (_) => onSwipe(),
|
||||||
onSwipe: (_) => onSwipe(),
|
child: InkWell(
|
||||||
child: InkWell(
|
onTap: () => onSelect(event),
|
||||||
onTap: () => onSelect(event),
|
child: Container(
|
||||||
child: Container(
|
color: selected
|
||||||
color: selected
|
? Theme.of(context).primaryColor.withAlpha(100)
|
||||||
? Theme.of(context).primaryColor.withAlpha(100)
|
: Theme.of(context).primaryColor.withAlpha(0),
|
||||||
: Theme.of(context).primaryColor.withAlpha(0),
|
constraints: const BoxConstraints(
|
||||||
constraints: const BoxConstraints(
|
maxWidth: FluffyThemes.columnWidth * 2.5,
|
||||||
maxWidth: FluffyThemes.columnWidth * 2.5,
|
),
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 8.0,
|
||||||
|
vertical: 4.0,
|
||||||
|
),
|
||||||
|
child: container,
|
||||||
),
|
),
|
||||||
padding: const EdgeInsets.symmetric(
|
|
||||||
horizontal: 8.0,
|
|
||||||
vertical: 4.0,
|
|
||||||
),
|
|
||||||
child: container,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue