|
|
|
|
@ -51,9 +51,10 @@ class MedicineSearch extends StatelessWidget {
|
|
|
|
|
controller: textController,
|
|
|
|
|
validator: (value) {
|
|
|
|
|
if (value.isEmpty) {
|
|
|
|
|
return TranslationBase.of(context)
|
|
|
|
|
.pleaseEnterMedicineName;
|
|
|
|
|
}
|
|
|
|
|
return TranslationBase.of(context).pleaseEnterMedicineName;
|
|
|
|
|
}else if( value.length <4){
|
|
|
|
|
return TranslationBase.of(context).searchItemError;
|
|
|
|
|
}else
|
|
|
|
|
return null;
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
@ -80,6 +81,7 @@ class MedicineSearch extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if(model.pharmacy.isNotEmpty)
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: SizeConfig.heightMultiplier * 2),
|
|
|
|
|
@ -87,9 +89,9 @@ class MedicineSearch extends StatelessWidget {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Texts(
|
|
|
|
|
'You Can Find ' +
|
|
|
|
|
'${model.pharmacy == null ? '0' : model.pharmacy.length.toString()}'
|
|
|
|
|
' Item In Search ',
|
|
|
|
|
TranslationBase.of(context).youCanFind+
|
|
|
|
|
'${model.pharmacy == null ? '0' : model.pharmacy.length.toString()}'+
|
|
|
|
|
TranslationBase.of(context).itemInSearch,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|