Skip to content

Commit

Permalink
[Test] try fix ios large padding
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Nov 2, 2024
1 parent db1edcd commit 873e3d7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
6 changes: 1 addition & 5 deletions lib/common_pages/online_music_agg_listview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,6 @@ class OnlineMusicAggregatorListViewPageState
Widget _buildMobile(BuildContext context, bool isDarkMode) {
final Color backgroundColor =
isDarkMode ? CupertinoColors.black : CupertinoColors.white;
final Color dividerColor = isDarkMode
? const Color.fromARGB(255, 41, 41, 43)
: const Color.fromARGB(255, 245, 245, 246);

return CupertinoPageScaffold(
backgroundColor: backgroundColor,
child: Column(
Expand Down Expand Up @@ -304,7 +300,7 @@ class OnlineMusicAggregatorListViewPageState
musicAgg: musicAggregator,
),
Divider(
color: dividerColor,
color: getDividerColor(isDarkMode),
)
],
),
Expand Down
43 changes: 22 additions & 21 deletions lib/mobile/pages/explore_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,27 +83,28 @@ class MobileExplorePageState extends State<MobileExplorePage> {
).useSystemChineseFont(),
),
),
SizedBox(height: 0),
CupertinoSlidingSegmentedControl<ExploreSegment>(
groupValue: _selectedSegment,
onValueChanged: (ExploreSegment? value) {
if (value != null) {
setState(() {
_selectedSegment = value;
});
}
},
children: {
ExploreSegment.musicChart: Text(
ExploreSegment.musicChart.displayName,
style: TextStyle(color: getTextColor(isDarkMode))
.useSystemChineseFont()),
ExploreSegment.playlistTag: Text(
ExploreSegment.playlistTag.displayName,
style: TextStyle(color: getTextColor(isDarkMode))
.useSystemChineseFont()),
},
),
Padding(
padding: EdgeInsets.symmetric(vertical: 10.0),
child: CupertinoSlidingSegmentedControl<ExploreSegment>(
groupValue: _selectedSegment,
onValueChanged: (ExploreSegment? value) {
if (value != null) {
setState(() {
_selectedSegment = value;
});
}
},
children: {
ExploreSegment.musicChart: Text(
ExploreSegment.musicChart.displayName,
style: TextStyle(color: getTextColor(isDarkMode))
.useSystemChineseFont()),
ExploreSegment.playlistTag: Text(
ExploreSegment.playlistTag.displayName,
style: TextStyle(color: getTextColor(isDarkMode))
.useSystemChineseFont()),
},
)),
Expanded(
child: isLoading
? Center(child: CupertinoActivityIndicator())
Expand Down

0 comments on commit 873e3d7

Please sign in to comment.