Showing
5 changed files
with
34 additions
and
15 deletions
... | @@ -150,7 +150,10 @@ class _PoemDetailPageState extends State<PoemDetailPage> { | ... | @@ -150,7 +150,10 @@ class _PoemDetailPageState extends State<PoemDetailPage> { |
150 | size: 36.px, | 150 | size: 36.px, |
151 | ), | 151 | ), |
152 | onPressed: () { | 152 | onPressed: () { |
153 | - Toast.show("不要着急吖,正在开发ing...."); | 153 | + NavigatorUtils.push( |
154 | + context, | ||
155 | + '${PoemRouter.poemRecordVideoPage}?data=100', | ||
156 | + ); | ||
154 | }, | 157 | }, |
155 | ) | 158 | ) |
156 | ], | 159 | ], | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -4,13 +4,15 @@ import 'package:one_poem/routers/i_router.dart'; | ... | @@ -4,13 +4,15 @@ import 'package:one_poem/routers/i_router.dart'; |
4 | import 'page/poem_detail.dart'; | 4 | import 'page/poem_detail.dart'; |
5 | import 'page/poem_page.dart'; | 5 | import 'page/poem_page.dart'; |
6 | import 'page/poem_publish.dart'; | 6 | import 'page/poem_publish.dart'; |
7 | +import 'page/poem_record_video.dart'; | ||
7 | import 'page/poem_video_player.dart'; | 8 | import 'page/poem_video_player.dart'; |
8 | 9 | ||
9 | class PoemRouter implements IRouterProvider { | 10 | class PoemRouter implements IRouterProvider { |
10 | static String poemPage = '/poem'; | 11 | static String poemPage = '/poem'; |
11 | static String poemDetailPage = '/detail'; | 12 | static String poemDetailPage = '/detail'; |
12 | static String poemRecordAudioPage = '/poem/record/audio'; | 13 | static String poemRecordAudioPage = '/poem/record/audio'; |
13 | - static String poemVidePlayer = '/poem/video/player'; | 14 | + static String poemRecordVideoPage = '/poem/record/video'; |
15 | + static String poemVideoPlayer = '/poem/video/player'; | ||
14 | static String poemPublish = '/poem/publish'; | 16 | static String poemPublish = '/poem/publish'; |
15 | 17 | ||
16 | @override | 18 | @override |
... | @@ -32,6 +34,7 @@ class PoemRouter implements IRouterProvider { | ... | @@ -32,6 +34,7 @@ class PoemRouter implements IRouterProvider { |
32 | }, | 34 | }, |
33 | ), | 35 | ), |
34 | ); | 36 | ); |
37 | + | ||
35 | router.define( | 38 | router.define( |
36 | poemRecordAudioPage, | 39 | poemRecordAudioPage, |
37 | handler: Handler( | 40 | handler: Handler( |
... | @@ -43,8 +46,21 @@ class PoemRouter implements IRouterProvider { | ... | @@ -43,8 +46,21 @@ class PoemRouter implements IRouterProvider { |
43 | }, | 46 | }, |
44 | ), | 47 | ), |
45 | ); | 48 | ); |
49 | + | ||
50 | + router.define( | ||
51 | + poemRecordVideoPage, | ||
52 | + handler: Handler( | ||
53 | + handlerFunc: (_, Map<String, List<String>> params) { | ||
54 | + String? id = params['id']?.first; | ||
55 | + return const PoemRecordVideoPage( | ||
56 | + // poemId: int.parse(id!), | ||
57 | + ); | ||
58 | + }, | ||
59 | + ), | ||
60 | + ); | ||
61 | + | ||
46 | router.define( | 62 | router.define( |
47 | - poemVidePlayer, | 63 | + poemVideoPlayer, |
48 | handler: Handler( | 64 | handler: Handler( |
49 | handlerFunc: (_, Map<String, List<String>> params) { | 65 | handlerFunc: (_, Map<String, List<String>> params) { |
50 | String? url = params['url']?.first; | 66 | String? url = params['url']?.first; | ... | ... |
... | @@ -108,7 +108,7 @@ class FriendCellState extends State<FriendCell> { | ... | @@ -108,7 +108,7 @@ class FriendCellState extends State<FriendCell> { |
108 | onTap: () { | 108 | onTap: () { |
109 | NavigatorUtils.push( | 109 | NavigatorUtils.push( |
110 | context, | 110 | context, |
111 | - '${PoemRouter.poemVidePlayer}?url=100', | 111 | + '${PoemRouter.poemVideoPlayer}?url=100', |
112 | ); | 112 | ); |
113 | }, | 113 | }, |
114 | child: Text( | 114 | child: Text( | ... | ... |
... | @@ -238,21 +238,21 @@ packages: | ... | @@ -238,21 +238,21 @@ packages: |
238 | name: device_info_plus | 238 | name: device_info_plus |
239 | url: "https://pub.dartlang.org" | 239 | url: "https://pub.dartlang.org" |
240 | source: hosted | 240 | source: hosted |
241 | - version: "3.2.0" | 241 | + version: "3.2.1" |
242 | device_info_plus_linux: | 242 | device_info_plus_linux: |
243 | dependency: transitive | 243 | dependency: transitive |
244 | description: | 244 | description: |
245 | name: device_info_plus_linux | 245 | name: device_info_plus_linux |
246 | url: "https://pub.dartlang.org" | 246 | url: "https://pub.dartlang.org" |
247 | source: hosted | 247 | source: hosted |
248 | - version: "2.1.0" | 248 | + version: "2.1.1" |
249 | device_info_plus_macos: | 249 | device_info_plus_macos: |
250 | dependency: transitive | 250 | dependency: transitive |
251 | description: | 251 | description: |
252 | name: device_info_plus_macos | 252 | name: device_info_plus_macos |
253 | url: "https://pub.dartlang.org" | 253 | url: "https://pub.dartlang.org" |
254 | source: hosted | 254 | source: hosted |
255 | - version: "2.2.0" | 255 | + version: "2.2.1" |
256 | device_info_plus_platform_interface: | 256 | device_info_plus_platform_interface: |
257 | dependency: transitive | 257 | dependency: transitive |
258 | description: | 258 | description: |
... | @@ -273,7 +273,7 @@ packages: | ... | @@ -273,7 +273,7 @@ packages: |
273 | name: device_info_plus_windows | 273 | name: device_info_plus_windows |
274 | url: "https://pub.dartlang.org" | 274 | url: "https://pub.dartlang.org" |
275 | source: hosted | 275 | source: hosted |
276 | - version: "2.1.0" | 276 | + version: "2.1.1" |
277 | dio: | 277 | dio: |
278 | dependency: "direct main" | 278 | dependency: "direct main" |
279 | description: | 279 | description: |
... | @@ -506,7 +506,7 @@ packages: | ... | @@ -506,7 +506,7 @@ packages: |
506 | name: image_picker_platform_interface | 506 | name: image_picker_platform_interface |
507 | url: "https://pub.dartlang.org" | 507 | url: "https://pub.dartlang.org" |
508 | source: hosted | 508 | source: hosted |
509 | - version: "2.4.1" | 509 | + version: "2.4.2" |
510 | integration_test: | 510 | integration_test: |
511 | dependency: "direct dev" | 511 | dependency: "direct dev" |
512 | description: flutter | 512 | description: flutter |
... | @@ -672,7 +672,7 @@ packages: | ... | @@ -672,7 +672,7 @@ packages: |
672 | name: path_provider_platform_interface | 672 | name: path_provider_platform_interface |
673 | url: "https://pub.dartlang.org" | 673 | url: "https://pub.dartlang.org" |
674 | source: hosted | 674 | source: hosted |
675 | - version: "2.0.1" | 675 | + version: "2.0.2" |
676 | path_provider_windows: | 676 | path_provider_windows: |
677 | dependency: transitive | 677 | dependency: transitive |
678 | description: | 678 | description: |
... | @@ -707,7 +707,7 @@ packages: | ... | @@ -707,7 +707,7 @@ packages: |
707 | name: plugin_platform_interface | 707 | name: plugin_platform_interface |
708 | url: "https://pub.dartlang.org" | 708 | url: "https://pub.dartlang.org" |
709 | source: hosted | 709 | source: hosted |
710 | - version: "2.0.2" | 710 | + version: "2.1.2" |
711 | pool: | 711 | pool: |
712 | dependency: transitive | 712 | dependency: transitive |
713 | description: | 713 | description: |
... | @@ -763,7 +763,7 @@ packages: | ... | @@ -763,7 +763,7 @@ packages: |
763 | name: quick_actions_platform_interface | 763 | name: quick_actions_platform_interface |
764 | url: "https://pub.dartlang.org" | 764 | url: "https://pub.dartlang.org" |
765 | source: hosted | 765 | source: hosted |
766 | - version: "1.0.0" | 766 | + version: "1.0.1" |
767 | rational: | 767 | rational: |
768 | dependency: transitive | 768 | dependency: transitive |
769 | description: | 769 | description: |
... | @@ -1083,7 +1083,7 @@ packages: | ... | @@ -1083,7 +1083,7 @@ packages: |
1083 | name: url_launcher_platform_interface | 1083 | name: url_launcher_platform_interface |
1084 | url: "https://pub.dartlang.org" | 1084 | url: "https://pub.dartlang.org" |
1085 | source: hosted | 1085 | source: hosted |
1086 | - version: "2.0.4" | 1086 | + version: "2.0.5" |
1087 | url_launcher_web: | 1087 | url_launcher_web: |
1088 | dependency: transitive | 1088 | dependency: transitive |
1089 | description: | 1089 | description: |
... | @@ -1146,7 +1146,7 @@ packages: | ... | @@ -1146,7 +1146,7 @@ packages: |
1146 | name: video_player_platform_interface | 1146 | name: video_player_platform_interface |
1147 | url: "https://pub.dartlang.org" | 1147 | url: "https://pub.dartlang.org" |
1148 | source: hosted | 1148 | source: hosted |
1149 | - version: "5.0.0" | 1149 | + version: "5.0.1" |
1150 | video_player_web: | 1150 | video_player_web: |
1151 | dependency: transitive | 1151 | dependency: transitive |
1152 | description: | 1152 | description: |
... | @@ -1209,7 +1209,7 @@ packages: | ... | @@ -1209,7 +1209,7 @@ packages: |
1209 | name: webview_flutter_platform_interface | 1209 | name: webview_flutter_platform_interface |
1210 | url: "https://pub.dartlang.org" | 1210 | url: "https://pub.dartlang.org" |
1211 | source: hosted | 1211 | source: hosted |
1212 | - version: "1.8.0" | 1212 | + version: "1.8.1" |
1213 | webview_flutter_wkwebview: | 1213 | webview_flutter_wkwebview: |
1214 | dependency: transitive | 1214 | dependency: transitive |
1215 | description: | 1215 | description: | ... | ... |
-
Please register or login to post a comment