mucke/lib/presentation/widgets/next_song.dart

32 lines
686 B
Dart
Raw Normal View History

2020-07-12 18:25:34 +02:00
import 'package:flutter/material.dart';
import '../../domain/entities/song.dart';
class NextSong extends StatelessWidget {
const NextSong({Key key, this.song}) : super(key: key);
final Song song;
@override
Widget build(BuildContext context) {
return RichText(
text: TextSpan(
style: TextStyle(
fontSize: 14,
color: Colors.white70,
),
children: [
TextSpan(text: '${song.title}'),
const TextSpan(text: ''),
TextSpan(
text: '${song.artist}',
style: TextStyle(
fontWeight: FontWeight.w300,
),
),
],
),
);
}
}