|
|
|
@ -23,8 +23,7 @@ class ItemsListSheet extends StatefulWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _ItemsListSheetState extends State<ItemsListSheet> {
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
void initState() {
|
|
|
|
|
super.initState();
|
|
|
|
|
scheduleMicrotask(() {
|
|
|
|
|
context.read<AppointmentsVM>().getServiceItems(widget.serviceId);
|
|
|
|
@ -41,7 +40,7 @@ class _ItemsListSheetState extends State<ItemsListSheet> {
|
|
|
|
|
return Center(child: CircularProgressIndicator());
|
|
|
|
|
}
|
|
|
|
|
return appointmentsVM.serviceItemsFromApi.isEmpty
|
|
|
|
|
? const EmptyWidget(text: "No Items Found", isWrapedColumn: false,)
|
|
|
|
|
? EmptyWidget(text: LocaleKeys.noItemstoShow.tr(), isWrappedColumn: false)
|
|
|
|
|
: ListView.separated(
|
|
|
|
|
itemCount: appointmentsVM.serviceItemsFromApi.length,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|