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-01 12:03:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a3558c1d21941582cbbc5a96d135e4bfe9c55080
a3558c1d
1 parent
24f4dc50
repair style
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
13 deletions
lib/poem/page/poem_detail.dart
lib/poem/page/poem_page.dart
lib/widgets/bars/home_action_bar.dart
lib/poem/page/poem_detail.dart
View file @
a3558c1
...
...
@@ -12,9 +12,11 @@ class PoemDetailPage extends StatefulWidget {
Key
?
key
,
this
.
onPop
,
required
this
.
poemId
,
this
.
poemPanelHeight
=
0
,
})
:
super
(
key:
key
);
final
int
poemId
;
final
int
poemPanelHeight
;
final
Function
?
onPop
;
@override
...
...
@@ -54,7 +56,7 @@ class _PoemDetailPageState extends State<PoemDetailPage> {
Container
(
margin:
const
EdgeInsets
.
symmetric
(
vertical:
30.0
,
horizontal:
20.0
),
height:
MediaQuery
.
of
(
context
).
size
.
height
-
200
,
height:
MediaQuery
.
of
(
context
).
size
.
height
-
140
-
widget
.
poemPanelHeight
,
width:
double
.
infinity
,
decoration:
BoxDecoration
(
color:
Colors
.
grey
.
shade200
.
withOpacity
(
0.1
),
...
...
@@ -131,6 +133,23 @@ class _PoemDetailPageState extends State<PoemDetailPage> {
}),
),
),
Container
(
width:
double
.
infinity
,
alignment:
Alignment
.
center
,
child:
Row
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
IconButton
(
icon:
const
Icon
(
Icons
.
mic_none
,
size:
36.0
,),
onPressed:
()
{},
),
Gaps
.
hGap16
,
IconButton
(
icon:
const
Icon
(
Icons
.
camera_alt_outlined
,
size:
36.0
,),
onPressed:
()
{},
)
],
),),
],
),
),
...
...
@@ -138,18 +157,6 @@ class _PoemDetailPageState extends State<PoemDetailPage> {
),
),
),
// Row(
// children: [
// IconButton(
// icon: const Icon(Icons.mic_none),
// onPressed: () {},
// ),
// IconButton(
// icon: const Icon(Icons.camera_alt_outlined),
// onPressed: () {},
// )
// ],
// ),
],
),
),
...
...
lib/poem/page/poem_page.dart
View file @
a3558c1
...
...
@@ -98,6 +98,7 @@ class _PoemPageState extends State<PoemPage> with WidgetsBindingObserver {
tkController
.
animateToMiddle
();
},
poemId:
1
,
poemPanelHeight:
60
,
);
var
searchPage
=
SearchPage
(
onPop:
tkController
.
animateToMiddle
,
...
...
lib/widgets/bars/home_action_bar.dart
View file @
a3558c1
...
...
@@ -30,6 +30,7 @@ class HomeActionWidgets extends StatelessWidget {
icon:
const
Icon
(
Icons
.
star_border
,
size:
iconSize
,
color:
Colors
.
white
,
),
onPressed:
()
{
funcStar
!();
...
...
@@ -44,6 +45,7 @@ class HomeActionWidgets extends StatelessWidget {
icon:
const
Icon
(
Icons
.
ios_share
,
size:
iconSize
,
color:
Colors
.
white
,
),
onPressed:
()
{},
),
...
...
@@ -57,6 +59,7 @@ class HomeActionWidgets extends StatelessWidget {
icon:
const
Icon
(
Icons
.
more_horiz
,
size:
iconSize
,
color:
Colors
.
white
,
),
),
),
...
...
Please
register
or
login
to post a comment