feat(ui): Make quotes look better

This commit is contained in:
PapaTutuWawa 2022-12-21 21:00:08 +01:00
parent 6ba16ad020
commit 009ec759a3

View File

@ -45,11 +45,9 @@ class QuoteBaseWidget extends StatelessWidget {
return Padding(
padding: const EdgeInsets.all(8),
child: Container(
decoration: BoxDecoration(
color: _getColor(),
borderRadius: const BorderRadius.all(radiusLarge),
),
child: Material(
color: _getColor(),
borderRadius: const BorderRadius.all(radiusLarge),
clipBehavior: Clip.antiAlias,
child: Stack(
children: [
@ -62,19 +60,19 @@ class QuoteBaseWidget extends StatelessWidget {
width: quoteLeftBorderWidth,
),
),
...resetQuotedMessage != null ? [
if (resetQuotedMessage != null)
Positioned(
right: 3,
top: 3,
child: InkWell(
onTap: resetQuotedMessage,
child: const Icon(
child: IconButton(
onPressed: resetQuotedMessage,
icon: const Icon(
Icons.close,
size: 24,
),
),
)
] : [],
),
Padding(
padding: padding,
child: child,