mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
chore: code clean up
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -7,15 +7,14 @@ class StatView extends StatelessWidget {
|
||||
final String? size;
|
||||
final String? goto;
|
||||
|
||||
const StatView({Key? key, this.theme, this.view, this.size, this.goto})
|
||||
: super(key: key);
|
||||
const StatView({super.key, this.theme, this.view, this.size, this.goto});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Map<String, Color> colorObject = {
|
||||
'white': Colors.white,
|
||||
'gray': Theme.of(context).colorScheme.outline.withOpacity(0.8),
|
||||
'black': Theme.of(context).colorScheme.onBackground.withOpacity(0.7),
|
||||
'black': Theme.of(context).colorScheme.onSurface.withOpacity(0.7),
|
||||
};
|
||||
Color color = colorObject[theme]!;
|
||||
return Row(
|
||||
|
||||
Reference in New Issue
Block a user