Skip to content

Commit

Permalink
[Fix] add SafeArea to OnlineMusicListPage's MusicListImageCard
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Jul 7, 2024
1 parent fab0b0a commit 7c183c3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions lib/pages/online_music_list_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,19 @@ class OnlineMusicListPageState extends State<OnlineMusicListPage> {
// 歌单封面
SliverToBoxAdapter(
child: Padding(
padding: EdgeInsets.only(
top: screenWidth * 0.1,
left: screenWidth * 0.1,
right: screenWidth * 0.1),
child: Container(
constraints: BoxConstraints(
maxWidth: screenWidth * 0.7,
),
child: MusicListImageCard(
musicListW: widget.musicList, online: true),
),
),
padding: EdgeInsets.only(
top: screenWidth * 0.1,
left: screenWidth * 0.1,
right: screenWidth * 0.1),
child: SafeArea(
child: Container(
constraints: BoxConstraints(
maxWidth: screenWidth * 0.7,
),
child: MusicListImageCard(
musicListW: widget.musicList, online: true),
),
)),
),
// Two buttons
SliverToBoxAdapter(
Expand Down

0 comments on commit 7c183c3

Please sign in to comment.