@ -20,6 +20,7 @@ class EntityListCheckboxSearchWidget extends StatefulWidget {
final bool Function ( EntityList ) isEntityListSelected ;
final bool Function ( EntityList ) isEntityListSelected ;
final List < EntityList > masterList ;
final List < EntityList > masterList ;
Function ( String val ) selectedType ;
Function ( String val ) selectedType ;
final bool shouldDisplaySearchField ;
EntityListCheckboxSearchWidget ( {
EntityListCheckboxSearchWidget ( {
Key ? key ,
Key ? key ,
@ -30,6 +31,7 @@ class EntityListCheckboxSearchWidget extends StatefulWidget {
required this . addProcedure ,
required this . addProcedure ,
required this . isEntityListSelected ,
required this . isEntityListSelected ,
required this . selectedType ,
required this . selectedType ,
this . shouldDisplaySearchField = true ,
} ) : super ( key: key ) ;
} ) : super ( key: key ) ;
@ override
@ override
@ -231,7 +233,9 @@ class _EntityListCheckboxSearchWidgetState extends State<EntityListCheckboxSearc
child: ListView (
child: ListView (
padding: EdgeInsets . all ( 12 ) ,
padding: EdgeInsets . all ( 12 ) ,
children: [
children: [
Padding (
Visibility (
visible: widget . shouldDisplaySearchField ,
child: Padding (
padding: const EdgeInsets . only ( bottom: 12.0 ) ,
padding: const EdgeInsets . only ( bottom: 12.0 ) ,
child: AppTextFieldCustom (
child: AppTextFieldCustom (
suffixWidget: _isSearching
suffixWidget: _isSearching
@ -285,6 +289,7 @@ class _EntityListCheckboxSearchWidgetState extends State<EntityListCheckboxSearc
} ,
} ,
) ,
) ,
) ,
) ,
) ,
if ( items . isEmpty & & procedureName . text . length > = 3 )
if ( items . isEmpty & & procedureName . text . length > = 3 )
Center (
Center (
child: Padding (
child: Padding (