mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-16 23:04:22 +01:00
update ISSUE_TEMPLATE
This commit is contained in:
30
.github/ISSUE_TEMPLATE/bug_report.md
vendored
30
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -7,29 +7,47 @@ assignees: ''
|
||||
|
||||
---
|
||||
|
||||
|
||||
<!--
|
||||
Thanks for your feedback:
|
||||
1、Please check if there is a similar issue first
|
||||
2、If it is a function or UI suggestion, please go to Discussion
|
||||
-->
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
<!--A clear and concise description of what the bug is.-->
|
||||
|
||||
|
||||
**To Reproduce**
|
||||
<!--
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
-->
|
||||
|
||||
|
||||
**Desired Results**
|
||||
A clear description of the result you expected.
|
||||
<!--A clear description of the result you expected.-->
|
||||
|
||||
|
||||
**Actual Results**
|
||||
A clear description of the actual result.
|
||||
<!--A clear description of the actual result.-->
|
||||
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots(both bug screen and logs
|
||||
screen) to help explain your problem.
|
||||
<!--If applicable, add screenshots(both bug screen and logs
|
||||
screen) to help explain your problem.-->
|
||||
|
||||
|
||||
**Device**
|
||||
<!--
|
||||
- OS: e.g. iOS16 or Android13
|
||||
- App Version: e.g. 1.0.302
|
||||
-->
|
||||
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
<!--Add any other context about the problem here.-->
|
||||
|
||||
|
||||
31
.github/ISSUE_TEMPLATE/bug_report_cn.md
vendored
31
.github/ISSUE_TEMPLATE/bug_report_cn.md
vendored
@@ -7,28 +7,45 @@ assignees: ''
|
||||
|
||||
---
|
||||
|
||||
<!--
|
||||
感谢您反馈问题,请先阅读以下内容:
|
||||
1、请先查看是否已存在相似 issue
|
||||
2、如果是功能、UI建议,请移步至 Discussion
|
||||
-->
|
||||
|
||||
**描述BUG**
|
||||
一个关于BUG的清晰描述。
|
||||
<!--一个关于BUG的清晰描述。-->
|
||||
|
||||
|
||||
**复现步骤**
|
||||
<!--
|
||||
如何复现:
|
||||
1. 打开 '...'
|
||||
2. 点击 '....'
|
||||
3. 滚动到 '....'
|
||||
4. 看到错误
|
||||
-->
|
||||
|
||||
|
||||
**期望结果**
|
||||
一个关于你期望的结果的清晰描述。
|
||||
<!--一个关于你期望的结果的清晰描述。-->
|
||||
|
||||
|
||||
**实际结果**
|
||||
一个关于实际结果的清晰描述。
|
||||
<!--一个关于实际结果的清晰描述。-->
|
||||
|
||||
|
||||
**截图**
|
||||
如果可以,请添加截图(包括错误界面和日志界面)来帮助解释你的问题。
|
||||
<!--如果可以,请添加截图(包括错误界面和日志界面)来帮助解释你的问题。-->
|
||||
|
||||
|
||||
**设备**
|
||||
- 系统: e.g. iOS16 or Android13
|
||||
- App版本: e.g. 1.0.302
|
||||
<!--
|
||||
- 系统: e.g. iOS16 or Android13
|
||||
- App版本: e.g. 1.0.302
|
||||
-->
|
||||
|
||||
|
||||
**更多信息**
|
||||
在这里添加关于这个问题的更多信息。
|
||||
<!--在这里添加关于这个问题的更多信息。-->
|
||||
|
||||
|
||||
@@ -68,10 +68,11 @@ class _EditorPageState extends State<EditorPage> {
|
||||
centerTitle: true,
|
||||
title: TwoLineText(up: getFileName(widget.path) ?? '', down: _s.editor),
|
||||
actions: [
|
||||
PopupMenuButton(
|
||||
PopupMenuButton<String>(
|
||||
icon: const Icon(Icons.language),
|
||||
onSelected: (value) {
|
||||
_controller.language = suffix2HighlightMap[value];
|
||||
_langCode = value;
|
||||
},
|
||||
initialValue: _langCode,
|
||||
itemBuilder: (BuildContext context) {
|
||||
|
||||
@@ -559,25 +559,31 @@ class _SettingPageState extends State<SettingPage> {
|
||||
title: Text(_s.diskIgnorePath),
|
||||
trailing: Text(_s.edit, style: textSize15),
|
||||
onTap: () {
|
||||
final ctrller = TextEditingController(text: json.encode(paths));
|
||||
void onSubmit() {
|
||||
try {
|
||||
final list = List<String>.from(json.decode(ctrller.text));
|
||||
_setting.diskIgnorePath.put(list);
|
||||
context.pop();
|
||||
showSnackBar(context, Text(_s.success));
|
||||
} catch (e) {
|
||||
showSnackBar(context, Text(e.toString()));
|
||||
}
|
||||
}
|
||||
|
||||
showRoundDialog(
|
||||
context: context,
|
||||
title: Text(_s.diskIgnorePath),
|
||||
child: Input(
|
||||
controller: TextEditingController(text: json.encode(paths)),
|
||||
controller: ctrller,
|
||||
label: 'JSON',
|
||||
type: TextInputType.visiblePassword,
|
||||
maxLines: 3,
|
||||
onSubmitted: (p0) {
|
||||
try {
|
||||
final list = List<String>.from(json.decode(p0));
|
||||
_setting.diskIgnorePath.put(list);
|
||||
context.pop();
|
||||
showSnackBar(context, Text(_s.success));
|
||||
} catch (e) {
|
||||
showSnackBar(context, Text(e.toString()));
|
||||
}
|
||||
},
|
||||
onSubmitted: (_) => onSubmit(),
|
||||
),
|
||||
actions: [
|
||||
TextButton(onPressed: onSubmit, child: Text(_s.ok)),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user