Commit 6f2c197d authored by jzhang's avatar jzhang

initial

parents
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
//
// AppDelegate.swift
// BreastFeedingDemo
//
// Created by Jay Zhang on 2022/6/2.
//
import UIKit
import Flutter
// Used to connect plugins (only if you have plugins with iOS platform code).
import FlutterPluginRegistrant
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
lazy var flutterEngine = FlutterEngine(name: "my flutter engine")
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Runs the default Dart entrypoint with a default Flutter route.
flutterEngine.run();
// Used to connect plugins (only if you have plugins with iOS platform code).
GeneratedPluginRegistrant.register(with: self.flutterEngine);
// Override point for customization after application launch.
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
</dict>
</plist>
//
// SceneDelegate.swift
// BreastFeedingDemo
//
// Created by Jay Zhang on 2022/6/2.
//
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
guard let _ = (scene as? UIWindowScene) else { return }
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
//
// ViewController.swift
// BreastFeedingDemo
//
// Created by Jay Zhang on 2022/6/2.
//
import UIKit
import Flutter
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Make a button to call the showFlutter function when pressed.
let button = UIButton(type:UIButton.ButtonType.custom)
button.addTarget(self, action: #selector(showFlutter), for: .touchUpInside)
button.setTitle("Show Flutter!", for: UIControl.State.normal)
button.frame = CGRect(x: 80.0, y: 210.0, width: 160.0, height: 40.0)
button.backgroundColor = UIColor.blue
self.view.addSubview(button)
// Do any additional setup after loading the view.
}
@objc func showFlutter() {
let flutterEngine = (UIApplication.shared.delegate as! AppDelegate).flutterEngine
let flutterViewController =
FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil)
present(flutterViewController, animated: true, completion: nil)
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>App.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>App.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
File added
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
</dict>
</plist>
{"assets/fonts/HelveticaWorld-Bold.ttf":["assets/fonts/HelveticaWorld-Bold.ttf"],"assets/fonts/HelveticaWorld-BoldItalic.ttf":["assets/fonts/HelveticaWorld-BoldItalic.ttf"],"assets/fonts/HelveticaWorld-Italic.ttf":["assets/fonts/HelveticaWorld-Italic.ttf"],"assets/fonts/HelveticaWorld-Regular.ttf":["assets/fonts/HelveticaWorld-Regular.ttf"],"assets/images/.DS_Store":["assets/images/.DS_Store","assets/images/gesture/.DS_Store"],"assets/images/babylie.png":["assets/images/babylie.png"],"assets/images/babyliestraight.png":["assets/images/babyliestraight.png"],"assets/images/babysit.png":["assets/images/babysit.png"],"assets/images/babysitRight.png":["assets/images/babysitRight.png"],"assets/images/babysitRightstraight.png":["assets/images/babysitRightstraight.png"],"assets/images/babysitstraight.png":["assets/images/babysitstraight.png"],"assets/images/checkbox-checked.png":["assets/images/checkbox-checked.png"],"assets/images/checkbox.png":["assets/images/checkbox.png"],"assets/images/gesture/.DS_Store":["assets/images/gesture/.DS_Store"],"assets/images/gesture/bottomBg.png":["assets/images/gesture/bottomBg.png"],"assets/images/gesture/brand.png":["assets/images/gesture/brand.png"],"assets/images/gesture/changeCamera.png":["assets/images/gesture/changeCamera.png"],"assets/images/gesture/close.png":["assets/images/gesture/close.png"],"assets/images/gesture/gestureLogo.png":["assets/images/gesture/gestureLogo.png"],"assets/images/gesture/middle.png":["assets/images/gesture/middle.png"],"assets/images/gesture/noRecord.png":["assets/images/gesture/noRecord.png"],"assets/images/gesture/pinkMoon.png":["assets/images/gesture/pinkMoon.png"],"assets/images/gesture/quit.png":["assets/images/gesture/quit.png"],"assets/images/gesture/recordPoint.png":["assets/images/gesture/recordPoint.png"],"assets/images/gesture/recording.png":["assets/images/gesture/recording.png"],"assets/images/gesture/ruan/icon-camera.png":["assets/images/gesture/ruan/icon-camera.png"],"assets/images/gesture/ruan/noCameraPlay.png":["assets/images/gesture/ruan/noCameraPlay.png"],"assets/images/gesture/ruan/noCameraStop.png":["assets/images/gesture/ruan/noCameraStop.png"],"assets/images/gesture/ruan/openCamera.png":["assets/images/gesture/ruan/openCamera.png"],"assets/images/gesture/ruan/salesImage.png":["assets/images/gesture/ruan/salesImage.png"],"assets/images/gesture/ruan/swiper1big_new.png":["assets/images/gesture/ruan/swiper1big_new.png"],"assets/images/gesture/ruan/swiper1small_new.png":["assets/images/gesture/ruan/swiper1small_new.png"],"assets/images/gesture/ruan/swiper2big_new.png":["assets/images/gesture/ruan/swiper2big_new.png"],"assets/images/gesture/ruan/swiper2small_new.png":["assets/images/gesture/ruan/swiper2small_new.png"],"assets/images/gesture/ruan/swiper3big_new.png":["assets/images/gesture/ruan/swiper3big_new.png"],"assets/images/gesture/ruan/swiper3small_new.png":["assets/images/gesture/ruan/swiper3small_new.png"],"assets/images/gesture/ruan/swiper4big_new.png":["assets/images/gesture/ruan/swiper4big_new.png"],"assets/images/gesture/ruan/swiper4small_new.png":["assets/images/gesture/ruan/swiper4small_new.png"],"assets/images/gesture/stop.png":["assets/images/gesture/stop.png"],"assets/images/gesture/swiper3big.png":["assets/images/gesture/swiper3big.png"],"assets/images/gesture/topBg.png":["assets/images/gesture/topBg.png"],"assets/images/glass-mask.png":["assets/images/glass-mask.png"],"assets/images/icon_error.png":["assets/images/icon_error.png"],"assets/images/light-btn-bg.png":["assets/images/light-btn-bg.png"],"assets/images/massage-video-poster.jpg":["assets/images/massage-video-poster.jpg"],"assets/images/massageWord/word_01.png":["assets/images/massageWord/word_01.png"],"assets/images/massageWord/word_03.png":["assets/images/massageWord/word_03.png"],"assets/images/massageWord/word_05.png":["assets/images/massageWord/word_05.png"],"assets/images/massageWord/word_07.png":["assets/images/massageWord/word_07.png"],"assets/images/massageWord/word_09.png":["assets/images/massageWord/word_09.png"],"assets/images/massageWord/word_10.png":["assets/images/massageWord/word_10.png"],"assets/images/massageWord/word_11.png":["assets/images/massageWord/word_11.png"],"assets/images/massageWord/word_12.png":["assets/images/massageWord/word_12.png"],"assets/images/massageWord/word_14.png":["assets/images/massageWord/word_14.png"],"assets/images/massageWord/word_16.png":["assets/images/massageWord/word_16.png"],"assets/images/massageWord/word_18.png":["assets/images/massageWord/word_18.png"],"assets/images/massageWord/word_20.png":["assets/images/massageWord/word_20.png"],"assets/images/massageWord/word_21.png":["assets/images/massageWord/word_21.png"],"assets/images/massageWord/word_22.png":["assets/images/massageWord/word_22.png"],"assets/images/mini-btn-bg.png":["assets/images/mini-btn-bg.png"],"assets/images/mini-point.png":["assets/images/mini-point.png"],"assets/images/summary/summaryBg.png":["assets/images/summary/summaryBg.png"],"assets/images/summary/summaryWireframe.png":["assets/images/summary/summaryWireframe.png"],"assets/images/summary/summaryWireframeLie.png":["assets/images/summary/summaryWireframeLie.png"],"assets/images/summary/summaryleftbottom.png":["assets/images/summary/summaryleftbottom.png"],"assets/images/summary/summarylinelefttop.png":["assets/images/summary/summarylinelefttop.png"],"assets/images/summary/summarylinelie1.png":["assets/images/summary/summarylinelie1.png"],"assets/images/summary/summarylinelie2.png":["assets/images/summary/summarylinelie2.png"],"assets/images/summary/summarylinelie3.heic":["assets/images/summary/summarylinelie3.heic"],"assets/images/summary/summarylinelie3.png":["assets/images/summary/summarylinelie3.png"],"assets/images/summary/summarylinelie4.png":["assets/images/summary/summarylinelie4.png"],"assets/images/summary/summarylinelie5.heic":["assets/images/summary/summarylinelie5.heic"],"assets/images/summary/summarylinelie5.png":["assets/images/summary/summarylinelie5.png"],"assets/images/summary/summaryrightbottom.png":["assets/images/summary/summaryrightbottom.png"],"assets/images/summary/summaryrighttop.png":["assets/images/summary/summaryrighttop.png"],"assets/images/tabbar-my-selected.png":["assets/images/tabbar-my-selected.png"],"assets/images/tabbar-my.png":["assets/images/tabbar-my.png"],"assets/images/tabbar-sales.png":["assets/images/tabbar-sales.png"],"assets/images/tabbar-study-selected.png":["assets/images/tabbar-study-selected.png"],"assets/images/tabbar-study.png":["assets/images/tabbar-study.png"],"assets/images/wireframe.png":["assets/images/wireframe.png"],"assets/images/wireframeLie.png":["assets/images/wireframeLie.png"],"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"],"packages/fluttertoast/assets/toastify.css":["packages/fluttertoast/assets/toastify.css"],"packages/fluttertoast/assets/toastify.js":["packages/fluttertoast/assets/toastify.js"]}
\ No newline at end of file
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"HelveticaWorld","fonts":[{"weight":400,"asset":"assets/fonts/HelveticaWorld-Regular.ttf"},{"weight":700,"asset":"assets/fonts/HelveticaWorld-Bold.ttf"},{"weight":700,"style":"italic","asset":"assets/fonts/HelveticaWorld-BoldItalic.ttf"},{"weight":400,"style":"italic","asset":"assets/fonts/HelveticaWorld-Italic.ttf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}]
\ No newline at end of file
File added
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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