You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MTMusic/lib/common_widget/lits_songs_row.dart

56 lines
1.3 KiB

11 months ago
import 'package:flutter/material.dart';
class ListSongsRow extends StatelessWidget {
final Map sObj;
final VoidCallback onPressedPlay;
final VoidCallback onPressed;
const ListSongsRow({
super.key,
required this.sObj,
required this.onPressed,
required this.onPressedPlay,
});
@override
Widget build(BuildContext context) {
return
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
children: [
const SizedBox(width: 20,),
Text(
sObj["name"]+"-" ??"",
maxLines: 1,
style: TextStyle(
color: Colors.black,
fontSize: 18,
fontWeight: FontWeight.w400),
),
Text(
sObj["artists"] ?? "",
maxLines: 1,
style: TextStyle(color: Colors.black, fontSize: 18),
),
],
),
const SizedBox(width: 20,),
IconButton(
onPressed: onPressedPlay,
icon: Image.asset(
"assets/img/More.png",
width: 25,
height: 25,
),
),
],
);
}
}