reason

repair style

......@@ -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: () {},
// )
// ],
// ),
],
),
),
......
......@@ -98,6 +98,7 @@ class _PoemPageState extends State<PoemPage> with WidgetsBindingObserver {
tkController.animateToMiddle();
},
poemId: 1,
poemPanelHeight: 60,
);
var searchPage = SearchPage(
onPop: tkController.animateToMiddle,
......
......@@ -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,
),
),
),
......