mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-22 20:02:53 +00:00
service listview v2 finished
This commit is contained in:
parent
1d469f71cb
commit
821b95e442
@ -49,19 +49,17 @@ class _ServiceListViewV2State extends State<ServiceListViewV2> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return ListView.separated(
|
return ListView.builder(
|
||||||
padding: EdgeInsets.only(bottom: 35),
|
padding: EdgeInsets.only(bottom: 35),
|
||||||
separatorBuilder: (context, i) {
|
|
||||||
return Divider();
|
|
||||||
},
|
|
||||||
itemCount: serviceItems.length,
|
itemCount: serviceItems.length,
|
||||||
itemBuilder: (context, i) {
|
itemBuilder: (context, i) {
|
||||||
ServiceItem item = serviceItems[i];
|
ServiceItem item = serviceItems[i];
|
||||||
return ListTile(
|
return ListTile(
|
||||||
contentPadding: EdgeInsets.all(10),
|
contentPadding: EdgeInsets.all(10),
|
||||||
selected: item.selected,
|
selected: item.selected,
|
||||||
leading: Container(
|
leading: ClipRRect(
|
||||||
// color: Colors.black12,
|
borderRadius: BorderRadius.all(Radius.circular(7)),
|
||||||
|
child: Container(
|
||||||
height: 50,
|
height: 50,
|
||||||
width: 50,
|
width: 50,
|
||||||
child: item.plugin.id == 'images'
|
child: item.plugin.id == 'images'
|
||||||
@ -71,12 +69,11 @@ class _ServiceListViewV2State extends State<ServiceListViewV2> {
|
|||||||
)
|
)
|
||||||
: Icon(item.plugin.icon()),
|
: Icon(item.plugin.icon()),
|
||||||
),
|
),
|
||||||
title: Text(item.title),
|
|
||||||
trailing: IconButton(
|
|
||||||
icon: Icon(
|
|
||||||
Icons.delete,
|
|
||||||
// color: Colors.red,
|
|
||||||
),
|
),
|
||||||
|
title: Text(item.title),
|
||||||
|
subtitle: Text(item.plugin.id),
|
||||||
|
trailing: IconButton(
|
||||||
|
icon: Icon(Icons.delete),
|
||||||
onPressed: () {},
|
onPressed: () {},
|
||||||
),
|
),
|
||||||
onTap: () {},
|
onTap: () {},
|
||||||
|
Loading…
Reference in New Issue
Block a user