From 02bda275b1502863329cf54b415e6271fc51963c Mon Sep 17 00:00:00 2001 From: deltamaya Date: Wed, 30 Oct 2024 10:07:20 +0800 Subject: [PATCH] force translation badge to capitalize --- lib/components/comic.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/components/comic.dart b/lib/components/comic.dart index 09183da..08477fe 100644 --- a/lib/components/comic.dart +++ b/lib/components/comic.dart @@ -455,7 +455,6 @@ class _ComicDescription extends StatelessWidget { ).toAlign(Alignment.topCenter); }), ), - // const Spacer(), Row( crossAxisAlignment: CrossAxisAlignment.end, children: [ @@ -480,10 +479,12 @@ class _ComicDescription extends StatelessWidget { color: Theme.of(context).colorScheme.tertiaryContainer, borderRadius: const BorderRadius.all(Radius.circular(8)), ), - child: Text( - badge!, - style: const TextStyle(fontSize: 12), - ), + child: Center( + child:Text( + "${badge![0].toUpperCase()}${badge!.substring(1).toLowerCase()}", + style: const TextStyle(fontSize: 12), + ), + ) ), ], )