diff --git a/ui/flutter/assets/locales/zh_CN.json b/ui/flutter/assets/locales/zh_CN.json index 50dc8271..4c1a49d3 100644 --- a/ui/flutter/assets/locales/zh_CN.json +++ b/ui/flutter/assets/locales/zh_CN.json @@ -65,5 +65,8 @@ "extensionInstallSuccess": "安装成功", "extensionUpdateSuccess": "更新成功", "extensionDelete": "删除扩展", - "extensionAlreadyLatest": "已经是最新版本" -} + "extensionAlreadyLatest": "已经是最新版本", + "history": "历史记录", + "clearHistory": "清空历史记录", + "noHistoryFound": "暂无历史记录" +} \ No newline at end of file diff --git a/ui/flutter/lib/app/modules/extension/views/extension_view.dart b/ui/flutter/lib/app/modules/extension/views/extension_view.dart index 2f7a3ad7..d78f02c8 100644 --- a/ui/flutter/lib/app/modules/extension/views/extension_view.dart +++ b/ui/flutter/lib/app/modules/extension/views/extension_view.dart @@ -160,7 +160,10 @@ class ExtensionView extends GetView { ]; 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 { ); } - 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)), ); } diff --git a/ui/flutter/lib/generated/locales.g.dart b/ui/flutter/lib/generated/locales.g.dart index c76f4dc5..c37314f8 100644 --- a/ui/flutter/lib/generated/locales.g.dart +++ b/ui/flutter/lib/generated/locales.g.dart @@ -82,6 +82,9 @@ class LocaleKeys { static const extensionUpdateSuccess = 'extensionUpdateSuccess'; static const extensionDelete = 'extensionDelete'; static const extensionAlreadyLatest = 'extensionAlreadyLatest'; + static const history = 'history'; + static const clearHistory = 'clearHistory'; + static const noHistoryFound = 'noHistoryFound'; } class Locales { @@ -155,6 +158,9 @@ class Locales { 'extensionUpdateSuccess': 'Updated successfully', 'extensionDelete': 'Delete Extension', 'extensionAlreadyLatest': 'It\'s already the latest version', + 'history': 'History', + 'clearHistory': 'Clear History', + 'noHistoryFound': 'No History Found', }; static const fa_IR = { 'label': 'فارسی', @@ -407,6 +413,9 @@ class Locales { 'extensionUpdateSuccess': '更新成功', 'extensionDelete': '删除扩展', 'extensionAlreadyLatest': '已经是最新版本', + 'history': '历史记录', + 'clearHistory': '清空历史记录', + 'noHistoryFound': '没有历史记录', }; static const zh_TW = { 'label': '中文 (正體) ',