This commit is contained in:
xkeyC 2023-11-22 00:40:36 +08:00
parent ed12eaf875
commit f194dfc383
3 changed files with 8 additions and 4 deletions

View File

@ -76,8 +76,12 @@ Future<String?> showInputDialogs(BuildContext context,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if (content.isNotEmpty) Text(content), if (content.isNotEmpty)
const SizedBox(height: 6), Text(
content,
style: TextStyle(color: Colors.white.withOpacity(.6)),
),
const SizedBox(height: 8),
TextFormBox( TextFormBox(
initialValue: initialValue, initialValue: initialValue,
onChanged: (str) { onChanged: (str) {

View File

@ -19,7 +19,7 @@ class SettingUI extends BaseUI<SettingUIModel> {
onTap: model.onResetAutoLogin), onTap: model.onResetAutoLogin),
const SizedBox(height: 12), const SizedBox(height: 12),
makeSettingsItem(const Icon(FontAwesomeIcons.microchip), makeSettingsItem(const Icon(FontAwesomeIcons.microchip),
"启动游戏时忽略能效核心( 适用于Intel 12th+ 处理器 ", "启动游戏时忽略能效核心( 适用于Intel 12th+ 处理器 [实验性功能,请随时反馈]",
subTitle: subTitle:
"已设置的核心数量:${model.inputGameLaunchECore} 设置需要忽略的处理器的能效心数量盒子将在使用启动游戏功能时为您修改游戏所运行的CPU参数当为 0 时不启用此功能 ", "已设置的核心数量:${model.inputGameLaunchECore} 设置需要忽略的处理器的能效心数量盒子将在使用启动游戏功能时为您修改游戏所运行的CPU参数当为 0 时不启用此功能 ",
onTap: model.setGameLaunchECore), onTap: model.setGameLaunchECore),

View File

@ -56,7 +56,7 @@ class SettingUIModel extends BaseUIModel {
userBox.get("gameLaunch_eCore_count", defaultValue: "0"); userBox.get("gameLaunch_eCore_count", defaultValue: "0");
final input = await showInputDialogs(context!, final input = await showInputDialogs(context!,
title: "请输入要忽略的 CPU 核心数", title: "请输入要忽略的 CPU 核心数",
content: "", content: "tip您的设备拥有几个能效核心就输入几非大小核设备请保持0",
initialValue: defaultInput, initialValue: defaultInput,
inputFormatters: [FilteringTextInputFormatter.digitsOnly]); inputFormatters: [FilteringTextInputFormatter.digitsOnly]);
if (input == null) return; if (input == null) return;