/
DevMaster
/
flutter_libs
Обзор
Документация
Войти
/
DevMaster
/
flutter_libs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
templates/customListTile.dart
37 строк
986 B
Oleg Kulichkov
add templates and core
10 июн 2024, 00:07
10 июн 2024, 00:07
748efca
Код
Авторство
О чём код?
class CustomListTile extends StatelessWidget { final String icon; final String title; final Function() onTap; const CustomListTile( {super.key, required this.icon, required this.title, required this.onTap}); @override Widget build(BuildContext context) { return GestureDetector( onTap: onTap, child: Container( margin: const EdgeInsets.symmetric(horizontal: 15, vertical: 0), padding: const EdgeInsets.all(10), decoration: BoxDecoration( color: CardColors.enable, borderRadius: BorderRadius.circular(5)), child: Padding( padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 5), child: Row( children: [ Text( title, style: TextStyles.text20w500, ), const Spacer(), SvgPicture.asset(icon), ], ), ), ), ); } }