Commit dda6f732 authored by jzhang's avatar jzhang

no message

parent 823d96a3
......@@ -35,6 +35,7 @@
694B85F82848ECFC009BEDE1 /* Toast.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 694B85D62848EBB2009BEDE1 /* Toast.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
694B85F92848EDC4009BEDE1 /* FlutterPluginRegistrant.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 694B85D12848EBB1009BEDE1 /* FlutterPluginRegistrant.xcframework */; };
694B85FD284902EF009BEDE1 /* permission_handler_apple.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 694B85D82848EBB2009BEDE1 /* permission_handler_apple.xcframework */; };
697B07ED284F2E5C0051FC23 /* CompleteVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 697B07EC284F2E5C0051FC23 /* CompleteVC.swift */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
......@@ -82,6 +83,7 @@
694B85D72848EBB2009BEDE1 /* Flutter.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = Flutter.xcframework; sourceTree = "<group>"; };
694B85D82848EBB2009BEDE1 /* permission_handler_apple.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = permission_handler_apple.xcframework; sourceTree = "<group>"; };
694B85D92848EBB2009BEDE1 /* fluttertoast.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = fluttertoast.xcframework; sourceTree = "<group>"; };
697B07EC284F2E5C0051FC23 /* CompleteVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompleteVC.swift; sourceTree = "<group>"; };
8C76E81CF245C7C738786086 /* Pods-BreastFeedingDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BreastFeedingDemo.debug.xcconfig"; path = "Target Support Files/Pods-BreastFeedingDemo/Pods-BreastFeedingDemo.debug.xcconfig"; sourceTree = "<group>"; };
A4415E51DE97A1784932289A /* Pods-BreastFeedingDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BreastFeedingDemo.release.xcconfig"; path = "Target Support Files/Pods-BreastFeedingDemo/Pods-BreastFeedingDemo.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
......@@ -143,6 +145,7 @@
694B85BB2848EB4C009BEDE1 /* AppDelegate.swift */,
694B85BD2848EB4C009BEDE1 /* SceneDelegate.swift */,
694B85BF2848EB4C009BEDE1 /* ViewController.swift */,
697B07EC284F2E5C0051FC23 /* CompleteVC.swift */,
692EC419284C81700043E3EA /* ViewModel.swift */,
694B85C12848EB4C009BEDE1 /* Main.storyboard */,
694B85C42848EB4E009BEDE1 /* Assets.xcassets */,
......@@ -289,6 +292,7 @@
files = (
694B85C02848EB4C009BEDE1 /* ViewController.swift in Sources */,
694B85BC2848EB4C009BEDE1 /* AppDelegate.swift in Sources */,
697B07ED284F2E5C0051FC23 /* CompleteVC.swift in Sources */,
692EC41A284C81700043E3EA /* ViewModel.swift in Sources */,
694B85BE2848EB4C009BEDE1 /* SceneDelegate.swift in Sources */,
);
......@@ -438,10 +442,11 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 4WRSWKXL27;
DEVELOPMENT_TEAM = W3C84P5FPS;
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Flutter";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = BreastFeedingDemo/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "BF AiDemo";
INFOPLIST_KEY_NSCameraUsageDescription = "The app tries to use your camera";
INFOPLIST_KEY_NSMicrophoneUsageDescription = "The app tries to use your microphone";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
......@@ -455,7 +460,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.jzhang.BreastFeedingDemo;
PRODUCT_BUNDLE_IDENTIFIER = com.demo.BreastFeedingDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
......@@ -471,10 +476,11 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 4WRSWKXL27;
DEVELOPMENT_TEAM = W3C84P5FPS;
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Flutter";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = BreastFeedingDemo/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "BF AiDemo";
INFOPLIST_KEY_NSCameraUsageDescription = "The app tries to use your camera";
INFOPLIST_KEY_NSMicrophoneUsageDescription = "The app tries to use your microphone";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
......@@ -488,7 +494,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.jzhang.BreastFeedingDemo;
PRODUCT_BUNDLE_IDENTIFIER = com.demo.BreastFeedingDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
......
{
"images" : [
{
"filename" : "massage-complete-title-icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "massage-entry-fullbg.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "noselect.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "popup.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_0" orientation="portrait" appearance="light"/>
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
......@@ -14,35 +14,35 @@
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="BreastFeedingDemo" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" image="introduceBg" translatesAutoresizingMaskIntoConstraints="NO" id="mcT-68-7qe">
<rect key="frame" x="0.0" y="124" width="390" height="520"/>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="introduceBg" translatesAutoresizingMaskIntoConstraints="NO" id="xYn-g0-EZC">
<rect key="frame" x="0.0" y="0.0" width="414" height="631"/>
<constraints>
<constraint firstAttribute="height" constant="520" id="t6Y-ye-ovG"/>
<constraint firstAttribute="width" secondItem="xYn-g0-EZC" secondAttribute="height" multiplier="1125:1714" id="QEj-5E-sTS"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="w7E-9g-1V7">
<rect key="frame" x="7.6666666666666572" y="124" width="375" height="520"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="w7E-9g-1V7" userLabel="CenterIntroduceView">
<rect key="frame" x="19.5" y="111" width="375" height="520"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="swiper1big_new" translatesAutoresizingMaskIntoConstraints="NO" id="Dhs-89-5Gr">
<rect key="frame" x="0.0" y="0.0" width="375" height="520"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Ki-U8-ZmO">
<rect key="frame" x="49" y="120" width="118" height="15.666666666666657"/>
<rect key="frame" x="49" y="120" width="118" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" systemColor="systemGrayColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gBm-Jn-Yuw">
<rect key="frame" x="153" y="310" width="222" height="15.666666666666686"/>
<rect key="frame" x="153" y="310" width="222" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" systemColor="systemGrayColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5WO-Br-BXn">
<rect key="frame" x="49" y="399" width="286" height="15.666666666666686"/>
<rect key="frame" x="49" y="399" width="286" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" systemColor="systemGrayColor"/>
<nil key="highlightedColor"/>
......@@ -76,22 +76,8 @@
<constraint firstItem="Dhs-89-5Gr" firstAttribute="top" secondItem="w7E-9g-1V7" secondAttribute="top" id="qDc-dH-Wlq"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eST-58-iE6">
<rect key="frame" x="88.666666666666686" y="724" width="213" height="31"/>
<constraints>
<constraint firstAttribute="width" constant="213" id="9qN-fM-id3"/>
</constraints>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Empezar ahora">
<backgroundConfiguration key="background" image="light-btn-bg"/>
<color key="baseForegroundColor" red="0.9459709181" green="1" blue="0.97093926880000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</buttonConfiguration>
<connections>
<action selector="tapStart:" destination="BYZ-38-t0r" eventType="touchUpInside" id="bzd-Xi-4RV"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="s7D-fE-2f9">
<rect key="frame" x="334" y="60" width="40" height="40"/>
<rect key="frame" x="358" y="44" width="40" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="JlQ-c6-MTE"/>
<constraint firstAttribute="width" constant="40" id="QfK-8H-GP3"/>
......@@ -105,25 +91,60 @@
<action selector="showPanel:" destination="BYZ-38-t0r" eventType="touchUpInside" id="jam-Ds-LOJ"/>
</connections>
</button>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="PtM-de-bTT">
<rect key="frame" x="289" y="104" width="99" height="120"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ul6-yG-7a1">
<rect key="frame" x="0.0" y="631" width="414" height="231"/>
<subviews>
<view contentMode="scaleToFill" id="kkA-95-vje">
<rect key="frame" x="0.0" y="0.0" width="99" height="40"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eST-58-iE6">
<rect key="frame" x="101" y="96.5" width="212" height="38"/>
<constraints>
<constraint firstAttribute="width" secondItem="eST-58-iE6" secondAttribute="height" multiplier="5.58974" id="5Ll-2F-jZ5"/>
<constraint firstAttribute="height" constant="38" id="VCb-UE-ur6"/>
</constraints>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Empezar ahora">
<backgroundConfiguration key="background" image="light-btn-bg"/>
<color key="baseForegroundColor" red="0.9459709181" green="1" blue="0.97093926880000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</buttonConfiguration>
<connections>
<action selector="tapStart:" destination="BYZ-38-t0r" eventType="touchUpInside" id="bzd-Xi-4RV"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="eST-58-iE6" firstAttribute="centerX" secondItem="Ul6-yG-7a1" secondAttribute="centerX" id="lK2-bQ-Ty3"/>
<constraint firstItem="eST-58-iE6" firstAttribute="centerY" secondItem="Ul6-yG-7a1" secondAttribute="centerY" id="v9E-6r-bGL"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wyh-ZZ-B5n">
<rect key="frame" x="312" y="84" width="100" height="120"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="popup" translatesAutoresizingMaskIntoConstraints="NO" id="d65-2N-aD0">
<rect key="frame" x="60" y="0.0" width="12" height="13"/>
<constraints>
<constraint firstAttribute="height" constant="13" id="RTu-24-HK8"/>
<constraint firstAttribute="width" secondItem="d65-2N-aD0" secondAttribute="height" multiplier="12:13" id="fhs-HA-paF"/>
</constraints>
</imageView>
<stackView opaque="NO" contentMode="scaleToFill" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" axis="vertical" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="PtM-de-bTT">
<rect key="frame" x="0.0" y="13" width="100" height="107"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kkA-95-vje">
<rect key="frame" x="0.0" y="0.0" width="100" height="35.5"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vkh-af-zMa">
<rect key="frame" x="0.0" y="39" width="99" height="1"/>
<color key="backgroundColor" systemColor="separatorColor"/>
<rect key="frame" x="0.0" y="34.5" width="100" height="1"/>
<color key="backgroundColor" systemColor="systemGray6Color"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="6mo-Hr-Xgx"/>
</constraints>
</view>
<button opaque="NO" tag="1000" contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f1P-II-Bc9">
<rect key="frame" x="0.0" y="0.0" width="99" height="39"/>
<button opaque="NO" tag="1000" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f1P-II-Bc9">
<rect key="frame" x="10" y="0.0" width="90" height="34.5"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="English">
<color key="titleColor" systemColor="systemGrayColor"/>
<state key="normal" title=" English" image="noselect">
<color key="titleColor" red="0.19438669089999999" green="0.17716249819999999" blue="0.19208657740000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<state key="selected" image="select">
<color key="titleColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......@@ -142,25 +163,25 @@
<constraint firstAttribute="trailing" secondItem="vkh-af-zMa" secondAttribute="trailing" id="WE6-EB-WmY"/>
<constraint firstItem="vkh-af-zMa" firstAttribute="top" secondItem="f1P-II-Bc9" secondAttribute="bottom" id="WOm-dB-vci"/>
<constraint firstItem="vkh-af-zMa" firstAttribute="leading" secondItem="kkA-95-vje" secondAttribute="leading" id="ZVa-z6-r0c"/>
<constraint firstItem="f1P-II-Bc9" firstAttribute="leading" secondItem="kkA-95-vje" secondAttribute="leading" id="fgm-WV-b1z"/>
<constraint firstItem="f1P-II-Bc9" firstAttribute="leading" secondItem="kkA-95-vje" secondAttribute="leading" constant="10" id="fgm-WV-b1z"/>
</constraints>
</view>
<view contentMode="scaleToFill" id="5Rk-KM-CWf">
<rect key="frame" x="0.0" y="40" width="99" height="40"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5Rk-KM-CWf">
<rect key="frame" x="0.0" y="35.5" width="100" height="36"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KTt-nn-85a">
<rect key="frame" x="0.0" y="39" width="99" height="1"/>
<color key="backgroundColor" systemColor="separatorColor"/>
<rect key="frame" x="0.0" y="35" width="100" height="1"/>
<color key="backgroundColor" systemColor="systemGray6Color"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="qQP-a0-Ud3"/>
</constraints>
</view>
<button opaque="NO" tag="1001" contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Klj-Kh-EXj">
<rect key="frame" x="0.0" y="0.0" width="99" height="39"/>
<button opaque="NO" tag="1001" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Klj-Kh-EXj">
<rect key="frame" x="10" y="0.0" width="90" height="35"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Français">
<color key="titleColor" systemColor="systemGrayColor"/>
<state key="normal" title=" Français" image="noselect">
<color key="titleColor" red="0.19438669089999999" green="0.17716249819999999" blue="0.19208657740000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<state key="selected" image="select">
<color key="titleColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......@@ -173,7 +194,7 @@
<viewLayoutGuide key="safeArea" id="uOl-Ar-jbg"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="Klj-Kh-EXj" firstAttribute="leading" secondItem="5Rk-KM-CWf" secondAttribute="leading" id="6Yi-gi-UpV"/>
<constraint firstItem="Klj-Kh-EXj" firstAttribute="leading" secondItem="5Rk-KM-CWf" secondAttribute="leading" constant="10" id="6Yi-gi-UpV"/>
<constraint firstItem="KTt-nn-85a" firstAttribute="top" secondItem="Klj-Kh-EXj" secondAttribute="bottom" id="6wO-ae-1E6"/>
<constraint firstItem="KTt-nn-85a" firstAttribute="leading" secondItem="5Rk-KM-CWf" secondAttribute="leading" id="En2-Cb-q6l"/>
<constraint firstAttribute="trailing" secondItem="KTt-nn-85a" secondAttribute="trailing" id="Iuf-E1-NV1"/>
......@@ -183,20 +204,21 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DXg-F9-hEj">
<rect key="frame" x="0.0" y="80" width="99" height="40"/>
<rect key="frame" x="0.0" y="71.5" width="100" height="35.5"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lkt-8D-r6n">
<rect key="frame" x="0.0" y="39" width="99" height="1"/>
<color key="backgroundColor" systemColor="separatorColor"/>
<rect key="frame" x="0.0" y="34.5" width="100" height="1"/>
<color key="backgroundColor" systemColor="systemGray6Color"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="Xcu-jN-x2v"/>
</constraints>
</view>
<button opaque="NO" tag="1002" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Fd7-qZ-tll">
<rect key="frame" x="0.0" y="0.0" width="99" height="39"/>
<button opaque="NO" tag="1002" contentMode="scaleToFill" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Fd7-qZ-tll">
<rect key="frame" x="10" y="0.0" width="90" height="34.5"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Español">
<color key="titleColor" systemColor="systemGrayColor"/>
<state key="normal" title=" Español" image="noselect">
<color key="titleColor" red="0.19438669089999999" green="0.17716249819999999" blue="0.19208657740000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<state key="selected" image="select">
<color key="titleColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......@@ -211,7 +233,7 @@
<constraint firstItem="Fd7-qZ-tll" firstAttribute="top" secondItem="DXg-F9-hEj" secondAttribute="top" id="fP5-IY-dje"/>
<constraint firstAttribute="trailing" secondItem="lkt-8D-r6n" secondAttribute="trailing" id="fkh-t2-cwO"/>
<constraint firstItem="lkt-8D-r6n" firstAttribute="leading" secondItem="DXg-F9-hEj" secondAttribute="leading" id="kfo-20-uSV"/>
<constraint firstItem="Fd7-qZ-tll" firstAttribute="leading" secondItem="DXg-F9-hEj" secondAttribute="leading" id="mPn-eQ-p07"/>
<constraint firstItem="Fd7-qZ-tll" firstAttribute="leading" secondItem="DXg-F9-hEj" secondAttribute="leading" constant="10" id="mPn-eQ-p07"/>
<constraint firstAttribute="trailing" secondItem="Fd7-qZ-tll" secondAttribute="trailing" id="unI-Xp-T3J"/>
<constraint firstAttribute="bottom" secondItem="lkt-8D-r6n" secondAttribute="bottom" id="wd0-LL-8l4"/>
<constraint firstItem="lkt-8D-r6n" firstAttribute="top" secondItem="Fd7-qZ-tll" secondAttribute="bottom" id="zcw-ja-2CN"/>
......@@ -219,31 +241,43 @@
</view>
</subviews>
<color key="backgroundColor" systemColor="systemGray3Color"/>
</stackView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="120" id="VrS-ly-Lq1"/>
<constraint firstAttribute="width" constant="99" id="XLo-vI-HND"/>
<constraint firstAttribute="width" constant="100" id="FsS-JP-F0y"/>
<constraint firstItem="PtM-de-bTT" firstAttribute="top" secondItem="d65-2N-aD0" secondAttribute="bottom" id="IjF-yB-6Rj"/>
<constraint firstAttribute="trailing" secondItem="PtM-de-bTT" secondAttribute="trailing" id="MgX-aL-x1h"/>
<constraint firstAttribute="bottom" secondItem="PtM-de-bTT" secondAttribute="bottom" id="STQ-Ea-mim"/>
<constraint firstItem="d65-2N-aD0" firstAttribute="top" secondItem="wyh-ZZ-B5n" secondAttribute="top" id="apO-13-f5S"/>
<constraint firstAttribute="height" constant="120" id="dCH-oB-kae"/>
<constraint firstItem="PtM-de-bTT" firstAttribute="leading" secondItem="wyh-ZZ-B5n" secondAttribute="leading" id="l3P-nK-5Hp"/>
</constraints>
</stackView>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="w7E-9g-1V7" firstAttribute="top" secondItem="mcT-68-7qe" secondAttribute="top" id="8u3-nL-lfb"/>
<constraint firstItem="mcT-68-7qe" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="C24-Bp-i4w"/>
<constraint firstItem="mcT-68-7qe" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="80" id="MxA-7a-iap"/>
<constraint firstItem="s7D-fE-2f9" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="16" id="OYj-Kc-2a3"/>
<constraint firstItem="eST-58-iE6" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="PNl-Pq-tHW"/>
<constraint firstItem="PtM-de-bTT" firstAttribute="top" secondItem="s7D-fE-2f9" secondAttribute="bottom" constant="4" id="PdM-oZ-QLE"/>
<constraint firstItem="Ul6-yG-7a1" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="3Gx-Ua-Pdc"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="wyh-ZZ-B5n" secondAttribute="trailing" constant="2" id="8Fr-PB-8eU"/>
<constraint firstItem="w7E-9g-1V7" firstAttribute="bottom" secondItem="xYn-g0-EZC" secondAttribute="bottom" id="8tJ-bL-QXk"/>
<constraint firstItem="d65-2N-aD0" firstAttribute="centerX" secondItem="s7D-fE-2f9" secondAttribute="centerX" id="EdN-AA-PdS"/>
<constraint firstItem="xYn-g0-EZC" firstAttribute="top" secondItem="8bC-Xf-vdC" secondAttribute="top" id="Gsl-L7-Aq7"/>
<constraint firstAttribute="trailing" secondItem="xYn-g0-EZC" secondAttribute="trailing" id="K45-YL-0d0"/>
<constraint firstItem="s7D-fE-2f9" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="OYj-Kc-2a3"/>
<constraint firstItem="w7E-9g-1V7" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="REr-Ze-Id0"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="PtM-de-bTT" secondAttribute="trailing" constant="2" id="dM2-FM-GAa"/>
<constraint firstItem="eST-58-iE6" firstAttribute="top" secondItem="w7E-9g-1V7" secondAttribute="bottom" constant="80" id="q1T-q3-Roh"/>
<constraint firstItem="Ul6-yG-7a1" firstAttribute="top" secondItem="xYn-g0-EZC" secondAttribute="bottom" id="ROx-Yy-5fK"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="Ul6-yG-7a1" secondAttribute="trailing" id="i9C-my-t9E"/>
<constraint firstItem="xYn-g0-EZC" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="k7e-sc-yFt"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="Ul6-yG-7a1" secondAttribute="bottom" id="mAd-oX-kjt"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="s7D-fE-2f9" secondAttribute="trailing" constant="16" id="qbc-Wx-uHX"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="mcT-68-7qe" secondAttribute="trailing" id="vUo-A3-tmL"/>
<constraint firstItem="wyh-ZZ-B5n" firstAttribute="top" secondItem="s7D-fE-2f9" secondAttribute="bottom" id="xDi-nb-7fV"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="6kL-xH-Sf2"/>
<connections>
<outlet property="panelV" destination="PtM-de-bTT" id="Yyw-J0-d9K"/>
<outlet property="popupView" destination="wyh-ZZ-B5n" id="d1k-8B-Qfn"/>
<outlet property="startBtn" destination="eST-58-iE6" id="xlz-KM-eCt"/>
<outlet property="stepL1" destination="1Ki-U8-ZmO" id="CCh-wm-aah"/>
<outlet property="stepL2" destination="gBm-Jn-Yuw" id="iD6-kJ-MLB"/>
......@@ -283,14 +317,142 @@
<constraint firstAttribute="trailing" secondItem="mY5-Ft-etR" secondAttribute="trailing" id="yMK-bg-9xW"/>
</constraints>
</view>
<view contentMode="scaleToFill" id="xXc-iC-nzq">
<rect key="frame" x="0.0" y="0.0" width="100" height="50"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="myS-Ei-8bt">
<rect key="frame" x="0.0" y="49" width="100" height="1"/>
<color key="backgroundColor" systemColor="separatorColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="beL-JI-QGi"/>
</constraints>
</view>
<button opaque="NO" tag="1002" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HFn-EA-czv">
<rect key="frame" x="0.0" y="0.0" width="100" height="49"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Español" image="noselect">
<color key="titleColor" systemColor="systemGrayColor"/>
</state>
<state key="selected" image="select">
<color key="titleColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="selectLanguage:" destination="BYZ-38-t0r" eventType="touchUpInside" id="ETJ-y2-ABN"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="j4G-G6-ABo"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="HFn-EA-czv" firstAttribute="top" secondItem="xXc-iC-nzq" secondAttribute="top" id="5W6-G6-5S5"/>
<constraint firstItem="myS-Ei-8bt" firstAttribute="leading" secondItem="xXc-iC-nzq" secondAttribute="leading" id="Qcb-qY-vrH"/>
<constraint firstAttribute="trailing" secondItem="HFn-EA-czv" secondAttribute="trailing" id="XDH-zc-mlF"/>
<constraint firstAttribute="trailing" secondItem="myS-Ei-8bt" secondAttribute="trailing" id="XK2-jY-oRB"/>
<constraint firstAttribute="bottom" secondItem="myS-Ei-8bt" secondAttribute="bottom" id="dsZ-ca-o3D"/>
<constraint firstItem="HFn-EA-czv" firstAttribute="leading" secondItem="xXc-iC-nzq" secondAttribute="leading" id="gZz-wl-mW3"/>
<constraint firstItem="myS-Ei-8bt" firstAttribute="top" secondItem="HFn-EA-czv" secondAttribute="bottom" id="mev-YL-gHX"/>
</constraints>
</view>
</objects>
<point key="canvasLocation" x="-601.44927536231887" y="-227.00892857142856"/>
</scene>
<!--CompleteVC-->
<scene sceneID="3Xf-aW-rpy">
<objects>
<viewController storyboardIdentifier="CompleteVC" id="kbc-T2-Z4j" customClass="CompleteVC" customModule="BreastFeedingDemo" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="z71-uq-A9X">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="message-entry-fullbg" translatesAutoresizingMaskIntoConstraints="NO" id="hnl-sp-Qoi">
<rect key="frame" x="0.0" y="0.0" width="414" height="896.5"/>
<constraints>
<constraint firstAttribute="width" secondItem="hnl-sp-Qoi" secondAttribute="height" multiplier="375:812" id="ujd-9I-Qnh"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Hhw-cG-Fcy">
<rect key="frame" x="24" y="348" width="366" height="200"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="28" translatesAutoresizingMaskIntoConstraints="NO" id="pqD-mn-5kx">
<rect key="frame" x="72" y="53" width="222" height="94"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" alignment="center" spacing="18" translatesAutoresizingMaskIntoConstraints="NO" id="MSB-gJ-7zl">
<rect key="frame" x="0.0" y="0.0" width="222" height="30"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="massage-complete-title-icon" translatesAutoresizingMaskIntoConstraints="NO" id="oXV-Gy-HSk">
<rect key="frame" x="0.0" y="0.0" width="45.5" height="30"/>
<constraints>
<constraint firstAttribute="width" secondItem="oXV-Gy-HSk" secondAttribute="height" multiplier="26:17" id="mOK-98-KKU"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Congratulations" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xvm-3y-De7">
<rect key="frame" x="63.5" y="2.5" width="158.5" height="25.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="21"/>
<color key="textColor" red="0.96192914249999995" green="0.52479732040000004" blue="0.52205568550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="30" id="6EZ-mW-xWf"/>
</constraints>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Nee-0V-QG4">
<rect key="frame" x="10.5" y="58" width="201" height="36"/>
<constraints>
<constraint firstAttribute="width" secondItem="Nee-0V-QG4" secondAttribute="height" multiplier="5.58974" id="k5B-7F-tUq"/>
<constraint firstAttribute="height" constant="36" id="tum-aY-BTv"/>
</constraints>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="OK">
<backgroundConfiguration key="background" image="light-btn-bg"/>
<color key="baseForegroundColor" red="0.9459709181" green="1" blue="0.97093926880000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</buttonConfiguration>
<connections>
<action selector="okAction:" destination="kbc-T2-Z4j" eventType="touchUpInside" id="ypq-jZ-upJ"/>
</connections>
</button>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="pqD-mn-5kx" firstAttribute="centerY" secondItem="Hhw-cG-Fcy" secondAttribute="centerY" id="BO4-bU-bT3"/>
<constraint firstAttribute="height" constant="200" id="OuT-3a-Tgc"/>
<constraint firstItem="pqD-mn-5kx" firstAttribute="centerX" secondItem="Hhw-cG-Fcy" secondAttribute="centerX" id="TFg-Pr-jul"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="rvn-PR-5Qx"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="hnl-sp-Qoi" firstAttribute="top" secondItem="z71-uq-A9X" secondAttribute="top" id="DNe-W1-cZR"/>
<constraint firstItem="hnl-sp-Qoi" firstAttribute="leading" secondItem="z71-uq-A9X" secondAttribute="leading" id="EgC-1A-OxC"/>
<constraint firstItem="Hhw-cG-Fcy" firstAttribute="centerY" secondItem="z71-uq-A9X" secondAttribute="centerY" id="Zal-ce-wei"/>
<constraint firstItem="rvn-PR-5Qx" firstAttribute="trailing" secondItem="Hhw-cG-Fcy" secondAttribute="trailing" constant="24" id="dKk-fg-IGs"/>
<constraint firstItem="Hhw-cG-Fcy" firstAttribute="leading" secondItem="rvn-PR-5Qx" secondAttribute="leading" constant="24" id="iJM-it-mEX"/>
<constraint firstAttribute="trailing" secondItem="hnl-sp-Qoi" secondAttribute="trailing" id="yEk-nD-oNm"/>
</constraints>
</view>
<connections>
<outlet property="btn" destination="Nee-0V-QG4" id="GXT-kj-AlK"/>
<outlet property="containerV" destination="Hhw-cG-Fcy" id="xQs-Gh-U7l"/>
<outlet property="titleL" destination="Xvm-3y-De7" id="Nc9-mi-oIm"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="kdj-KL-MQ2" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="603.07692307692309" y="-223.22274881516586"/>
</scene>
</scenes>
<resources>
<image name="icon_global" width="62" height="62"/>
<image name="introduceBg" width="1125" height="1714"/>
<image name="light-btn-bg" width="436" height="78"/>
<image name="massage-complete-title-icon" width="104" height="68"/>
<image name="message-entry-fullbg" width="1125" height="2436"/>
<image name="noselect" width="14" height="11"/>
<image name="popup" width="12" height="13"/>
<image name="select" width="14" height="11"/>
<image name="swiper1big_new" width="750" height="1028"/>
<systemColor name="separatorColor">
......@@ -302,6 +464,9 @@
<systemColor name="systemGray3Color">
<color red="0.7803921568627451" green="0.7803921568627451" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGray6Color">
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGrayColor">
<color red="0.55686274509803924" green="0.55686274509803924" blue="0.57647058823529407" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
......
//
// CompleteVC.swift
// BreastFeedingDemo
//
// Created by Jay Zhang on 2022/6/7.
//
import UIKit
class CompleteVC: UIViewController {
var vm: ViewModel?
@IBOutlet weak var containerV: UIView!
@IBOutlet weak var titleL: UILabel!
@IBOutlet weak var btn: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
overrideUserInterfaceStyle = .light
containerV.layer.cornerRadius = 8
titleL.text = vm?.congratulation
btn.setTitle(vm?.completeBtn, for: .normal)
}
@IBAction func okAction(_ sender: Any) {
dismiss(animated: true)
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
......@@ -17,6 +17,7 @@ class ViewController: UIViewController {
@IBOutlet weak var stepL3: UILabel!
@IBOutlet weak var startBtn: UIButton!
@IBOutlet weak var panelV: UIStackView!
@IBOutlet weak var popupView: UIView!
@IBOutlet weak var switchBtn: UIButton!
var methodChannel: FlutterMethodChannel?
lazy var vm: ViewModel = .init()
......@@ -27,14 +28,16 @@ class ViewController: UIViewController {
stepL2.text = vm.landingPageStep2
stepL3.text = vm.landingPageStep3
startBtn.setTitle(vm.landingPageStart, for: .normal)
panelV.layer.cornerRadius = 8
panelV.clipsToBounds = true
}
override func viewDidLoad() {
super.viewDidLoad()
overrideUserInterfaceStyle = .light
updateUI()
panelV.isHidden = true
popupView.isHidden = true
if let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine {
methodChannel = FlutterMethodChannel(name: "com.wmdigit.breastcoachai.native",
......@@ -47,6 +50,17 @@ class ViewController: UIViewController {
result(strongSelf.vm.flutterArguments)
case "teachingEnd":
strongSelf.presentedViewController?.dismiss(animated: true)
// ["totalDuration": 3, "reasonText": Concern about my personal privacy, "status": incomplete, "incompleteReasonCode": 2]
let argument: [String: Any] = try! JSONSerialization.jsonObject(with: (call.arguments as! String).data(using: .utf8)!) as! [String: Any]
let totalDuration: Int = argument["totalDuration"] as! Int
let reasonText: String = argument["reasonText"] as! String
let status: String = argument["status"] as! String
let incompleteReasonCode: Int = argument["incompleteReasonCode"] as! Int
if status == "incomplete" {
strongSelf.showError(reasonText)
} else if status == "complete" {
strongSelf.toCompleteVC()
}
default:
// Unrecognized method name
print("Unrecognized method name: \(call.method)")
......@@ -56,6 +70,24 @@ class ViewController: UIViewController {
}
}
func showError(_ text: String?) {
let alertVC = UIAlertController(title: text, message: nil, preferredStyle: .alert)
alertVC.addAction(UIAlertAction(title: "OK", style: .cancel))
present(alertVC, animated: true)
}
func toCompleteVC() {
let sb = UIStoryboard(name: "Main", bundle: nil)
let vc = sb.instantiateViewController(withIdentifier: "CompleteVC") as! CompleteVC
vc.vm = vm
vc.modalPresentationStyle = .fullScreen
present(vc, animated: true)
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + DispatchTimeInterval.seconds(3)) {
vc.dismiss(animated: true)
}
}
@IBAction func tapStart(_ sender: Any) {
if let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine {
let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil)
......@@ -64,10 +96,9 @@ class ViewController: UIViewController {
}
}
@IBAction func showPanel(_ sender: UIButton) {
sender.isSelected = !sender.isSelected
panelV.isHidden = !sender.isSelected
popupView.isHidden = !sender.isSelected
(panelV.viewWithTag(1000) as! UIButton).isSelected = false
(panelV.viewWithTag(1001) as! UIButton).isSelected = false
(panelV.viewWithTag(1002) as! UIButton).isSelected = false
......@@ -80,7 +111,6 @@ class ViewController: UIViewController {
case .español:
(panelV.viewWithTag(1002) as! UIButton).isSelected = true
}
}
@IBAction func selectLanguage(_ sender: UIButton) {
......@@ -96,9 +126,8 @@ class ViewController: UIViewController {
}
switchBtn.isSelected = false
panelV.isHidden = true
popupView.isHidden = true
updateUI()
}
}
......@@ -30,7 +30,7 @@ class ViewModel {
var landingPageStep3: String?
var landingPageStart: String?
var congratulation: String?
var ok: String?
var completeBtn: String?
var languagePack: [String: Any] {
let languageFile = language.rawValue.appending(".json")
......@@ -67,24 +67,24 @@ class ViewModel {
landingPageStep2 = "Keep one meter away from the camera, and fit your body into the guide line. Session starts in 5 seconds after you click \"Start Now\" button"
landingPageStep3 = "Camera permission is needed for AI coach. Your clothes will not affect the AI coach"
landingPageStart = "Start Now"
congratulation = "Congratulations"
ok = "OK"
congratulation = "Congratulations!"
completeBtn = "OK"
case .français:
landingPageTitle = "Coach AI en posture d'allaitement"
landingPageStep1 = "Placez votre appareil sur une surface stable"
landingPageStep2 = "Tenez-vous à un mètre de la caméra et placez votre corps dans la ligne de guidage. La session démarre dans 5 secondes après avoir cliqué sur le bouton \"Démarrer maintenant\""
landingPageStep3 = "L'autorisation de la caméra est nécessaire pour l'entraîneur AI. Vos vêtements n'affecteront pas l'entraîneur AI"
landingPageStart = "Commencez maintenant"
congratulation = ""
ok = "OK"
congratulation = "Toutes nos félicitations!"
completeBtn = "OK"
case .español:
landingPageTitle = "Asistente de AI de postura de lactancia"
landingPageStep1 = "Coloque su dispositivo en una superficie estable"
landingPageStep2 = "Manténgase a un metro de distancia de la cámara y coloque su cuerpo en la línea. La sesión comienza en 5 segundos después de hacer clic en el botón \"Comenzar ahora\""
landingPageStep3 = "Se necesita permiso para acceder a la cámara para el asistente de IA. Su ropa no afectará al asistente de IA"
landingPageStart = "Empezar ahora"
congratulation = ""
ok = "OK"
congratulation = "¡Felicidades!"
completeBtn = "DE ACUERDO"
}
}
}
......@@ -6,31 +6,31 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>App.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>App.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
......
......@@ -14,7 +14,7 @@
</data>
<key>Info.plist</key>
<data>
8VTMZ26+I9Ntfou2LfDLFinhFFw=
JLE9CRjp0tHIF4afU2WpnnKD9Vk=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -5,37 +5,37 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Toast.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>Toast.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
......
......@@ -18,7 +18,7 @@
</data>
<key>Info.plist</key>
<data>
m3IAYur/FYcN+4xVLEE2YSlmMds=
pTK4QI+U6C4p7JNHbTNBIMyowiA=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -62,7 +62,7 @@
</data>
<key>Info.plist</key>
<data>
+wtIdGn9ueYYeZ1k0koXYEWl0oI=
MJJJYdWq2u0eDfvzkatE3MBdWUs=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -14,7 +14,7 @@
</data>
<key>Info.plist</key>
<data>
1skX2LKHzWX9NcAjdXOwQKQAnGQ=
aYuc1r5lZaJrLjtukzrQ12WZIJk=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -5,35 +5,35 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-x86_64-simulator</string>
<key>LibraryPath</key>
<string>fluttertoast.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>fluttertoast.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>x86_64</string>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
......
......@@ -14,7 +14,7 @@
</data>
<key>Info.plist</key>
<data>
YClfx4ycku5lITB5lsFMxWlL7Yc=
xdPhun0PHUMcDJlktqPyPQi2UJw=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -5,36 +5,36 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>package_info_plus.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>package_info_plus.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
......
......@@ -14,7 +14,7 @@
</data>
<key>Info.plist</key>
<data>
4yjIMVxz7x24azzxYADyFsF4YJc=
sTd02hRrzgOCLFtWjl7wt0ZUJ3Q=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -6,31 +6,31 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>permission_handler_apple.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>permission_handler_apple.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
......
......@@ -90,7 +90,7 @@
</data>
<key>Info.plist</key>
<data>
x9+R2+ZelAIbnXM46hoqLhnv1lw=
QG12277Gfg7dQgySWlzoi5jN4uY=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -5,36 +5,36 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>shared_preferences_ios.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BitcodeSymbolMapsPath</key>
<string>BCSymbolMaps</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>shared_preferences_ios.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
......
......@@ -18,7 +18,7 @@
</data>
<key>Info.plist</key>
<data>
kJA71fZ/YvZSK8kPbXHS2EkkPyo=
vTrXq2pKFoZXrPte+UXWYA0J/dM=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -103,6 +103,7 @@
"Correct! Please keep the posture for about 20 seconds",
"errorTitle": "Error",
"keyErrorText": "Key Forbidden",
"originErrorText": "Not allowed by CORS"
"originErrorText": "Not allowed by CORS",
"noCameraErrorText": "Camera not detected",
}
}
......@@ -110,6 +110,7 @@
"Corriger! Veuillez garder la posture pendant environ 20 secondes",
"errorTitle": "Erreur",
"keyErrorText": "Interdire l'utilisation des clés",
"originErrorText": "Cors not allowed"
"originErrorText": "Cors not allowed",
"noCameraErrorText": "Caméra non détectée",
}
}
......@@ -109,6 +109,7 @@
"¡Correcto! Mantenga la postura durante unos 20 segundos",
"errorTitle": "Error",
"keyErrorText": "Desactivar la clave",
"originErrorText": "CORS no permite"
"originErrorText": "CORS no permite",
"noCameraErrorText": "Cámara no detectada",
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment