Showing
2 changed files
with
18 additions
and
2 deletions
... | @@ -3,10 +3,11 @@ import 'dart:io'; | ... | @@ -3,10 +3,11 @@ import 'dart:io'; |
3 | import 'package:camera/camera.dart'; | 3 | import 'package:camera/camera.dart'; |
4 | import 'package:flutter/material.dart'; | 4 | import 'package:flutter/material.dart'; |
5 | import 'package:flutter/services.dart'; | 5 | import 'package:flutter/services.dart'; |
6 | -import 'package:one_poem/recorder/video/preview_screen.dart'; | ||
7 | import 'package:one_poem/util/toast_utils.dart'; | 6 | import 'package:one_poem/util/toast_utils.dart'; |
7 | +import 'package:one_poem/widgets/my_app_bar.dart'; | ||
8 | import 'package:path_provider/path_provider.dart'; | 8 | import 'package:path_provider/path_provider.dart'; |
9 | import 'package:video_player/video_player.dart'; | 9 | import 'package:video_player/video_player.dart'; |
10 | +import 'package:one_poem/extension/int_extension.dart'; | ||
10 | 11 | ||
11 | class PoemRecordVideoPage extends StatefulWidget { | 12 | class PoemRecordVideoPage extends StatefulWidget { |
12 | const PoemRecordVideoPage({Key? key}) : super(key: key); | 13 | const PoemRecordVideoPage({Key? key}) : super(key: key); |
... | @@ -245,12 +246,26 @@ class _PoemRecordVideoPageState extends State<PoemRecordVideoPage> | ... | @@ -245,12 +246,26 @@ class _PoemRecordVideoPageState extends State<PoemRecordVideoPage> |
245 | Widget build(BuildContext context) { | 246 | Widget build(BuildContext context) { |
246 | return SafeArea( | 247 | return SafeArea( |
247 | child: Scaffold( | 248 | child: Scaffold( |
249 | + appBar: const MyAppBar( | ||
250 | + isBack: true, | ||
251 | + ), | ||
248 | backgroundColor: Colors.black, | 252 | backgroundColor: Colors.black, |
249 | body: _isCameraInitialized | 253 | body: _isCameraInitialized |
250 | ? Stack( | 254 | ? Stack( |
251 | children: [ | 255 | children: [ |
252 | controller!.buildPreview(), | 256 | controller!.buildPreview(), |
253 | Padding( | 257 | Padding( |
258 | + padding: EdgeInsets.fromLTRB(10.px, 30.px, 10.px, 10.px), | ||
259 | + child: Text( | ||
260 | + "清晨入古寺,\n初日照高林。\n曲径通幽处,\n禅房花木深。\n山光悦鸟性,\n潭影空人心。\n万籁此都寂,\n但余钟磬音。\n", | ||
261 | + style: TextStyle( | ||
262 | + color: Colors.white, | ||
263 | + fontFamily: "ZCOOLXiaoWei", | ||
264 | + fontSize: 20.px, | ||
265 | + ), | ||
266 | + ), | ||
267 | + ), | ||
268 | + Padding( | ||
254 | padding: const EdgeInsets.fromLTRB( | 269 | padding: const EdgeInsets.fromLTRB( |
255 | 16.0, | 270 | 16.0, |
256 | 8.0, | 271 | 8.0, | ... | ... |
... | @@ -63,7 +63,8 @@ class TikTokVidePoem extends StatelessWidget { | ... | @@ -63,7 +63,8 @@ class TikTokVidePoem extends StatelessWidget { |
63 | style: TextStyle( | 63 | style: TextStyle( |
64 | color: Colors.white, | 64 | color: Colors.white, |
65 | fontFamily: "ZCOOLXiaoWei", | 65 | fontFamily: "ZCOOLXiaoWei", |
66 | - fontSize: 20.px,), | 66 | + fontSize: 20.px, |
67 | + ), | ||
67 | ), | 68 | ), |
68 | Container( | 69 | Container( |
69 | padding: EdgeInsets.only(right: 5.px), | 70 | padding: EdgeInsets.only(right: 5.px), | ... | ... |
-
Please register or login to post a comment