mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-06 16:40:32 +00:00
* refactor project in get-cli standard * use local trackers when github is not connectable upgrade stylish_bottom_bar to 1.0.0 responsive view for home_view treeview for file_list_vie fluent ui integrating * improve responsive view. treeView add light theme.fix overflow bugs * responsive view,treeView,file select downloaded and downloading pages file extension icons fix some minor bugs * use local trackers when github is not connectable upgrade stylish_bottom_bar to 1.0.0 responsive view for home_view treeview for file_list_vie fluent ui integrating * improve responsive view. treeView add light theme.fix overflow bugs * bottom bar index fix * refactor project in get-cli standard * fix:locale fix * fix: task list stack progress style fix: translation fix: tree view fix: confirm button loading remove: stylish_bottom_bar(dark mode not supported) * fix: task list stack progress style fix: translation fix: tree view fix: confirm button loading remove: stylish_bottom_bar(dark mode not supported) --------- Co-authored-by: wuke2022 <[email protected]>
14 lines
317 B
Dart
14 lines
317 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
Locale toLocale(String key) {
|
|
final arr = key.split('_');
|
|
return Locale(arr[0], arr[1]);
|
|
}
|
|
|
|
String getLocaleKey(Locale locale) {
|
|
return '${locale.languageCode}_${locale.countryCode}';
|
|
}
|
|
|
|
const debugLocale = Locale('zh', 'CN');
|
|
const fallbackLocale = Locale('en', 'US');
|