mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-23 04:12:49 +00:00
32 lines
868 B
Dart
32 lines
868 B
Dart
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(),
|
|
);
|
|
}
|
|
}
|