Skip to content

Commit

Permalink
[Fix] add some missing const.
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Jul 18, 2024
1 parent 3923df8 commit f3f887a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _MusicContainerMenuState extends State<MusicContainerMenu> {
} else if (snapshot.hasError) {
return Text(
'Error: ${snapshot.error}',
style: TextStyle().useSystemChineseFont(),
style: const TextStyle().useSystemChineseFont(),
);
} else {
bool hasCache = snapshot.data ?? false;
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/more_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class MorePageState extends State<MorePage> with WidgetsBindingObserver {
height: 50,
child: Text(
"正常",
style: TextStyle(color: CupertinoColors.activeGreen)
style: const TextStyle(color: CupertinoColors.activeGreen)
.useSystemChineseFont(),
))));
} else {
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/search_page/search_music_aggregator_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class _SearchMusicAggregatorPageState extends State<SearchMusicAggregatorPage>
),
child: Text(
'应用筛选条件',
style: TextStyle(
style: const TextStyle(
color: CupertinoColors.activeBlue,
).useSystemChineseFont(),
),
Expand All @@ -304,7 +304,7 @@ class _SearchMusicAggregatorPageState extends State<SearchMusicAggregatorPage>
),
child: Text(
'清空筛选条件',
style: TextStyle(
style: const TextStyle(
color: CupertinoColors.systemRed,
).useSystemChineseFont(),
),
Expand Down

0 comments on commit f3f887a

Please sign in to comment.