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 22:37:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8a77d10baa79fe3c30574b0db4215199447141d7
8a77d10b
1 parent
aebbacf9
update styles
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
109 deletions
lib/tiktok/widgets/tiktok_video_poem.dart
lib/widgets/my_app_bar.dart
lib/tiktok/widgets/tiktok_video_poem.dart
View file @
8a77d10
...
...
@@ -47,15 +47,10 @@ class TikTokVidePoem extends StatelessWidget {
children:
[
Text
(
title
??
'每日一言'
,
<<<<<<<
HEAD
style:
const
TextStyle
(
color:
Colors
.
white
,
fontSize:
28.0
),
=======
style:
const
TextStyle
(
fontSize:
28.0
,
color:
Colors
.
white
,
),
>>>>>>>
9
fecb8a6ef8a0360e7ff66980f084c393cc257ed
),
Gaps
.
vGap10
,
Text
(
...
...
@@ -67,15 +62,10 @@ class TikTokVidePoem extends StatelessWidget {
),
Text
(
author
??
'诗人'
,
<<<<<<<
HEAD
style:
const
TextStyle
(
color:
Colors
.
white
,
fontSize:
16.0
),
=======
style:
const
TextStyle
(
fontSize:
16.0
,
color:
Colors
.
white
,
),
>>>>>>>
9
fecb8a6ef8a0360e7ff66980f084c393cc257ed
),
],
),
...
...
lib/widgets/my_app_bar.dart
View file @
8a77d10
...
...
@@ -33,42 +33,6 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget {
?
SystemUiOverlayStyle
.
light
:
SystemUiOverlayStyle
.
dark
;
<<<<<<<
HEAD
final
Widget
action
=
actionName
.
isNotEmpty
?
Positioned
(
right:
0.0
,
child:
Theme
(
data:
Theme
.
of
(
context
).
copyWith
(
buttonTheme:
const
ButtonThemeData
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
16.0
),
minWidth:
60.0
,
),
),
child:
Row
(
children:
[
Icon
(
Icons
.
star
,
color:
Colors
.
white
.
withOpacity
(
0.66
),
),
Gaps
.
hGap10
,
Icon
(
Icons
.
ios_share
,
color:
Colors
.
white
.
withOpacity
(
0.66
),
),
Gaps
.
hGap10
,
Icon
(
Icons
.
more_horiz
,
color:
Colors
.
white
.
withOpacity
(
0.66
),
),
Gaps
.
hGap10
,
],
),
),
)
:
Gaps
.
empty
;
=======
>>>>>>>
9
fecb8a6ef8a0360e7ff66980f084c393cc257ed
final
Widget
back
=
isBack
?
IconButton
(
onPressed:
()
async
{
...
...
@@ -84,73 +48,11 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget {
)
:
Gaps
.
empty
;
<<<<<<<
HEAD
// TODO 复用组件
final
Widget
titleWidget
=
Semantics
(
namesRoute:
true
,
header:
true
,
child:
isShowButtons
?
Container
(
width:
double
.
infinity
,
alignment:
Alignment
.
center
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
mainAxisSize:
MainAxisSize
.
max
,
//交叉轴的布局方式,对于column来说就是水平方向的布局方式
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
TextButton
(
onPressed:
()
=>
funcLeft
!(),
child:
Text
(
buttonLeft
??
"一言"
,
style:
const
TextStyle
(
color:
Colors
.
white
),
),
),
const
Text
(
"|"
),
TextButton
(
onPressed:
()
=>
funcCenter
!(),
child:
Text
(
buttonCenter
??
"译解"
,
style:
const
TextStyle
(
color:
Colors
.
white
),
),
),
const
Text
(
"|"
),
TextButton
(
onPressed:
()
=>
funcRight
!(),
child:
Text
(
buttonRight
??
"临境"
,
style:
const
TextStyle
(
color:
Colors
.
white
),
),
),
],
),
)
:
Gaps
.
hGap10
,
);
=======
>>>>>>>
9
fecb8a6ef8a0360e7ff66980f084c393cc257ed
return
AnnotatedRegion
<
SystemUiOverlayStyle
>(
value:
_overlayStyle
,
child:
Material
(
color:
isTransparent
?
Colors
.
transparent
:
Colors
.
black
,
child:
SafeArea
(
<<<<<<<
HEAD
child:
Flex
(
direction:
Axis
.
horizontal
,
children:
[
Expanded
(
child:
back
,
flex:
1
,
),
Expanded
(
child:
titleWidget
,
flex:
4
,
),
Expanded
(
child:
action
,
flex:
2
,
=======
child:
Stack
(
alignment:
Alignment
.
center
,
children:
<
Widget
>[
...
...
@@ -167,7 +69,6 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget {
alignment:
Alignment
.
centerRight
,
child:
homeActionWidgets
,
),
>>>>>>>
9
fecb8a6ef8a0360e7ff66980f084c393cc257ed
),
],
),
...
...
Please
register
or
login
to post a comment