fix: tweak card appearances (#296)

* fix: tweak card appearances

* Update patch_selector_card.dart
This commit is contained in:
afn
2022-09-25 08:43:37 -04:00
committed by GitHub
parent db18874ea1
commit 7ecf951bfb
5 changed files with 27 additions and 31 deletions

View File

@ -65,21 +65,14 @@ class _PatchItemState extends State<PatchItem> {
fontWeight: FontWeight.w600,
),
),
const SizedBox(width: 4),
Container(
padding: const EdgeInsets.symmetric(
horizontal: 4,
vertical: 2,
const SizedBox(width: 6),
Text(
widget.version,
style: TextStyle(
fontSize: 16,
color: Theme.of(context).colorScheme.secondary,
),
decoration: BoxDecoration(
color: Theme.of(context)
.colorScheme
.background
.withOpacity(0.5),
borderRadius: BorderRadius.circular(6),
),
child: Text(widget.version),
)
),
],
),
const SizedBox(height: 4),
@ -88,7 +81,10 @@ class _PatchItemState extends State<PatchItem> {
softWrap: true,
maxLines: 3,
overflow: TextOverflow.visible,
style: const TextStyle(fontSize: 14),
style: TextStyle(
fontSize: 14,
color: Theme.of(context).colorScheme.onSecondaryContainer,
),
),
],
),
@ -119,12 +115,12 @@ class _PatchItemState extends State<PatchItem> {
padding: const EdgeInsets.only(top: 8),
child: TextButton.icon(
label: I18nText('patchItem.unsupportedWarningButton'),
icon: const Icon(Icons.warning),
icon: const Icon(Icons.warning, size: 20.0),
onPressed: () => _showUnsupportedWarningDialog(),
style: ButtonStyle(
shape: MaterialStateProperty.all(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
borderRadius: BorderRadius.circular(8),
side: BorderSide(
width: 1,
color: