mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-10 02:20:28 +00:00
chore: locales build
This commit is contained in:
1 parent
aab4a37a7e
commit
ff6c0da262
3 files changed
+20
-4
No files matched your search
@@ -160,7 +160,10 @@ class ExtensionView extends GetView<ExtensionController> {
|
||||
];
|
||||
if (extension.devMode) {
|
||||
list.add(const SizedBox(width: 8));
|
||||
list.add(buildChip('dev'));
|
||||
list.add(buildChip(
|
||||
'dev',
|
||||
bgColor: Colors.blue.shade300,
|
||||
));
|
||||
}
|
||||
return list;
|
||||
}(),
|
||||
@@ -243,9 +246,10 @@ class ExtensionView extends GetView<ExtensionController> {
|
||||
);
|
||||
}
|
||||
|
||||
Widget buildChip(String text) {
|
||||
Widget buildChip(String text, {Color? bgColor}) {
|
||||
return Chip(
|
||||
padding: const EdgeInsets.all(0),
|
||||
backgroundColor: bgColor,
|
||||
label: Text(text, style: const TextStyle(fontSize: 12)),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user