Preventive Maintenance [Most Recent]

main_design2.0
zaid_daoud 2 years ago
parent 0e95b32ecb
commit c52d7cd527

@ -29,7 +29,7 @@ class VisitsSearch {
this.expectedDateTo, this.expectedDateTo,
this.deviceNumber, this.deviceNumber,
this.deviceName, this.deviceName,
this.mostRecent, this.mostRecent = true,
}); });
fromSearch(VisitsSearch newSearch) { fromSearch(VisitsSearch newSearch) {
@ -58,6 +58,10 @@ class VisitsSearch {
_search["siteId"] = hospital.id; _search["siteId"] = hospital.id;
} }
if (mostRecent != null) {
_search["mostRecent"] = mostRecent;
}
if (brand != null && brand.isNotEmpty) { if (brand != null && brand.isNotEmpty) {
// todo get new key // todo get new key
_search[""] = brand; _search[""] = brand;

@ -107,7 +107,7 @@ class _RegularVisitsPageState extends State<RegularVisitsPage> with TickerProvid
), ),
), ),
Visibility( Visibility(
visible: _visitsProvider.visitsSearch.toMap().isNotEmpty, visible: (_visitsProvider.visitsSearch.toMap()..remove("mostRecent")).isNotEmpty,
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: AButton( child: AButton(

Loading…
Cancel
Save