ios配置
This commit is contained in:
@@ -36,7 +36,7 @@ class _FoodAllergiesState extends State<FoodAllergies> {
|
||||
|
||||
void _handConfirmCustom() {
|
||||
var state = SelectionProvider.of(context);
|
||||
if (!getIsSelect(_otherController.text)) {
|
||||
if (_otherController.text.isNotEmpty && !getIsSelect(_otherController.text)) {
|
||||
state.update((p) => p.foodAllergiesList.add(_otherController.text));
|
||||
_otherController.text = "";
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ class _HealthProfileState extends State<HealthProfile> {
|
||||
///确认搜索内容
|
||||
void _handConfirmCustom() {
|
||||
var state = SelectionProvider.of(context);
|
||||
if (!getIsSelect(_otherController.text)) {
|
||||
if (_otherController.text.isNotEmpty && !getIsSelect(_otherController.text)) {
|
||||
state.update((p) => p.currentMedicationsList.add(_otherController.text));
|
||||
_otherController.text = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user