Skip to content

Commit

Permalink
[Fix] fix textfield color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Jul 18, 2024
1 parent bf0e30b commit e3cad83
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/pages/search_page/search_music_aggregator_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ class _SearchMusicAggregatorPageState extends State<SearchMusicAggregatorPage>
TextStyle(color: textColor).useSystemChineseFont()),
),
child: CupertinoTextField(
style: TextStyle(
color: isDarkMode
? CupertinoColors.white
: CupertinoColors.black,
).useSystemChineseFont(),
controller: _nameController,
placeholder: '输入曲名',
),
Expand All @@ -242,6 +247,11 @@ class _SearchMusicAggregatorPageState extends State<SearchMusicAggregatorPage>
TextStyle(color: textColor).useSystemChineseFont()),
),
child: CupertinoTextField(
style: TextStyle(
color: isDarkMode
? CupertinoColors.white
: CupertinoColors.black,
).useSystemChineseFont(),
controller: _artistController,
placeholder: '输入演唱者 (多个用逗号分隔)',
),
Expand All @@ -254,6 +264,11 @@ class _SearchMusicAggregatorPageState extends State<SearchMusicAggregatorPage>
TextStyle(color: textColor).useSystemChineseFont()),
),
child: CupertinoTextField(
style: TextStyle(
color: isDarkMode
? CupertinoColors.white
: CupertinoColors.black,
).useSystemChineseFont(),
controller: _albumController,
placeholder: '输入专辑名',
),
Expand Down

0 comments on commit e3cad83

Please sign in to comment.