mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-22 20:02:53 +00:00
added service item notes
This commit is contained in:
parent
d333ada7ca
commit
d01d9a8965
@ -27,8 +27,9 @@ class ServiceItem {
|
|||||||
final Plugin plugin;
|
final Plugin plugin;
|
||||||
bool selected;
|
bool selected;
|
||||||
final String title;
|
final String title;
|
||||||
|
String notes;
|
||||||
|
|
||||||
ServiceItem({this.id, String plugin, this.selected, this.title})
|
ServiceItem({this.id, String plugin, this.selected, this.title, this.notes})
|
||||||
: plugin = Plugin(plugin);
|
: plugin = Plugin(plugin);
|
||||||
|
|
||||||
ServiceItem.fromJson(Map<String, dynamic> json)
|
ServiceItem.fromJson(Map<String, dynamic> json)
|
||||||
|
@ -36,20 +36,44 @@ class _ServiceListViewState extends State<ServiceListView> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
serviceItems = [
|
serviceItems = [
|
||||||
ServiceItem(id: '1', plugin: 'songs', selected: true, title: 'Oceans'),
|
|
||||||
ServiceItem(
|
ServiceItem(
|
||||||
id: '2', plugin: 'bibles', selected: false, title: 'John 3:16'),
|
id: '1',
|
||||||
|
plugin: 'songs',
|
||||||
|
selected: true,
|
||||||
|
title: 'Oceans',
|
||||||
|
notes: 'First music before the presentation.',
|
||||||
|
),
|
||||||
|
ServiceItem(
|
||||||
|
id: '2',
|
||||||
|
plugin: 'bibles',
|
||||||
|
selected: false,
|
||||||
|
title: 'John 3:16',
|
||||||
|
notes: 'This is the item notes.',
|
||||||
|
),
|
||||||
ServiceItem(
|
ServiceItem(
|
||||||
id: '3',
|
id: '3',
|
||||||
plugin: 'presentations',
|
plugin: 'presentations',
|
||||||
selected: false,
|
selected: false,
|
||||||
title: 'Sunday service.pdf'),
|
title: 'Sunday service.pdf',
|
||||||
|
),
|
||||||
ServiceItem(
|
ServiceItem(
|
||||||
id: '4', plugin: 'images', selected: false, title: 'Slogan.jpg'),
|
id: '4',
|
||||||
|
plugin: 'images',
|
||||||
|
selected: false,
|
||||||
|
title: 'Slogan.jpg',
|
||||||
|
),
|
||||||
ServiceItem(
|
ServiceItem(
|
||||||
id: '5', plugin: 'media', selected: false, title: 'Video.mp4'),
|
id: '5',
|
||||||
|
plugin: 'media',
|
||||||
|
selected: false,
|
||||||
|
title: 'Video.mp4',
|
||||||
|
),
|
||||||
ServiceItem(
|
ServiceItem(
|
||||||
id: '6', plugin: 'custom', selected: false, title: 'Custom alert'),
|
id: '6',
|
||||||
|
plugin: 'custom',
|
||||||
|
selected: false,
|
||||||
|
title: 'Custom alert',
|
||||||
|
),
|
||||||
];
|
];
|
||||||
// serviceItems = [];
|
// serviceItems = [];
|
||||||
super.initState();
|
super.initState();
|
||||||
@ -89,8 +113,8 @@ class _ServiceListViewState extends State<ServiceListView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
title: Text(item.title),
|
title: Text(item.title),
|
||||||
subtitle: Text(AppLocalizations.of(context)
|
subtitle:
|
||||||
.translate('plugin_${item.plugin.id}_singular')),
|
item.notes != null && item.notes != "" ? Text(item.notes) : null,
|
||||||
trailing: IconButton(
|
trailing: IconButton(
|
||||||
icon: Icon(Icons.delete),
|
icon: Icon(Icons.delete),
|
||||||
onPressed: () {},
|
onPressed: () {},
|
||||||
|
Loading…
Reference in New Issue
Block a user