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