feat(ui): Make quotes look better
This commit is contained in:
parent
6ba16ad020
commit
009ec759a3
@ -45,11 +45,9 @@ class QuoteBaseWidget extends StatelessWidget {
|
|||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.all(8),
|
padding: const EdgeInsets.all(8),
|
||||||
child: Container(
|
child: Material(
|
||||||
decoration: BoxDecoration(
|
color: _getColor(),
|
||||||
color: _getColor(),
|
borderRadius: const BorderRadius.all(radiusLarge),
|
||||||
borderRadius: const BorderRadius.all(radiusLarge),
|
|
||||||
),
|
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
@ -62,19 +60,19 @@ class QuoteBaseWidget extends StatelessWidget {
|
|||||||
width: quoteLeftBorderWidth,
|
width: quoteLeftBorderWidth,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
...resetQuotedMessage != null ? [
|
|
||||||
|
if (resetQuotedMessage != null)
|
||||||
Positioned(
|
Positioned(
|
||||||
right: 3,
|
right: 3,
|
||||||
top: 3,
|
top: 3,
|
||||||
child: InkWell(
|
child: IconButton(
|
||||||
onTap: resetQuotedMessage,
|
onPressed: resetQuotedMessage,
|
||||||
child: const Icon(
|
icon: const Icon(
|
||||||
Icons.close,
|
Icons.close,
|
||||||
size: 24,
|
size: 24,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
] : [],
|
|
||||||
Padding(
|
Padding(
|
||||||
padding: padding,
|
padding: padding,
|
||||||
child: child,
|
child: child,
|
||||||
|
Loading…
Reference in New Issue
Block a user