generated from dellevin/template
新增毛玻璃主题
This commit is contained in:
@@ -15,6 +15,7 @@ import '../../utils/responsive.dart';
|
||||
import '../../widgets/vditor_editor.dart';
|
||||
import '../../widgets/tag_side_panel.dart';
|
||||
import 'note_share_page.dart';
|
||||
import '../../widgets/app_overlay.dart';
|
||||
|
||||
/// 笔记详情页
|
||||
class NoteDetailPage extends StatefulWidget {
|
||||
@@ -804,7 +805,7 @@ class _NoteDetailPageState extends State<NoteDetailPage> {
|
||||
}
|
||||
|
||||
void _showImagePreview(List<String> images, int initialIndex) {
|
||||
showDialog(
|
||||
appDialog(
|
||||
context: context,
|
||||
barrierDismissible: true,
|
||||
builder: (context) => GestureDetector(
|
||||
@@ -920,7 +921,7 @@ class _NoteDetailPageState extends State<NoteDetailPage> {
|
||||
|
||||
void _showDeleteDialog(BuildContext context) {
|
||||
final errorColor = Theme.of(context).colorScheme.error;
|
||||
showDialog(
|
||||
appDialog(
|
||||
context: context,
|
||||
builder: (ctx) => AlertDialog(
|
||||
title: const Text('删除笔记'),
|
||||
|
||||
@@ -13,6 +13,7 @@ import '../../utils/image_saver.dart';
|
||||
import '../../widgets/fade_in_local_image.dart';
|
||||
import '../../widgets/tag_side_panel.dart';
|
||||
import '../../widgets/vditor_editor.dart';
|
||||
import '../../widgets/app_overlay.dart';
|
||||
|
||||
/// 添加/编辑笔记页面 - 极简书写界面
|
||||
class NoteFormPage extends StatefulWidget {
|
||||
@@ -625,7 +626,7 @@ class _NoteFormPageState extends State<NoteFormPage> {
|
||||
_autoSaveTimer?.cancel();
|
||||
if (!_hasContent()) return true;
|
||||
|
||||
final result = await showDialog<String>(
|
||||
final result = await appDialog<String>(
|
||||
context: context,
|
||||
builder: (ctx) {
|
||||
final colors = Theme.of(ctx).colorScheme;
|
||||
@@ -899,7 +900,7 @@ class _NoteFormPageState extends State<NoteFormPage> {
|
||||
|
||||
/// 显示图片预览
|
||||
void _showImagePreview(int index) {
|
||||
showDialog(
|
||||
appDialog(
|
||||
context: context,
|
||||
barrierDismissible: true,
|
||||
builder: (context) => GestureDetector(
|
||||
@@ -926,7 +927,7 @@ class _NoteFormPageState extends State<NoteFormPage> {
|
||||
|
||||
/// 显示删除图片确认对话框
|
||||
void _showDeleteImageDialog(int index) {
|
||||
showDialog(
|
||||
appDialog(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
final colors = Theme.of(context).colorScheme;
|
||||
|
||||
@@ -11,6 +11,7 @@ import '../../widgets/master_detail_scaffold.dart';
|
||||
import '../../widgets/detail_placeholder.dart';
|
||||
import 'note_detail_page.dart';
|
||||
import 'note_add_page.dart';
|
||||
import '../../widgets/app_overlay.dart';
|
||||
|
||||
/// 笔记标签页(分页 + 触底加载)
|
||||
class NoteTabPage extends StatefulWidget {
|
||||
@@ -355,7 +356,7 @@ class _NoteTabPageState extends State<NoteTabPage> {
|
||||
|
||||
void _showNoteActions(Note note) {
|
||||
final colors = Theme.of(context).colorScheme;
|
||||
showModalBottomSheet(
|
||||
appModalBottomSheet(
|
||||
context: context,
|
||||
backgroundColor: colors.surface,
|
||||
shape: const RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(16))),
|
||||
@@ -398,7 +399,7 @@ class _NoteTabPageState extends State<NoteTabPage> {
|
||||
|
||||
void _showDeleteDialog(Note note) {
|
||||
final colors = Theme.of(context).colorScheme;
|
||||
showDialog(
|
||||
appDialog(
|
||||
context: context,
|
||||
builder: (ctx) => AlertDialog(
|
||||
backgroundColor: colors.surface, elevation: 0,
|
||||
|
||||
Reference in New Issue
Block a user