Skip to content

Commit

Permalink
改进歌词显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhoucheng133 committed Nov 5, 2024
1 parent bfca27f commit 9685c68
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/pages/playing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,18 @@ class _PlayingState extends State<Playing> {
builder: (context, constraints) {
final double topBottomHeight = constraints.maxHeight / 2;
return Obx(()=>
ListView.builder(
p.lyric.length==1 ? Center(
child: Text(
p.lyric[0]['content'],
textAlign: TextAlign.center,
style: GoogleFonts.notoSansSc(
fontSize: p.fontSize.value.toDouble(),
height: 2.5,
color: playedLyric(0) ? Colors.blue:Colors.grey[400],
fontWeight: playedLyric(0) ? FontWeight.bold: FontWeight.normal,
),
),
) : ListView.builder(
controller: controller,
itemCount: p.lyric.length,
itemBuilder: (BuildContext context, int index)=>Column(
Expand Down

0 comments on commit 9685c68

Please sign in to comment.