ios配置

This commit is contained in:
tao
2025-08-29 10:26:37 +08:00
parent 60b7ce6e96
commit 00dd33830c
13 changed files with 440 additions and 5 deletions

View File

@@ -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 = "";
}

View File

@@ -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 = "";
}