This commit is contained in:
2025-06-13 09:56:10 +02:00
parent e7c1359712
commit 92b8f2d05a

View File

@@ -351,20 +351,39 @@ class _PrescripInputState extends State<PrescripInput> {
MihForm( MihForm(
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihSearchBar( Column(
controller: widget.medicineController, children: [
hintText: "Search Medicine", Align(
prefixIcon: Icons.search, alignment: Alignment.centerLeft,
fillColor: child: Text(
MzanziInnovationHub.of(context)!.theme.secondaryColor(), "Medication",
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), style: TextStyle(
onPrefixIconTap: () { fontSize: 18,
getMedsPopUp(widget.medicineController); fontWeight: FontWeight.bold,
}, color: MzanziInnovationHub.of(context)!
onClearIconTap: () { .theme
widget.medicineController.clear(); .secondaryColor(),
}, ),
searchFocusNode: _searchFocusNode, ),
),
const SizedBox(height: 4),
MihSearchBar(
controller: widget.medicineController,
hintText: "Search Medicine",
prefixIcon: Icons.search,
fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
hintColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () {
getMedsPopUp(widget.medicineController);
},
onClearIconTap: () {
widget.medicineController.clear();
},
searchFocusNode: _searchFocusNode,
),
],
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihNumericStepper( MihNumericStepper(