让用户选择更新源,并同步在线更新历史
设置里可以在 YanJiu Git 和 GitHub 之间选择,默认是 YanJiu Git。选中的源连不上时改用另一个,结果会写明实际用的是哪一个。更新历史从所选源读取已发布版本并在本机缓存。表单里被省略号截断的提示可以点开。 Co-authored-by: yanjiu0721 <yanjiu0721@users.noreply.github.com>
This commit is contained in:
1 parent
b8cc446454
commit
2e77fcc376
14 files changed
+1771
-68
No files matched your search
@@ -6,6 +6,7 @@ import 'package:flutter/material.dart';
|
||||
import '../center/catalog.dart';
|
||||
import '../center/center_client.dart';
|
||||
import '../models/session_config.dart';
|
||||
import 'expandable_hint.dart';
|
||||
|
||||
class AddedCenter {
|
||||
const AddedCenter({
|
||||
@@ -140,9 +141,10 @@ class _CenterAddDialogState extends State<_CenterAddDialog> {
|
||||
obscureText: true,
|
||||
decoration: const InputDecoration(
|
||||
labelText: '密码',
|
||||
hintText: '中心要求密码、手里还没有口令时填写',
|
||||
hintText: '还没有口令时填写',
|
||||
),
|
||||
),
|
||||
const ExpandableHint(text: '中心要求密码、手里还没有口令时填写。'),
|
||||
if (_hint != null) ...[
|
||||
const SizedBox(height: 8),
|
||||
Text(_hint!, style: const TextStyle(color: Color(0xFF9A3412))),
|
||||
|
||||
Reference in new issue
Block a user