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/icon_text_row.dart

45 lines
995 B

import 'package:flutter/material.dart';
class IconTextRow extends StatelessWidget {
final String title;
final String icon;
final VoidCallback onTap;
const IconTextRow({super.key, required this.title, required this.icon, required this.onTap});
@override
Widget build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(
height: 44,
child: ListTile(
leading: Image.asset(
icon,
width: 40,
height: 40,
fit: BoxFit.contain,
),
title: Text(
title,
style: TextStyle(
color: Colors.black,
fontSize: 14,
fontWeight: FontWeight.w600
),
),
onTap: (){
},
),
),
Divider(
color: Colors.black,
indent: 70,
),
],
);
}
}