WD: Add any input typed as chief complaint

update_flutter_3.24_vida_plus_episode_MDS
taha.alam 1 year ago
parent 09480bc994
commit 5ecee03052

@ -259,28 +259,51 @@ class _ComplaintSelectionState extends State<ComplaintSelection> {
textAlign: TextAlign.start, textAlign: TextAlign.start,
), ),
), ),
SizedBox(height: 8,), SizedBox(
Row(children: [ height: 8,
Expanded(child: Padding( ),
padding: EdgeInsets.only(left: 10,right: 10), Row(
child: children: [
Expanded(
TextFormField( child: Padding(
autofocus: true, padding: EdgeInsets.only(left: 10, right: 10),
controller: searchController, child: TextFormField(
decoration: InputDecoration( autofocus: true,
hintText: '', controller: searchController,
border: InputBorder.none, textInputAction: TextInputAction.done,
isCollapsed: true, decoration: InputDecoration(
suffixIcon: model.state == ViewState.BusyLocal ?Transform.scale( hintText: '',
scale: 0.5, border: InputBorder.none,
child: CircularProgressIndicator(strokeWidth: 2,) ,): SizedBox() isCollapsed: true,
), suffixIcon: model.state == ViewState.BusyLocal
onChanged: _onTextChanged,) ? Transform.scale(
scale: 0.5,
),) child: CircularProgressIndicator(
strokeWidth: 2,
],), ),
)
:(searchController.text.isNotEmpty) ?IconButton(
icon: Icon(
Icons.save_as_outlined,
color: Colors.red,
size: 25,
),
onPressed: () {
if(searchController.text.isNotEmpty) {
widget.onSave?.call(searchController.text);
}
}): SizedBox.shrink(),
),
onChanged: _onTextChanged,
onEditingComplete: (){
if(searchController.text.isNotEmpty) {
widget.onSave?.call(searchController.text);
}
},
)),
)
],
),
Padding( Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: Material( child: Material(

Loading…
Cancel
Save