Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-App
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Reason Pun
2022-01-25 11:32:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3d915a2cc9c0c1748e7d695ac33caeab59c7b82
f3d915a2
1 parent
21193976
视频录制页面增加了诗词显示
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
lib/poem/page/poem_record_video.dart
lib/tiktok/widgets/tiktok_video_poem.dart
lib/poem/page/poem_record_video.dart
View file @
f3d915a
...
...
@@ -3,10 +3,11 @@ import 'dart:io';
import
'package:camera/camera.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:one_poem/recorder/video/preview_screen.dart'
;
import
'package:one_poem/util/toast_utils.dart'
;
import
'package:one_poem/widgets/my_app_bar.dart'
;
import
'package:path_provider/path_provider.dart'
;
import
'package:video_player/video_player.dart'
;
import
'package:one_poem/extension/int_extension.dart'
;
class
PoemRecordVideoPage
extends
StatefulWidget
{
const
PoemRecordVideoPage
({
Key
?
key
})
:
super
(
key:
key
);
...
...
@@ -245,12 +246,26 @@ class _PoemRecordVideoPageState extends State<PoemRecordVideoPage>
Widget
build
(
BuildContext
context
)
{
return
SafeArea
(
child:
Scaffold
(
appBar:
const
MyAppBar
(
isBack:
true
,
),
backgroundColor:
Colors
.
black
,
body:
_isCameraInitialized
?
Stack
(
children:
[
controller
!.
buildPreview
(),
Padding
(
padding:
EdgeInsets
.
fromLTRB
(
10
.
px
,
30
.
px
,
10
.
px
,
10
.
px
),
child:
Text
(
"清晨入古寺,
\n
初日照高林。
\n
曲径通幽处,
\n
禅房花木深。
\n
山光悦鸟性,
\n
潭影空人心。
\n
万籁此都寂,
\n
但余钟磬音。
\n
"
,
style:
TextStyle
(
color:
Colors
.
white
,
fontFamily:
"ZCOOLXiaoWei"
,
fontSize:
20
.
px
,
),
),
),
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
16.0
,
8.0
,
...
...
lib/tiktok/widgets/tiktok_video_poem.dart
View file @
f3d915a
...
...
@@ -63,7 +63,8 @@ class TikTokVidePoem extends StatelessWidget {
style:
TextStyle
(
color:
Colors
.
white
,
fontFamily:
"ZCOOLXiaoWei"
,
fontSize:
20
.
px
,),
fontSize:
20
.
px
,
),
),
Container
(
padding:
EdgeInsets
.
only
(
right:
5
.
px
),
...
...
Please
register
or
login
to post a comment