31 lines
883 B
Dart
31 lines
883 B
Dart
|
import 'package:auto_size_text/auto_size_text.dart';
|
||
|
import 'package:fast_cached_network_image/fast_cached_network_image.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:text_scroll/text_scroll.dart';
|
||
|
|
||
|
class SongRow extends StatelessWidget {
|
||
|
const SongRow({required this.imageUrl, required this.songTitle, super.key});
|
||
|
final String imageUrl;
|
||
|
final String songTitle;
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return ClipRRect(
|
||
|
borderRadius: BorderRadius.circular(8),
|
||
|
child: InkWell(
|
||
|
child: ListTile(
|
||
|
leading: ClipRRect(
|
||
|
borderRadius: BorderRadius.circular(8),
|
||
|
child: FastCachedImage(url: imageUrl),
|
||
|
),
|
||
|
title: AutoSizeText(
|
||
|
songTitle,
|
||
|
overflowReplacement: TextScroll(
|
||
|
songTitle,
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|