补充
This commit is contained in:
@@ -610,7 +610,6 @@ class _CorrectionPageState extends ConsumerState<CorrectionPage> {
|
||||
final ext = AppTheme.ext(context);
|
||||
final result = await showCupertinoDialog<bool>(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
builder: (dlgCtx) {
|
||||
return CupertinoAlertDialog(
|
||||
title: Row(
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
|
||||
@@ -106,7 +106,7 @@ class ChatFlowReadlaterMessageHelper {
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
t.existingTags.replaceAll('{tags}', message.getTags.join(", ")),
|
||||
t.existingTags.replaceAll('{tags}', message.getTags.join(', ')),
|
||||
style: AppTypography.caption1.copyWith(
|
||||
color: CupertinoColors.secondaryLabel.resolveFrom(context),
|
||||
),
|
||||
@@ -210,7 +210,7 @@ class ChatFlowReadlaterMessageHelper {
|
||||
context: context,
|
||||
builder: (dCtx) => CupertinoAlertDialog(
|
||||
title: Text(t.smartTagSuggestionTitle),
|
||||
content: Text(t.aiSuggestedTags.replaceAll('{tags}', tags.join("、"))),
|
||||
content: Text(t.aiSuggestedTags.replaceAll('{tags}', tags.join('、'))),
|
||||
actions: [
|
||||
CupertinoDialogAction(
|
||||
isDefaultAction: true,
|
||||
|
||||
@@ -84,8 +84,8 @@ void showSessionContextMenu({
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(CupertinoIcons.pencil, size: 18),
|
||||
SizedBox(width: 8),
|
||||
const Icon(CupertinoIcons.pencil, size: 18),
|
||||
const SizedBox(width: 8),
|
||||
Text(chatFlowT.remark),
|
||||
],
|
||||
),
|
||||
@@ -156,8 +156,8 @@ void showSessionContextMenu({
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(CupertinoIcons.settings, size: 18),
|
||||
SizedBox(width: 8),
|
||||
const Icon(CupertinoIcons.settings, size: 18),
|
||||
const SizedBox(width: 8),
|
||||
Text(chatFlowT.hideSettings),
|
||||
],
|
||||
),
|
||||
@@ -172,8 +172,8 @@ void showSessionContextMenu({
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(CupertinoIcons.delete, size: 18),
|
||||
SizedBox(width: 8),
|
||||
const Icon(CupertinoIcons.delete, size: 18),
|
||||
const SizedBox(width: 8),
|
||||
Text(chatFlowT.deleteSession),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -161,7 +161,7 @@ class _ToolGridItemState extends ConsumerState<ToolGridItem>
|
||||
),
|
||||
child: Text(
|
||||
ref.watch(translationsProvider).discover.newBadge,
|
||||
style: TextStyle(
|
||||
style: const TextStyle(
|
||||
fontSize: 8,
|
||||
color: CupertinoColors.white,
|
||||
fontWeight: FontWeight.w600,
|
||||
|
||||
@@ -293,7 +293,7 @@ class _FavoritePageState extends ConsumerState<FavoritePage> {
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: CupertinoNavigationBar(
|
||||
middle: Text(
|
||||
'${t.favorites.title}',
|
||||
t.favorites.title,
|
||||
style: AppTypography.title3.copyWith(color: ext.textPrimary),
|
||||
),
|
||||
backgroundColor: ext.bgPrimary.withValues(alpha: 0.9),
|
||||
|
||||
@@ -812,7 +812,7 @@ class _OfflinePageState extends ConsumerState<OfflinePage> {
|
||||
title: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
const Icon(
|
||||
CupertinoIcons.trash,
|
||||
size: 20,
|
||||
color: CupertinoColors.systemRed,
|
||||
|
||||
@@ -142,8 +142,6 @@ class ScrollableChipList extends StatelessWidget {
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.centerLeft,
|
||||
end: Alignment.centerRight,
|
||||
colors: [
|
||||
ext.bgPrimary.withValues(alpha: 0),
|
||||
ext.bgPrimary.withValues(alpha: 0.6),
|
||||
|
||||
@@ -186,7 +186,7 @@ class ReadingReportService {
|
||||
);
|
||||
} catch (e) {
|
||||
Log.e('本地报告生成失败', e);
|
||||
return ReportResult(
|
||||
return const ReportResult(
|
||||
report: null,
|
||||
failedSources: {'本地数据'},
|
||||
isAuthError: true,
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
// ============================================================
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
@@ -628,7 +627,7 @@ void main() {
|
||||
|
||||
test('clearCanvasId为false时保留原值', () {
|
||||
const state = CanvasState(canvasId: 'test-id');
|
||||
final updated = state.copyWith(clearCanvasId: false);
|
||||
final updated = state.copyWith();
|
||||
expect(updated.canvasId, 'test-id');
|
||||
});
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ void main() {
|
||||
't_settings_data_collection.dart': 'TSettingsDataCollection',
|
||||
};
|
||||
|
||||
final baseDir = 'e:\\project\\flutter\\f\\xianyan\\lib\\l10n\\types';
|
||||
const baseDir = 'e:\\project\\flutter\\f\\xianyan\\lib\\l10n\\types';
|
||||
|
||||
for (final entry in files.entries) {
|
||||
final file = File('$baseDir\\${entry.key}');
|
||||
|
||||
Reference in New Issue
Block a user