Skip to content

Commit

Permalink
[Test] add min asix
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Nov 2, 2024
1 parent 794c181 commit db1edcd
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 9 deletions.
2 changes: 2 additions & 0 deletions lib/common_pages/db_music_agg_listview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class DbMusicContainerListPageState extends State<DbMusicContainerListPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
padding: const EdgeInsetsDirectional.only(end: 16),
Expand Down Expand Up @@ -221,6 +222,7 @@ class DbMusicContainerListPageState extends State<DbMusicContainerListPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
padding: const EdgeInsetsDirectional.only(end: 16),
Expand Down
1 change: 1 addition & 0 deletions lib/common_pages/db_playlist_collection_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class DbPlaylistCollectionPageState extends State<DbPlaylistCollectionPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CupertinoNavigationBar(
Expand Down
2 changes: 2 additions & 0 deletions lib/common_pages/db_playlist_gridview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class DbPlaylistGridPageState extends State<DbPlaylistGridPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down Expand Up @@ -191,6 +192,7 @@ class DbPlaylistGridPageState extends State<DbPlaylistGridPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class MusicAggregatorMultiSelectionPageState
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
padding: const EdgeInsetsDirectional.only(end: 16),
Expand Down
2 changes: 1 addition & 1 deletion lib/common_pages/multi_selection_page/playlist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PlaylistMultiSelectionPageState extends State<PlaylistMultiSelectionPage>
final bool isDarkMode = brightness == Brightness.dark;
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(children: [
child: Column(mainAxisSize: MainAxisSize.min, children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
padding: const EdgeInsetsDirectional.all(0),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class PlaylistCollectionMultiSelectionPageState

return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(children: [
child: Column(mainAxisSize: MainAxisSize.min, children: [
CupertinoNavigationBar(
padding: const EdgeInsetsDirectional.only(end: 16),
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
2 changes: 2 additions & 0 deletions lib/common_pages/online_music_agg_listview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class OnlineMusicAggregatorListViewPageState
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down Expand Up @@ -224,6 +225,7 @@ class OnlineMusicAggregatorListViewPageState
return CupertinoPageScaffold(
backgroundColor: backgroundColor,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
1 change: 1 addition & 0 deletions lib/common_pages/online_playlist_gridview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class SearchMusicListState extends State<OnlinePlaylistGridViewPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
1 change: 1 addition & 0 deletions lib/common_pages/reorder_page/music_aggregator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class MuiscAggregatorReorderPageState extends State<MuiscAggregatorReorderPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
Expand Down
1 change: 1 addition & 0 deletions lib/common_pages/reorder_page/playlist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class PlaylistReorderPageState extends State<PlaylistReorderPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
1 change: 1 addition & 0 deletions lib/common_pages/reorder_page/playlist_collection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class PlaylistCollectionReorderPageState
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
7 changes: 6 additions & 1 deletion lib/common_pages/setting_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import 'package:app_rhyme/src/rust/api/types/config.dart';
import 'package:app_rhyme/src/rust/api/types/external_api.dart';
import 'package:app_rhyme/src/rust/api/utils/database.dart';
import 'package:app_rhyme/types/stream_controller.dart';
import 'package:app_rhyme/utils/cache_helper.dart';
import 'package:app_rhyme/utils/check_update.dart';
import 'package:app_rhyme/utils/chore.dart';
import 'package:app_rhyme/utils/clipboard_helper.dart';
Expand Down Expand Up @@ -70,6 +69,7 @@ class SettingPageState extends State<SettingPage> with WidgetsBindingObserver {
return CupertinoPageScaffold(
backgroundColor: getSettingPageBackgroundColor(isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down Expand Up @@ -266,6 +266,7 @@ class QualityConfigPageState extends State<QualityConfigPage>
return CupertinoPageScaffold(
backgroundColor: getSettingPageBackgroundColor(isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down Expand Up @@ -377,6 +378,7 @@ class UpdateConfigPageState extends State<UpdateConfigPage>
return CupertinoPageScaffold(
backgroundColor: getSettingPageBackgroundColor(isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down Expand Up @@ -508,6 +510,7 @@ class StorageConfigPageState extends State<StorageConfigPage>
return CupertinoPageScaffold(
backgroundColor: getSettingPageBackgroundColor(isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
middle: Text('储存设置', style: TextStyle(color: textColor)),
Expand Down Expand Up @@ -968,6 +971,7 @@ class ExternalApiConfigPageState extends State<ExternalApiConfigPage>
return CupertinoPageScaffold(
backgroundColor: getSettingPageBackgroundColor(isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
middle: Text('第三方音源设置', style: TextStyle(color: textColor)),
Expand Down Expand Up @@ -1207,6 +1211,7 @@ class WindowConfigPageState extends State<WindowConfigPage>
return CupertinoPageScaffold(
backgroundColor: getSettingPageBackgroundColor(isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
middle: Text('窗口设置(重启后生效)', style: TextStyle(color: textColor)),
Expand Down
3 changes: 2 additions & 1 deletion lib/desktop/comps/popup_comp/playlist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class MusicList extends StatelessWidget {
itemBuilder: (context, index) => Padding(
padding: const EdgeInsets.only(left: 10, right: 10),
child: MobileMusicAggregatorListItem(
key: ValueKey(musicContainerList[index].musicAggregator.identity()),
key: ValueKey(
musicContainerList[index].musicAggregator.identity()),
musicAgg: musicContainerList[index].musicAggregator,
isDark: isDarkMode,
onTap: () {
Expand Down
1 change: 1 addition & 0 deletions lib/desktop/pages/explore_page/music_chart_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class MusicChartPageState extends State<MusicChartPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
1 change: 1 addition & 0 deletions lib/desktop/pages/explore_page/playlist_tag_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class PlaylistTagPageState extends State<PlaylistTagPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
1 change: 1 addition & 0 deletions lib/desktop/pages/search_page/music_aggregator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class MusicAggregatorSearchPageState extends State<MusicAggregatorSearchPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
1 change: 1 addition & 0 deletions lib/desktop/pages/search_page/playlist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class SearchMusicListState extends State<PlaylistSearchPage>
return CupertinoPageScaffold(
backgroundColor: getBackgroundColor(widget.isDesktop, isDarkMode),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
4 changes: 1 addition & 3 deletions lib/mobile/comps/music_agg_comp/music_agg_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ class MobileMusicAggregatorListItemState
ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: imageWithCache(defaultMusic!.getCover(size: 250),
width: 40,
height: 40,
enableCache: widget.cacheCover),
width: 40, height: 40, enableCache: widget.cacheCover),
),
// 歌曲的信息(歌名, 歌手)
Expanded(
Expand Down
7 changes: 5 additions & 2 deletions lib/mobile/pages/explore_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class MobileExplorePageState extends State<MobileExplorePage> {

return CupertinoPageScaffold(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down Expand Up @@ -95,10 +96,12 @@ class MobileExplorePageState extends State<MobileExplorePage> {
children: {
ExploreSegment.musicChart: Text(
ExploreSegment.musicChart.displayName,
style: TextStyle(color: getTextColor(isDarkMode)).useSystemChineseFont()),
style: TextStyle(color: getTextColor(isDarkMode))
.useSystemChineseFont()),
ExploreSegment.playlistTag: Text(
ExploreSegment.playlistTag.displayName,
style: TextStyle(color: getTextColor(isDarkMode)).useSystemChineseFont()),
style: TextStyle(color: getTextColor(isDarkMode))
.useSystemChineseFont()),
},
),
Expanded(
Expand Down
1 change: 1 addition & 0 deletions lib/mobile/pages/search_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class _SearchPageMobileState extends State<SearchPageMobile> {

return CupertinoPageScaffold(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
CupertinoNavigationBar(
backgroundColor: getNavigatorBarColor(isDarkMode),
Expand Down
1 change: 1 addition & 0 deletions lib/utils/refresh.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit db1edcd

Please sign in to comment.