Browse Source

选择历史记录页面

gjh 5 days ago
parent
commit
003f755b5c
2 changed files with 19 additions and 0 deletions
  1. 3 0
      lib/entity/history_item_info.dart
  2. 16 0
      lib/pages/history/select_history_page.dart

+ 3 - 0
lib/entity/history_item_info.dart

@@ -90,4 +90,7 @@ class HistoryItemInfo {
90 90
     _isSelectMode = value;
91 91
     isSelected = false;
92 92
   }
93
+
94
+  ///文件URI,如果path为空就返回null
95
+  Uri? get fileUri => path.isEmpty ? null : Uri.file(path);
93 96
 }

+ 16 - 0
lib/pages/history/select_history_page.dart

@@ -0,0 +1,16 @@
1
+import 'package:flutter/material.dart';
2
+import 'package:flutter_riverpod/flutter_riverpod.dart';
3
+
4
+class SelectHistoryPage extends ConsumerStatefulWidget {
5
+  const SelectHistoryPage({super.key});
6
+
7
+  @override
8
+  ConsumerState createState() => _SelectHistoryPageState();
9
+}
10
+
11
+class _SelectHistoryPageState extends ConsumerState<SelectHistoryPage> {
12
+  @override
13
+  Widget build(BuildContext context) {
14
+    return Container();
15
+  }
16
+}