Skip to content

Commit

Permalink
[Test] Ios PlayingMusicDisplayPage height
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed May 5, 2024
1 parent 4657c1d commit 3c96cf8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/page/playing_music_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ class SongDisplayPageState extends State<SongDisplayPage> {
),
// 应当占据剩下的所有高度
PlayMusicList(
maxHeight: screenHeight * 0.87 - 300,
maxHeight: Platform.isIOS
? screenHeight * 0.87 - 350
: screenHeight * 0.87 - 300,
picPadding: const EdgeInsets.only(left: 20),
),
];
Expand All @@ -97,7 +99,11 @@ class SongDisplayPageState extends State<SongDisplayPage> {
height: 70,
picPadding: EdgeInsets.only(left: 20),
),
LyricDisplay(maxHeight: screenHeight * 0.87 - 240)
// 应当占据剩下的空间
LyricDisplay(
maxHeight: (Platform.isIOS)
? screenHeight * 0.87 - 290
: screenHeight * 0.87 - 240)
];
break;
}
Expand Down

0 comments on commit 3c96cf8

Please sign in to comment.