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
2022-01-02 18:29:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f376cc1e44b285a57273fe4e09d34b49af012d04
f376cc1e
1 parent
00d646bf
fix style
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
lib/poem/page/poem_detail.dart
lib/poem/page/poem_page.dart
lib/poem/widgets/poem_user_audio.dart
lib/tiktok/widgets/tiktok_top_info.dart
lib/tiktok/widgets/tiktok_video_poem.dart
lib/poem/page/poem_detail.dart
View file @
f376cc1
...
...
@@ -29,7 +29,7 @@ class PoemDetailPage extends StatefulWidget {
})
:
super
(
key:
key
);
final
int
poemId
;
final
int
poemPanelHeight
;
final
double
poemPanelHeight
;
final
Function
?
onPop
;
@override
...
...
lib/poem/page/poem_page.dart
View file @
f376cc1
...
...
@@ -15,6 +15,8 @@ import 'package:video_player/video_player.dart';
import
'poem_detail.dart'
;
import
'package:one_poem/extension/int_extension.dart'
;
class
PoemPage
extends
StatefulWidget
{
const
PoemPage
({
Key
?
key
})
:
super
(
key:
key
);
...
...
@@ -97,7 +99,7 @@ class _PoemPageState extends State<PoemPage> with WidgetsBindingObserver {
tkController
.
animateToMiddle
();
},
poemId:
1
,
poemPanelHeight:
60
,
poemPanelHeight:
60
.
px
,
);
var
searchPage
=
SearchPage
(
onPop:
tkController
.
animateToMiddle
,
...
...
@@ -163,7 +165,7 @@ class _PoemPageState extends State<PoemPage> with WidgetsBindingObserver {
aspectRatio:
9
/
16.0
,
key:
Key
(
data
.
url
+
'
$i
'
),
tag:
data
.
url
,
bottomPadding:
hasBottomPadding
?
16.
0
:
16.0
,
bottomPadding:
hasBottomPadding
?
16
.
px
:
16
.
px
,
onSingleTap:
()
async
{
if
(
player
.
controller
.
value
.
isPlaying
)
{
await
player
.
pause
();
...
...
lib/poem/widgets/poem_user_audio.dart
View file @
f376cc1
...
...
@@ -13,7 +13,7 @@ class PoemUserAudio extends StatelessWidget {
final
List
<
Map
<
String
,
String
>>?
audio
;
final
String
?
desc
;
final
int
poemPanelHeight
;
final
double
poemPanelHeight
;
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
...
...
lib/tiktok/widgets/tiktok_top_info.dart
View file @
f376cc1
...
...
@@ -3,6 +3,8 @@ import 'dart:ui';
import
'package:flutter/material.dart'
;
import
'package:one_poem/res/resources.dart'
;
import
'package:one_poem/extension/int_extension.dart'
;
class
TikTokTopInfoColumn
extends
StatelessWidget
{
final
double
?
bottomPadding
;
final
String
?
info
;
...
...
@@ -16,8 +18,8 @@ class TikTokTopInfoColumn extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
return
SafeArea
(
child:
Container
(
margin:
const
EdgeInsets
.
symmetric
(
vertical:
40.0
,
horizontal:
25.0
),
height:
9
0.0
,
margin:
EdgeInsets
.
symmetric
(
vertical:
40
.
px
,
horizontal:
25
.
px
),
height:
9
2
.
px
,
width:
double
.
infinity
,
decoration:
BoxDecoration
(
color:
Colors
.
grey
.
shade200
.
withOpacity
(
0.1
),
...
...
@@ -36,15 +38,15 @@ class TikTokTopInfoColumn extends StatelessWidget {
color:
Colors
.
grey
.
shade200
.
withOpacity
(
0.1
),
),
child:
Padding
(
padding:
const
EdgeInsets
.
all
(
5.0
),
padding:
EdgeInsets
.
all
(
5
.
px
),
child:
Column
(
children:
[
const
SizedBox
(
SizedBox
(
width:
double
.
infinity
,
child:
Text
(
'辛丑牛年 庚子月 乙卯日 辰时'
,
style:
TextStyle
(
fontSize:
16.
0
,
fontSize:
16
.
px
,
color:
Colors
.
white
,
),
),
...
...
@@ -53,18 +55,18 @@ class TikTokTopInfoColumn extends StatelessWidget {
SizedBox
(
width:
double
.
infinity
,
child:
Stack
(
children:
const
[
children:
[
Text
(
'早安'
,
style:
TextStyle
(
fontSize:
48.
0
,
fontSize:
48
.
px
,
color:
Colors
.
white
,
fontFamily:
"ZhiMangXing"
,
),
),
Positioned
(
right:
10.
0
,
child:
Text
(
right:
10
.
px
,
child:
const
Text
(
"02日
\n
2022年01月"
,
style:
TextStyle
(
color:
Colors
.
white
),
),
...
...
lib/tiktok/widgets/tiktok_video_poem.dart
View file @
f376cc1
...
...
@@ -29,7 +29,7 @@ class TikTokVidePoem extends StatelessWidget {
border:
Border
.
all
(
color:
Colors
.
grey
,
width:
0.1
),
// 边色与边宽度
// borderRadius: BorderRadius.circular(2.0),
),
height:
1
8
0
.
px
,
height:
1
9
0
.
px
,
width:
double
.
infinity
,
margin:
EdgeInsets
.
symmetric
(
vertical:
10
.
px
,
horizontal:
25
.
px
),
child:
InkWell
(
...
...
Please
register
or
login
to post a comment