forked from eatvio/eatvio_app
fix(iOS): Warning fix
This commit is contained in:
@@ -942,10 +942,7 @@ class MyProfileScreen extends StatelessWidget {
|
||||
child: Text("Отмена", style: theme.textTheme.bodyLarge),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
addWeight(state, context);
|
||||
Navigator.of(context).pop(); // Закрыть диалоговое окно после изменения веса
|
||||
},
|
||||
onPressed: () => saveWeight(state, context),
|
||||
child: Text("Изменить",
|
||||
style: CustomTextStyles.titleMediumBlack.copyWith(
|
||||
color: Colors.blue,
|
||||
@@ -959,6 +956,13 @@ class MyProfileScreen extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
void saveWeight(MyProfileLoadedState state, BuildContext context) {
|
||||
|
||||
addWeight(state, context);
|
||||
Navigator.of(context).pop(); // Закрыть диалоговое окно после изменения веса
|
||||
|
||||
}
|
||||
|
||||
onTapOk(BuildContext context) {
|
||||
return () {
|
||||
Navigator.pop(context);
|
||||
|
||||
Reference in New Issue
Block a user