Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
snehalathad@aissel.com | 0eef014073 | |
snehalathad@aissel.com | 91f46d6036 | |
snehalathad@aissel.com | 6415617f17 | |
snehalathad@aissel.com | 8a6dc26234 | |
snehalathad@aissel.com | f51836649a | |
snehalathad@aissel.com | 7c6237593b | |
snehalathad@aissel.com | 98464d3f67 |
|
@ -1 +1,2 @@
|
|||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
|
||||
#include "Generated.xcconfig"
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
|
||||
#include "Generated.xcconfig"
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
# Uncomment this line to define a global platform for your project
|
||||
# platform :ios, '12.0'
|
||||
|
||||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
||||
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
|
||||
|
||||
project 'Runner', {
|
||||
'Debug' => :debug,
|
||||
'Profile' => :release,
|
||||
'Release' => :release,
|
||||
}
|
||||
|
||||
def flutter_root
|
||||
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
|
||||
unless File.exist?(generated_xcode_build_settings_path)
|
||||
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
|
||||
end
|
||||
|
||||
File.foreach(generated_xcode_build_settings_path) do |line|
|
||||
matches = line.match(/FLUTTER_ROOT\=(.*)/)
|
||||
return matches[1].strip if matches
|
||||
end
|
||||
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
|
||||
end
|
||||
|
||||
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
|
||||
|
||||
flutter_ios_podfile_setup
|
||||
|
||||
target 'Runner' do
|
||||
use_frameworks!
|
||||
use_modular_headers!
|
||||
|
||||
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
|
||||
target 'RunnerTests' do
|
||||
inherit! :search_paths
|
||||
end
|
||||
end
|
||||
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
flutter_additional_ios_build_settings(target)
|
||||
end
|
||||
end
|
|
@ -0,0 +1,102 @@
|
|||
PODS:
|
||||
- connectivity_plus (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- DKImagePickerController/Core (4.3.9):
|
||||
- DKImagePickerController/ImageDataManager
|
||||
- DKImagePickerController/Resource
|
||||
- DKImagePickerController/ImageDataManager (4.3.9)
|
||||
- DKImagePickerController/PhotoGallery (4.3.9):
|
||||
- DKImagePickerController/Core
|
||||
- DKPhotoGallery
|
||||
- DKImagePickerController/Resource (4.3.9)
|
||||
- DKPhotoGallery (0.0.19):
|
||||
- DKPhotoGallery/Core (= 0.0.19)
|
||||
- DKPhotoGallery/Model (= 0.0.19)
|
||||
- DKPhotoGallery/Preview (= 0.0.19)
|
||||
- DKPhotoGallery/Resource (= 0.0.19)
|
||||
- SDWebImage
|
||||
- SwiftyGif
|
||||
- DKPhotoGallery/Core (0.0.19):
|
||||
- DKPhotoGallery/Model
|
||||
- DKPhotoGallery/Preview
|
||||
- SDWebImage
|
||||
- SwiftyGif
|
||||
- DKPhotoGallery/Model (0.0.19):
|
||||
- SDWebImage
|
||||
- SwiftyGif
|
||||
- DKPhotoGallery/Preview (0.0.19):
|
||||
- DKPhotoGallery/Model
|
||||
- DKPhotoGallery/Resource
|
||||
- SDWebImage
|
||||
- SwiftyGif
|
||||
- DKPhotoGallery/Resource (0.0.19):
|
||||
- SDWebImage
|
||||
- SwiftyGif
|
||||
- file_picker (0.0.1):
|
||||
- DKImagePickerController/PhotoGallery
|
||||
- Flutter
|
||||
- Flutter (1.0.0)
|
||||
- open_file (0.0.1):
|
||||
- Flutter
|
||||
- path_provider_foundation (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- permission_handler_apple (9.3.0):
|
||||
- Flutter
|
||||
- SDWebImage (5.19.2):
|
||||
- SDWebImage/Core (= 5.19.2)
|
||||
- SDWebImage/Core (5.19.2)
|
||||
- shared_preferences_foundation (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- SwiftyGif (5.4.5)
|
||||
|
||||
DEPENDENCIES:
|
||||
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/darwin`)
|
||||
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
||||
- Flutter (from `Flutter`)
|
||||
- open_file (from `.symlinks/plugins/open_file/ios`)
|
||||
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
||||
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
|
||||
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
|
||||
|
||||
SPEC REPOS:
|
||||
trunk:
|
||||
- DKImagePickerController
|
||||
- DKPhotoGallery
|
||||
- SDWebImage
|
||||
- SwiftyGif
|
||||
|
||||
EXTERNAL SOURCES:
|
||||
connectivity_plus:
|
||||
:path: ".symlinks/plugins/connectivity_plus/darwin"
|
||||
file_picker:
|
||||
:path: ".symlinks/plugins/file_picker/ios"
|
||||
Flutter:
|
||||
:path: Flutter
|
||||
open_file:
|
||||
:path: ".symlinks/plugins/open_file/ios"
|
||||
path_provider_foundation:
|
||||
:path: ".symlinks/plugins/path_provider_foundation/darwin"
|
||||
permission_handler_apple:
|
||||
:path: ".symlinks/plugins/permission_handler_apple/ios"
|
||||
shared_preferences_foundation:
|
||||
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
connectivity_plus: ddd7f30999e1faaef5967c23d5b6d503d10434db
|
||||
DKImagePickerController: 946cec48c7873164274ecc4624d19e3da4c1ef3c
|
||||
DKPhotoGallery: b3834fecb755ee09a593d7c9e389d8b5d6deed60
|
||||
file_picker: 09aa5ec1ab24135ccd7a1621c46c84134bfd6655
|
||||
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
|
||||
open_file: 02eb5cb6b21264bd3a696876f5afbfb7ca4f4b7d
|
||||
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
|
||||
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
|
||||
SDWebImage: dfe95b2466a9823cf9f0c6d01217c06550d7b29a
|
||||
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
|
||||
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
|
||||
|
||||
PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
|
||||
|
||||
COCOAPODS: 1.14.3
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
/* Begin PBXBuildFile section */
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||
1B3435F39ABB0B2B4F1335E4 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B73A1BE15A08783ED5D5B084 /* Pods_RunnerTests.framework */; };
|
||||
2D9F43102E23355BD3D164B9 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EE85EB91C952524A3D1EC24A /* Pods_Runner.framework */; };
|
||||
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||
|
@ -44,10 +46,12 @@
|
|||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
|
||||
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
332BD68038F6AB3397819249 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||
92991BF63BFD77E6B0319DE4 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
|
@ -55,19 +59,47 @@
|
|||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
A603C17A220EA14077ED2839 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
B68D6BBDE2D7389DD16E4C35 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
B73A1BE15A08783ED5D5B084 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
BA275946E6DD86B40F4D9856 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
|
||||
C69CB8769C23B62B371F7EF8 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
EE85EB91C952524A3D1EC24A /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
5325EC1438F5AEBC5D9E72FF /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1B3435F39ABB0B2B4F1335E4 /* Pods_RunnerTests.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
97C146EB1CF9000F007C117D /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
2D9F43102E23355BD3D164B9 /* Pods_Runner.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
015F2B82B7AF3E412F5D7447 /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
92991BF63BFD77E6B0319DE4 /* Pods-Runner.debug.xcconfig */,
|
||||
332BD68038F6AB3397819249 /* Pods-Runner.release.xcconfig */,
|
||||
A603C17A220EA14077ED2839 /* Pods-Runner.profile.xcconfig */,
|
||||
C69CB8769C23B62B371F7EF8 /* Pods-RunnerTests.debug.xcconfig */,
|
||||
BA275946E6DD86B40F4D9856 /* Pods-RunnerTests.release.xcconfig */,
|
||||
B68D6BBDE2D7389DD16E4C35 /* Pods-RunnerTests.profile.xcconfig */,
|
||||
);
|
||||
path = Pods;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
331C8082294A63A400263BE5 /* RunnerTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -76,6 +108,15 @@
|
|||
path = RunnerTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
5084D4B2EFBAC11F091C9B8E /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
EE85EB91C952524A3D1EC24A /* Pods_Runner.framework */,
|
||||
B73A1BE15A08783ED5D5B084 /* Pods_RunnerTests.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
9740EEB11CF90186004384FC /* Flutter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -94,6 +135,8 @@
|
|||
97C146F01CF9000F007C117D /* Runner */,
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
331C8082294A63A400263BE5 /* RunnerTests */,
|
||||
015F2B82B7AF3E412F5D7447 /* Pods */,
|
||||
5084D4B2EFBAC11F091C9B8E /* Frameworks */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
|
@ -128,8 +171,10 @@
|
|||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
|
||||
buildPhases = (
|
||||
58C493D983D0E7FFAD408973 /* [CP] Check Pods Manifest.lock */,
|
||||
331C807D294A63A400263BE5 /* Sources */,
|
||||
331C807F294A63A400263BE5 /* Resources */,
|
||||
5325EC1438F5AEBC5D9E72FF /* Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -145,12 +190,15 @@
|
|||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
||||
buildPhases = (
|
||||
779E2AABA2357A9F3660B1B8 /* [CP] Check Pods Manifest.lock */,
|
||||
9740EEB61CF901F6004384FC /* Run Script */,
|
||||
97C146EA1CF9000F007C117D /* Sources */,
|
||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||
97C146EC1CF9000F007C117D /* Resources */,
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||
3F92760494627F10EED9C1F9 /* [CP] Embed Pods Frameworks */,
|
||||
CEE4F69E86661AF91811D264 /* [CP] Copy Pods Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -238,6 +286,67 @@
|
|||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
||||
};
|
||||
3F92760494627F10EED9C1F9 /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
58C493D983D0E7FFAD408973 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||
"${PODS_ROOT}/Manifest.lock",
|
||||
);
|
||||
name = "[CP] Check Pods Manifest.lock";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
779E2AABA2357A9F3660B1B8 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||
"${PODS_ROOT}/Manifest.lock",
|
||||
);
|
||||
name = "[CP] Check Pods Manifest.lock";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
|
@ -253,6 +362,23 @@
|
|||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
||||
};
|
||||
CEE4F69E86661AF91811D264 /* [CP] Copy Pods Resources */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
|
@ -378,6 +504,7 @@
|
|||
};
|
||||
331C8088294A63A400263BE5 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = C69CB8769C23B62B371F7EF8 /* Pods-RunnerTests.debug.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
|
@ -395,6 +522,7 @@
|
|||
};
|
||||
331C8089294A63A400263BE5 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = BA275946E6DD86B40F4D9856 /* Pods-RunnerTests.release.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
|
@ -410,6 +538,7 @@
|
|||
};
|
||||
331C808A294A63A400263BE5 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = B68D6BBDE2D7389DD16E4C35 /* Pods-RunnerTests.profile.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
|
@ -541,6 +670,7 @@
|
|||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
DEVELOPMENT_TEAM = 69ERN967NS;
|
||||
ENABLE_BITCODE = NO;
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
|
|
|
@ -4,4 +4,7 @@
|
|||
<FileRef
|
||||
location = "group:Runner.xcodeproj">
|
||||
</FileRef>
|
||||
<FileRef
|
||||
location = "group:Pods/Pods.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
|
|
|
@ -473,26 +473,24 @@ class _EditInteractionScreenState extends State<EditInteractionScreen> {
|
|||
},
|
||||
),
|
||||
)
|
||||
: Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
|
||||
child: SizedBox(
|
||||
// width: isTablet ? 200 : MediaQuery.of(context).size.width,
|
||||
width: MediaQuery.of(context).size.width,
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
|
||||
child: SizedBox(
|
||||
// width: isTablet ? 200 : MediaQuery.of(context).size.width,
|
||||
width: MediaQuery.of(context).size.width,
|
||||
|
||||
height: isTablet ? 50 : 40,
|
||||
child: InteractionTextField(
|
||||
maxchars: int.parse(sectionItem.chars ?? "0"),
|
||||
controller: sectionItem.controller!,
|
||||
inputType: sectionItem.input == "number"
|
||||
? TextInputType.number
|
||||
: TextInputType.name,
|
||||
labelText: sectionItem.name,
|
||||
onChanged: (val) {
|
||||
sectionItem.selectedValue = [];
|
||||
provider.setTextValue(val, sectionItem, multiple);
|
||||
},
|
||||
),
|
||||
height: isTablet ? 50 : 40,
|
||||
child: InteractionTextField(
|
||||
maxchars: int.parse(sectionItem.chars ?? "0"),
|
||||
controller: sectionItem.controller!,
|
||||
inputType: sectionItem.input == "number"
|
||||
? TextInputType.number
|
||||
: TextInputType.name,
|
||||
labelText: sectionItem.name,
|
||||
onChanged: (val) {
|
||||
sectionItem.selectedValue = [];
|
||||
provider.setTextValue(val, sectionItem, multiple);
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -655,7 +653,7 @@ class _EditInteractionScreenState extends State<EditInteractionScreen> {
|
|||
Widget customdropdown(SectionList sectionItem,
|
||||
ViewInteractionProvider provider, List<InputClass> list, bool multiple) {
|
||||
// sectionItem.value = '';
|
||||
print("%%%%${sectionItem.selectedValue!.last}");
|
||||
// print("%%%%${sectionItem.selectedValue!.last}");
|
||||
if (list.isEmpty) {
|
||||
print("###list empty###");
|
||||
list = [];
|
||||
|
@ -1034,7 +1032,7 @@ class _EditInteractionScreenState extends State<EditInteractionScreen> {
|
|||
? provider.getData2(sectionItem)
|
||||
: [];
|
||||
|
||||
return Wrap(children: [
|
||||
return Wrap(runAlignment: WrapAlignment.spaceEvenly, children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
|
|
@ -509,7 +509,7 @@ class _InteractionScreenState extends State<InteractionScreen> {
|
|||
controller: sectionItem.controller!,
|
||||
labelText: sectionItem.name,
|
||||
onChanged: (val) {
|
||||
sectionItem.selectedValue = [];
|
||||
sectionItem.selectedValue!.clear();
|
||||
provider.setTextValue(val, sectionItem, multiple);
|
||||
},
|
||||
),
|
||||
|
@ -1059,156 +1059,178 @@ class _InteractionScreenState extends State<InteractionScreen> {
|
|||
Orientation orientation,
|
||||
FormFieldData item,
|
||||
int listIndex) {
|
||||
List<String> items = [];
|
||||
|
||||
for (var obj in sectionList) {
|
||||
items.add(obj.name);
|
||||
}
|
||||
|
||||
Map<String, int> count = {};
|
||||
for (var i in items) {
|
||||
count[i] = (count[i] ?? 0) + 1;
|
||||
}
|
||||
print(count['delete']);
|
||||
|
||||
return Padding(
|
||||
padding: isTablet
|
||||
? const EdgeInsets.only(left: 8.0)
|
||||
: const EdgeInsets.only(left: 12.0, right: 12.0),
|
||||
child: GridView.count(
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
crossAxisCount: context.responsive<int>(
|
||||
1, // default
|
||||
sm: 1, // small
|
||||
md: 1, // medium
|
||||
lg: sectionList.length == 1 ? 1 : 4, // large
|
||||
xl: 5, // extra large screen
|
||||
),
|
||||
mainAxisSpacing: sectionList.length == 1 || !isTablet ? 1 : 2,
|
||||
shrinkWrap: true,
|
||||
padding: EdgeInsets.zero,
|
||||
childAspectRatio: sectionList.length == 1 || !isTablet
|
||||
? orientation == Orientation.landscape
|
||||
? 10
|
||||
: 4.2
|
||||
: 1.8,
|
||||
children: List.generate(
|
||||
sectionList.length,
|
||||
(i) {
|
||||
print(sectionList);
|
||||
SectionList sectionItem = sectionList[i];
|
||||
dropdownvalue = sectionItem.widget == InteractionWidget.DROPDOWN
|
||||
? sectionItem.value ?? "Select"
|
||||
: ' ';
|
||||
List<InputClass> list =
|
||||
sectionItem.widget == InteractionWidget.DROPDOWN ||
|
||||
sectionItem.widget == InteractionWidget.AUTOCOMPLETE ||
|
||||
sectionItem.widget == InteractionWidget.MULTISELECT
|
||||
? provider.getData2(sectionItem)
|
||||
: [];
|
||||
provider.checkboxlist =
|
||||
sectionItem.widget == InteractionWidget.CHECKBOX
|
||||
? provider.getData2(sectionItem)
|
||||
: [];
|
||||
child: Card(
|
||||
child: GridView.count(
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
crossAxisCount: context.responsive<int>(
|
||||
1, // default
|
||||
sm: 1, // small
|
||||
md: 2, // medium
|
||||
lg: sectionList.length == 1 ? 1 : 4, // large
|
||||
xl: 5, // extra large screen
|
||||
),
|
||||
mainAxisSpacing: sectionList.length == 1 || !isTablet ? 1 : 2,
|
||||
shrinkWrap: true,
|
||||
padding: EdgeInsets.zero,
|
||||
childAspectRatio: sectionList.length == 1 || !isTablet
|
||||
? orientation == Orientation.landscape
|
||||
? 10
|
||||
: 4.2
|
||||
: 3,
|
||||
children: List.generate(
|
||||
sectionList.length,
|
||||
(i) {
|
||||
print(sectionList);
|
||||
SectionList sectionItem = sectionList[i];
|
||||
dropdownvalue = sectionItem.widget == InteractionWidget.DROPDOWN
|
||||
? sectionItem.value ?? "Select"
|
||||
: ' ';
|
||||
List<InputClass> list = sectionItem.widget ==
|
||||
InteractionWidget.DROPDOWN ||
|
||||
sectionItem.widget == InteractionWidget.AUTOCOMPLETE ||
|
||||
sectionItem.widget == InteractionWidget.MULTISELECT
|
||||
? provider.getData2(sectionItem)
|
||||
: [];
|
||||
provider.checkboxlist =
|
||||
sectionItem.widget == InteractionWidget.CHECKBOX
|
||||
? provider.getData2(sectionItem)
|
||||
: [];
|
||||
|
||||
return Wrap(children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
sectionItem.widget == InteractionWidget.BUTTON &&
|
||||
sectionItem.input == 'add' ||
|
||||
sectionItem.input == 'deletebtn'
|
||||
? const SizedBox.shrink()
|
||||
: Text(
|
||||
'${sectionItem.name}:*',
|
||||
style: TextStyle(
|
||||
color: Colors.orange.shade800,
|
||||
fontSize: isTablet ? 18 : 14,
|
||||
return Wrap(runAlignment: WrapAlignment.spaceEvenly, children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
sectionItem.widget == InteractionWidget.BUTTON &&
|
||||
sectionItem.input == 'add' ||
|
||||
sectionItem.input == 'deletebtn'
|
||||
? const SizedBox.shrink()
|
||||
: Text(
|
||||
'${sectionItem.name}:*',
|
||||
style: TextStyle(
|
||||
color: Colors.orange.shade800,
|
||||
fontSize: isTablet ? 18 : 14,
|
||||
),
|
||||
),
|
||||
),
|
||||
// const SizedBox(
|
||||
// height: 15,
|
||||
// ),
|
||||
sectionItem.widget == InteractionWidget.BUTTON
|
||||
? sectionItem.input == 'chooseFile'
|
||||
? Row(
|
||||
children: [
|
||||
CustomButton(
|
||||
backgroundColor: const Color.fromARGB(
|
||||
255, 233, 229, 229),
|
||||
onPressed: () async {
|
||||
sectionItem.selectedValue = [];
|
||||
sectionItem.extension = [];
|
||||
sectionItem.fileName = [];
|
||||
await getEncodedFile(sectionItem);
|
||||
|
||||
setState(() {});
|
||||
},
|
||||
width: 120,
|
||||
height: 40,
|
||||
fontsize: 12,
|
||||
textColor: Colors.black,
|
||||
title: sectionItem.name),
|
||||
const SizedBox(
|
||||
width: 5,
|
||||
),
|
||||
Text(
|
||||
sectionItem.selectedValue!.isNotEmpty
|
||||
? sectionItem.selectedValue!.isNotEmpty
|
||||
? 'File uploaded'
|
||||
: "Files Uploaded"
|
||||
: 'No file uploaded',
|
||||
style: TextStyle(
|
||||
color:
|
||||
sectionItem.selectedValue!.isNotEmpty
|
||||
? Colors.green
|
||||
: Colors.red),
|
||||
),
|
||||
],
|
||||
)
|
||||
: isTablet
|
||||
? IconButton(
|
||||
onPressed: () {
|
||||
provider.deleteMultipleRows(
|
||||
sectionItem.gid!,
|
||||
sectionList[i],
|
||||
sectionName);
|
||||
|
||||
setState(() {});
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.cancel,
|
||||
size: 30,
|
||||
color: Color.fromARGB(255, 8, 39, 92),
|
||||
),
|
||||
)
|
||||
: Padding(
|
||||
padding:
|
||||
const EdgeInsets.only(left: 3.0, top: 5),
|
||||
child: CustomButton(
|
||||
// const SizedBox(
|
||||
// height: 15,
|
||||
// ),
|
||||
sectionItem.widget == InteractionWidget.BUTTON
|
||||
? sectionItem.input == 'chooseFile'
|
||||
? Row(
|
||||
children: [
|
||||
CustomButton(
|
||||
backgroundColor: const Color.fromARGB(
|
||||
255, 233, 75, 75),
|
||||
onPressed: () {
|
||||
provider.deleteMultipleRows(
|
||||
sectionItem.gid!,
|
||||
sectionList[i],
|
||||
sectionName);
|
||||
255, 233, 229, 229),
|
||||
onPressed: () async {
|
||||
sectionItem.selectedValue = [];
|
||||
sectionItem.extension = [];
|
||||
sectionItem.fileName = [];
|
||||
await getEncodedFile(sectionItem);
|
||||
|
||||
setState(() {});
|
||||
},
|
||||
// width: 80,
|
||||
// height: 30,
|
||||
|
||||
width: 120,
|
||||
height: 40,
|
||||
|
||||
// height:
|
||||
// MediaQuery.of(context).size.height *
|
||||
// 0.2,
|
||||
fontsize: 12,
|
||||
textColor: Colors.white,
|
||||
title: "Delete"),
|
||||
)
|
||||
: returnWidget(
|
||||
sectionItem: sectionItem,
|
||||
item: item,
|
||||
provider: provider,
|
||||
list: list,
|
||||
gridIndex: i,
|
||||
listIndex: listIndex,
|
||||
widgetData: sectionItem.widget!,
|
||||
multiple: true),
|
||||
],
|
||||
),
|
||||
]);
|
||||
},
|
||||
textColor: Colors.black,
|
||||
title: sectionItem.name),
|
||||
const SizedBox(
|
||||
width: 5,
|
||||
),
|
||||
Text(
|
||||
sectionItem.selectedValue!.isNotEmpty
|
||||
? sectionItem.selectedValue!.isNotEmpty
|
||||
? 'File uploaded'
|
||||
: "Files Uploaded"
|
||||
: 'No file uploaded',
|
||||
style: TextStyle(
|
||||
color: sectionItem
|
||||
.selectedValue!.isNotEmpty
|
||||
? Colors.green
|
||||
: Colors.red),
|
||||
),
|
||||
],
|
||||
)
|
||||
: isTablet
|
||||
? Row(
|
||||
children: [
|
||||
Expanded(
|
||||
// width: MediaQuery.of(context).size.width,
|
||||
child: IconButton(
|
||||
onPressed: () {
|
||||
provider.deleteMultipleRows(
|
||||
sectionItem.gid!,
|
||||
sectionList[i],
|
||||
sectionName);
|
||||
|
||||
setState(() {});
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.cancel,
|
||||
size: 30,
|
||||
color:
|
||||
Color.fromARGB(255, 8, 39, 92),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 3.0, top: 5),
|
||||
child: CustomButton(
|
||||
backgroundColor: const Color.fromARGB(
|
||||
255, 233, 75, 75),
|
||||
onPressed: () {
|
||||
provider.deleteMultipleRows(
|
||||
sectionItem.gid!,
|
||||
sectionList[i],
|
||||
sectionName);
|
||||
|
||||
setState(() {});
|
||||
},
|
||||
// width: 80,
|
||||
// height: 30,
|
||||
|
||||
height: 40,
|
||||
|
||||
// height:
|
||||
// MediaQuery.of(context).size.height *
|
||||
// 0.2,
|
||||
fontsize: 12,
|
||||
textColor: Colors.white,
|
||||
title: "Delete"),
|
||||
)
|
||||
: returnWidget(
|
||||
sectionItem: sectionItem,
|
||||
item: item,
|
||||
provider: provider,
|
||||
list: list,
|
||||
gridIndex: i,
|
||||
listIndex: listIndex,
|
||||
widgetData: sectionItem.widget!,
|
||||
multiple: true),
|
||||
],
|
||||
),
|
||||
]);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -246,8 +246,8 @@ class InteractionProvider extends ChangeNotifier {
|
|||
int i = 0;
|
||||
for (var obj in interactionReponseList) {
|
||||
if (multiple && obj.multipleList != null) {
|
||||
i = obj.multipleList!
|
||||
.indexWhere((element) => element.id == sectionItem.id);
|
||||
i = obj.multipleList!.indexWhere((element) =>
|
||||
element.id == sectionItem.id && element.gid == sectionItem.gid);
|
||||
if (i != -1) {
|
||||
obj.multipleList![i].value = value;
|
||||
obj.multipleList![i].selectedValue!.add(value);
|
||||
|
@ -420,7 +420,7 @@ class InteractionProvider extends ChangeNotifier {
|
|||
List<SectionList> addList = [];
|
||||
int index = interactionReponseList
|
||||
.indexWhere((element) => element.sectionName == sectionName);
|
||||
|
||||
var textEditingController = TextEditingController();
|
||||
addList = interactionReponseList[index]
|
||||
.sectionList
|
||||
.map((e) => SectionList(
|
||||
|
@ -450,6 +450,17 @@ class InteractionProvider extends ChangeNotifier {
|
|||
|
||||
addList.add(delItem);
|
||||
|
||||
for (SectionList obj in addList) {
|
||||
//obj.gid = obj.gid ?? addList.length;
|
||||
if (obj.widget == InteractionWidget.TEXT) {
|
||||
// multipletextEditingControllerList.clear();
|
||||
var textEditingController = TextEditingController();
|
||||
obj.controller = textEditingController;
|
||||
multipletextEditingControllerList.add(textEditingController);
|
||||
}
|
||||
// newList.add(obj);
|
||||
}
|
||||
|
||||
// if (interactionReponseList[index].multipleList!.isEmpty) {
|
||||
// newList = addList;
|
||||
// } else {
|
||||
|
@ -466,13 +477,13 @@ class InteractionProvider extends ChangeNotifier {
|
|||
if (interactionReponseList[index].multipleList != null) {
|
||||
for (SectionList obj in interactionReponseList[index].multipleList!) {
|
||||
obj.gid = obj.gid ?? interactionReponseList[index].multipleList!.length;
|
||||
if (obj.widget == InteractionWidget.TEXT) {
|
||||
var textEditingController = TextEditingController();
|
||||
// if (obj.widget == InteractionWidget.TEXT) {
|
||||
// var textEditingController = TextEditingController();
|
||||
|
||||
multipletextEditingControllerList.add(textEditingController);
|
||||
obj.controller = multipletextEditingControllerList.last;
|
||||
}
|
||||
// newList.add(obj);
|
||||
// multipletextEditingControllerList.add(textEditingController);
|
||||
// obj.controller = multipletextEditingControllerList.last;
|
||||
// }
|
||||
//newList.add(obj);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -525,6 +536,12 @@ class InteractionProvider extends ChangeNotifier {
|
|||
Future<String> saveJsonObject(BuildContext context, String form,
|
||||
{bool isEdit = false}) async {
|
||||
print("form_data: $form");
|
||||
// for (var ob in interactionReponseList) {
|
||||
|
||||
// for (var ob2 in ob.multipleList!) {
|
||||
// debugPrint("!!!!!!!!!!!!In multiple :${ob2.selectedValue}");
|
||||
// }
|
||||
// }
|
||||
List<FormFieldData> resultData = interactionReponseList
|
||||
.map((e) => FormFieldData(
|
||||
multipleList: e.multipleList == null
|
||||
|
@ -541,7 +558,7 @@ class InteractionProvider extends ChangeNotifier {
|
|||
extension: mobj.extension,
|
||||
fileName: mobj.fileName,
|
||||
widget: mobj.widget,
|
||||
// controller: mobj.controller,
|
||||
// controller: mobj.controller,
|
||||
gid: mobj.gid,
|
||||
input: mobj.input,
|
||||
selectedId: mobj.selectedId,
|
||||
|
|
|
@ -286,8 +286,10 @@ class _ViewInteractionScreenState extends State<ViewInteractionScreen> {
|
|||
sectionItem.id, sectionItem.selectedValue!.last));
|
||||
|
||||
case InteractionWidget.AUTOCOMPLETE:
|
||||
return Text(provider.getDataValue(
|
||||
sectionItem.id, sectionItem.selectedValue!.last));
|
||||
return Text(sectionItem.selectedValue!.isNotEmpty
|
||||
? provider.getDataValue(
|
||||
sectionItem.id, sectionItem.selectedValue!.last)
|
||||
: " ");
|
||||
|
||||
case InteractionWidget.MULTISELECT:
|
||||
return Text(sectionItem.selectedValue.toString());
|
||||
|
@ -320,6 +322,11 @@ class _ViewInteractionScreenState extends State<ViewInteractionScreen> {
|
|||
? const Text("File Uploaded")
|
||||
: const Text(" ")
|
||||
: const Text(" ");
|
||||
case InteractionWidget.DROPDOWN:
|
||||
return Text(sectionItem.selectedValue!.isNotEmpty
|
||||
? provider.getDataValue(
|
||||
sectionItem.id, sectionItem.selectedValue!.last)
|
||||
: " ");
|
||||
default:
|
||||
return Text(sectionItem.selectedValue!.isNotEmpty
|
||||
? provider.getDataValue(
|
||||
|
|
|
@ -140,13 +140,22 @@ class ViewInteractionProvider extends ChangeNotifier {
|
|||
|
||||
for (SectionList obj in item.multipleList!) {
|
||||
obj.gid = obj.gid ?? item.multipleList!.length;
|
||||
|
||||
if (obj.widget == InteractionWidget.TEXT) {
|
||||
debugPrint("textcontr:${obj.gid}");
|
||||
debugPrint("textcontr:${obj.selectedValue}");
|
||||
// debugPrint("textcontr:${obj.controller!.value}");
|
||||
var textEditingController = TextEditingController();
|
||||
textEditingController.value = TextEditingValue(
|
||||
text: obj.selectedValue!.isNotEmpty
|
||||
? obj.selectedValue!.last ?? ""
|
||||
: "");
|
||||
textEditingController.text = obj.selectedValue!.isNotEmpty
|
||||
? obj.selectedValue!.last ?? ""
|
||||
: "";
|
||||
multipletextEditingControllerList.add(textEditingController);
|
||||
obj.controller = multipletextEditingControllerList.last;
|
||||
// obj.controller!.value = textEditingController.value;
|
||||
obj.controller = textEditingController;
|
||||
// obj.controller = obj.selectedValue.last ?? " ";
|
||||
}
|
||||
if (obj.widget == InteractionWidget.DROPDOWN ||
|
||||
|
@ -608,6 +617,23 @@ class ViewInteractionProvider extends ChangeNotifier {
|
|||
// if (interactionReponseList[index].multipleList!.isEmpty) {
|
||||
// newList = addList;
|
||||
// } else {
|
||||
|
||||
if (addList.isNotEmpty) {
|
||||
for (SectionList obj in addList) {
|
||||
// obj.gid = obj.gid ?? addList.length;
|
||||
if (obj.widget == InteractionWidget.TEXT) {
|
||||
var textEditingController = TextEditingController();
|
||||
|
||||
multipletextEditingControllerList.add(textEditingController);
|
||||
obj.controller = multipletextEditingControllerList.last;
|
||||
obj.controller!.text =
|
||||
obj.selectedValue != null && obj.selectedValue!.isNotEmpty
|
||||
? obj.selectedValue!.last
|
||||
: '';
|
||||
}
|
||||
// newList.add(obj);
|
||||
}
|
||||
}
|
||||
if (interactionReponseList[index].multipleList == null) {
|
||||
interactionReponseList[index].multipleList = addList;
|
||||
} else {
|
||||
|
@ -622,10 +648,6 @@ class ViewInteractionProvider extends ChangeNotifier {
|
|||
for (SectionList obj in interactionReponseList[index].multipleList!) {
|
||||
obj.gid = obj.gid ?? interactionReponseList[index].multipleList!.length;
|
||||
if (obj.widget == InteractionWidget.TEXT) {
|
||||
var textEditingController = TextEditingController();
|
||||
|
||||
multipletextEditingControllerList.add(textEditingController);
|
||||
obj.controller = multipletextEditingControllerList.last;
|
||||
obj.controller!.text =
|
||||
obj.selectedValue != null && obj.selectedValue!.isNotEmpty
|
||||
? obj.selectedValue!.last
|
||||
|
@ -653,6 +675,14 @@ class ViewInteractionProvider extends ChangeNotifier {
|
|||
|
||||
saveJsonObject(BuildContext context, String form,
|
||||
SaveInteraction saveInteraction) async {
|
||||
for (var res in interactionReponseList) {
|
||||
for (var sec in res.sectionList) {
|
||||
debugPrint("print ${sec.selectedValue}");
|
||||
}
|
||||
for (var sec in res.multipleList!) {
|
||||
debugPrint("printmultiple ${sec.selectedValue}");
|
||||
}
|
||||
}
|
||||
List<FormFieldData> resultData = interactionReponseList
|
||||
.map((e) => FormFieldData(
|
||||
multipleList: e.multipleList == null
|
||||
|
|
|
@ -42,6 +42,9 @@ class InteractionTextField extends StatelessWidget {
|
|||
onChanged: (value) {
|
||||
onChanged(value);
|
||||
},
|
||||
onSubmitted: (value) {
|
||||
onChanged(value);
|
||||
},
|
||||
inputFormatters: [
|
||||
inputType == TextInputType.number
|
||||
? FilteringTextInputFormatter.digitsOnly
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
|
||||
#include "ephemeral/Flutter-Generated.xcconfig"
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
|
||||
#include "ephemeral/Flutter-Generated.xcconfig"
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
platform :osx, '10.14'
|
||||
|
||||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
||||
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
|
||||
|
||||
project 'Runner', {
|
||||
'Debug' => :debug,
|
||||
'Profile' => :release,
|
||||
'Release' => :release,
|
||||
}
|
||||
|
||||
def flutter_root
|
||||
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
|
||||
unless File.exist?(generated_xcode_build_settings_path)
|
||||
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
|
||||
end
|
||||
|
||||
File.foreach(generated_xcode_build_settings_path) do |line|
|
||||
matches = line.match(/FLUTTER_ROOT\=(.*)/)
|
||||
return matches[1].strip if matches
|
||||
end
|
||||
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
|
||||
end
|
||||
|
||||
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
|
||||
|
||||
flutter_macos_podfile_setup
|
||||
|
||||
target 'Runner' do
|
||||
use_frameworks!
|
||||
use_modular_headers!
|
||||
|
||||
flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
|
||||
target 'RunnerTests' do
|
||||
inherit! :search_paths
|
||||
end
|
||||
end
|
||||
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
flutter_additional_macos_build_settings(target)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue