import 'package:flutter/material.dart'; class _ServiceItem { IconData icon; String title; _ServiceItem({this.icon, this.title}); } class ServiceItemBottomSheet extends StatelessWidget { final List<_ServiceItem> _serviceItems = [ _ServiceItem(icon: Icons.audiotrack, title: 'Songs'), _ServiceItem(icon: Icons.book, title: 'Bibles'), _ServiceItem(icon: Icons.present_to_all, title: 'Presentations'), _ServiceItem(icon: Icons.image, title: 'Images'), _ServiceItem(icon: Icons.ondemand_video, title: 'Medias'), ]; @override Widget build(BuildContext context) { return Wrap( children: _serviceItems.map((item) { return ListTile( leading: Icon(item.icon), title: Text(item.title), onTap: () { Navigator.of(context).pop(); }, ); }).toList(), ); } }