From 228be49ebd992175dcd3bb23a6dd63625a5ba91e Mon Sep 17 00:00:00 2001 From: FlutterFlow <140657486+FlutterFlowEng@users.noreply.github.com> Date: Wed, 26 Jun 2024 18:49:54 +0000 Subject: [PATCH] Updating to latest FlutterFlow output. --- ios/Runner.xcodeproj/project.pbxproj | 8 +++---- .../opt_modal/opt_modal_widget.dart | 21 +++++++++++++++++-- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 89256115..877a3719 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -44,8 +44,8 @@ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 6436409227A31CDD00820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = ""; }; - 6436409F27A31CDD00820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6436409727A31CD100820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = ""; }; + 6436409F27A31CDE00820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; /* End PBXFileReference section */ @@ -225,8 +225,8 @@ 6436409C27A31CD800820AF7 /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( - 6436409227A31CDD00820AF7 /* pt */, - 6436409F27A31CDD00820AF7 /* en */, + 6436409727A31CD100820AF7 /* pt */, + 6436409F27A31CDE00820AF7 /* en */, ); name = InfoPlist.strings; sourceTree = ""; diff --git a/lib/components/molecular_components/opt_modal/opt_modal_widget.dart b/lib/components/molecular_components/opt_modal/opt_modal_widget.dart index 5fd8606c..88e99ff6 100644 --- a/lib/components/molecular_components/opt_modal/opt_modal_widget.dart +++ b/lib/components/molecular_components/opt_modal/opt_modal_widget.dart @@ -363,8 +363,25 @@ class _OptModalWidgetState extends State { .addToEnd(const SizedBox(height: 10.0)), ), FFButtonWidget( - onPressed: () { - print('Button pressed ...'); + onPressed: () async { + if ((_model.checkboxValue2 == true) && + (_model.checkboxValue1 == false)) { + await widget.togglePersonType?.call( + 'T', + ); + } else if ((_model.checkboxValue1 == true) && + ((_model.checkboxValue2 == true) && + (_model.checkboxValue1 == false))) { + await widget.togglePersonType?.call( + 'E', + ); + } else { + await widget.togglePersonType?.call( + 'T', + ); + } + + Navigator.pop(context); }, text: FFLocalizations.of(context).getText( '88kshkph' /* Salvar */,