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
2021-12-31 13:57:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
31ae93a73eece21029599cc8772099cbe3eeb6a5
31ae93a7
1 parent
69260014
clear
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
25 deletions
lib/poem/page/poem_page.dart
lib/tiktok/widgets/tiktok_top_info.dart
lib/tiktok/widgets/tiktok_video.dart
lib/tiktok/widgets/tiktok_video_poem.dart
lib/poem/page/poem_page.dart
View file @
31ae93a
...
...
@@ -105,7 +105,7 @@ class _PoemPageState extends State<PoemPage> with WidgetsBindingObserver {
// 组合
return
TikTokScaffold
(
controller:
tkController
,
header:
MyAppBar
(
header:
const
MyAppBar
(
isBack:
false
,
),
leftPage:
searchPage
,
...
...
lib/tiktok/widgets/tiktok_top_info.dart
View file @
31ae93a
import
'dart:ui'
;
import
'package:flutter/material.dart'
;
import
'package:one_poem/res/resources.dart'
;
import
'package:one_poem/tiktok/style/style.dart'
;
class
TikTokTopInfoColumn
extends
StatelessWidget
{
...
...
@@ -13,26 +16,41 @@ class TikTokTopInfoColumn extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
all
(
10.0
),
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
end
,
crossAxisAlignment:
CrossAxisAlignment
.
end
,
children:
<
Widget
>[
// Tapped(
// child: const TikTokAvatar(),
// onTap: onAvatar,
// ),
Text
(
info
??
"早安"
),
Container
(
width:
SysSize
.
avatar
,
height:
SysSize
.
avatar
,
margin:
const
EdgeInsets
.
only
(
top:
10
),
margin:
const
EdgeInsets
.
symmetric
(
vertical:
30.0
,
horizontal:
25.0
),
height:
100.0
,
width:
double
.
infinity
,
decoration:
BoxDecoration
(
color:
Colors
.
black
.
withOpacity
(.
2
),
border:
Border
.
all
(
color:
Colors
.
grey
,
width:
0.1
),
// 边色与边宽度
borderRadius:
BorderRadius
.
circular
(
5.0
),
),
child:
ClipRect
(
child:
BackdropFilter
(
filter:
ImageFilter
.
blur
(
sigmaX:
10.0
,
sigmaY:
10.0
,
),
child:
Container
(
padding:
const
EdgeInsets
.
all
(
10.0
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
SysSize
.
avatar
/
2.0
),
// color: Colors.black.withOpacity(0.8),
color:
Colors
.
grey
.
shade200
.
withOpacity
(
0.1
),
),
child:
Padding
(
padding:
const
EdgeInsets
.
all
(
0.0
),
child:
Column
(
children:
const
[
Text
(
'早安'
,
style:
TextStyle
(
fontSize:
28.0
,
color:
Colors
.
white
,
),
),
],
),
),
)
]
,
)
,
)
,
),
);
}
...
...
lib/tiktok/widgets/tiktok_video.dart
View file @
31ae93a
...
...
@@ -96,7 +96,7 @@ class TikTokVideoPage extends StatelessWidget {
Container
(
height:
double
.
infinity
,
width:
double
.
infinity
,
alignment:
Alignment
.
bottom
Left
,
alignment:
Alignment
.
bottom
Center
,
child:
leftPoem
,
),
Container
(
...
...
lib/tiktok/widgets/tiktok_video_poem.dart
View file @
31ae93a
...
...
@@ -28,7 +28,8 @@ class TikTokVidePoem extends StatelessWidget {
borderRadius:
BorderRadius
.
circular
(
2.0
),
),
height:
220.0
,
margin:
const
EdgeInsets
.
all
(
10.0
),
width:
double
.
infinity
,
margin:
const
EdgeInsets
.
symmetric
(
vertical:
10.0
,
horizontal:
25.0
),
child:
InkWell
(
child:
ClipRect
(
child:
BackdropFilter
(
...
...
@@ -46,17 +47,25 @@ class TikTokVidePoem extends StatelessWidget {
children:
[
Text
(
title
??
'每日一言'
,
style:
const
TextStyle
(
fontSize:
28.0
),
style:
const
TextStyle
(
fontSize:
28.0
,
color:
Colors
.
white
,
),
),
Gaps
.
vGap10
,
Text
(
poem
??
'#一言 临境'
,
style:
const
TextStyle
(
fontFamily:
"ZCOOLXiaoWei"
,
fontSize:
24.0
),
color:
Colors
.
white
,
fontFamily:
"ZCOOLXiaoWei"
,
fontSize:
24.0
),
),
Text
(
author
??
'诗人'
,
style:
const
TextStyle
(
fontSize:
16.0
),
style:
const
TextStyle
(
fontSize:
16.0
,
color:
Colors
.
white
,
),
),
],
),
...
...
@@ -65,7 +74,7 @@ class TikTokVidePoem extends StatelessWidget {
),
),
onTap:
()
{
onShowDetail
;
onShowDetail
!()
;
},
),
);
...
...
Please
register
or
login
to post a comment