release 1.3.1

This commit is contained in:
Developer
2026-04-01 18:40:21 +08:00
parent 91ef47f991
commit f0a62ed68b
60 changed files with 1750 additions and 313 deletions

View File

@@ -167,8 +167,8 @@ class _ManuscriptPageState extends State<ManuscriptPage> {
if (!_formKey.currentState!.validate()) return;
if (!_nameChecked) {
await _checkName();
if (!_nameChecked) return;
_showSnackBar('请先检测诗词是否存在', isError: true);
return;
}
if (_nameExists) {
@@ -561,13 +561,43 @@ class _ManuscriptPageState extends State<ManuscriptPage> {
),
if (_nameChecked) _buildSimilarityInfo(),
const SizedBox(height: 8),
Align(
alignment: Alignment.centerRight,
child: TextButton.icon(
onPressed: _isCheckingName ? null : _checkName,
icon: const Icon(Icons.search, size: 18),
label: const Text('检测是否存在'),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
children: [
Icon(
_nameChecked
? (_nameExists ? Icons.close : Icons.check_circle)
: Icons.pending,
size: 18,
color: _nameChecked
? (_nameExists
? AppConstants.errorColor
: AppConstants.successColor)
: Colors.grey[400],
),
const SizedBox(width: 6),
Text(
_nameChecked ? (_nameExists ? '未通过' : '已检测') : '未检测',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: _nameChecked
? (_nameExists
? AppConstants.errorColor
: AppConstants.successColor)
: Colors.grey[400],
),
),
],
),
TextButton.icon(
onPressed: _isCheckingName ? null : _checkName,
icon: const Icon(Icons.search, size: 18),
label: const Text('检测是否存在'),
),
],
),
],
);