mod: remove incorrect ban url

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-14 10:06:17 +08:00
parent 471c95abe8
commit d4b005f6ae

View File

@@ -266,39 +266,33 @@ class UserInfoCard extends StatelessWidget {
if (silence == 1) if (silence == 1)
Builder(builder: (context) { Builder(builder: (context) {
bool isLight = Theme.of(context).brightness == Brightness.light; bool isLight = Theme.of(context).brightness == Brightness.light;
return GestureDetector( return Container(
onTap: () { decoration: BoxDecoration(
Utils.handleWebview( borderRadius: BorderRadius.circular(6),
'https://www.bilibili.com/blackroom/ban/${card.mid}'); color: isLight
}, ? Theme.of(context).colorScheme.errorContainer
child: Container( : Theme.of(context).colorScheme.error,
decoration: BoxDecoration( ),
borderRadius: BorderRadius.circular(6), margin: const EdgeInsets.only(left: 20, top: 8, right: 20),
color: isLight padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
? Theme.of(context).colorScheme.errorContainer child: Row(
: Theme.of(context).colorScheme.error, children: [
), Icon(
margin: const EdgeInsets.only(left: 20, top: 8, right: 20), Icons.info,
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), size: MediaQuery.textScalerOf(context).scale(18),
child: Row( color: isLight
children: [ ? Theme.of(context).colorScheme.onErrorContainer
Icon( : Theme.of(context).colorScheme.onError,
Icons.info, ),
size: MediaQuery.textScalerOf(context).scale(18), Text(
' 该账号封禁中${endTime ?? ''}',
style: TextStyle(
color: isLight color: isLight
? Theme.of(context).colorScheme.onErrorContainer ? Theme.of(context).colorScheme.onErrorContainer
: Theme.of(context).colorScheme.onError, : Theme.of(context).colorScheme.onError,
), ),
Text( ),
' 该账号封禁中${endTime ?? ''}', ],
style: TextStyle(
color: isLight
? Theme.of(context).colorScheme.onErrorContainer
: Theme.of(context).colorScheme.onError,
),
),
],
),
), ),
); );
}), }),