Repository: MarcioQuimbundo/libra_merchant_desktop_flutter Branch: master Commit: a9adaf3b7038 Files: 144 Total size: 253.0 KB Directory structure: gitextract_ex9rwr4v/ ├── README.md ├── merchant_pos_desktop_flutter/ │ ├── .gitignore │ ├── .metadata │ ├── README.md │ ├── android/ │ │ ├── .gitignore │ │ ├── app/ │ │ │ ├── build.gradle │ │ │ └── src/ │ │ │ ├── debug/ │ │ │ │ └── AndroidManifest.xml │ │ │ ├── main/ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── kotlin/ │ │ │ │ │ └── com/ │ │ │ │ │ └── example/ │ │ │ │ │ └── merchant_pos_desktop_flutter/ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── res/ │ │ │ │ ├── drawable/ │ │ │ │ │ └── launch_background.xml │ │ │ │ └── values/ │ │ │ │ └── styles.xml │ │ │ └── profile/ │ │ │ └── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── gradle/ │ │ │ └── wrapper/ │ │ │ └── gradle-wrapper.properties │ │ ├── gradle.properties │ │ └── settings.gradle │ ├── ios/ │ │ ├── .gitignore │ │ ├── Flutter/ │ │ │ ├── AppFrameworkInfo.plist │ │ │ ├── Debug.xcconfig │ │ │ └── Release.xcconfig │ │ ├── Runner/ │ │ │ ├── AppDelegate.swift │ │ │ ├── Assets.xcassets/ │ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── LaunchImage.imageset/ │ │ │ │ ├── Contents.json │ │ │ │ └── README.md │ │ │ ├── Base.lproj/ │ │ │ │ ├── LaunchScreen.storyboard │ │ │ │ └── Main.storyboard │ │ │ ├── Info.plist │ │ │ └── Runner-Bridging-Header.h │ │ ├── Runner.xcodeproj/ │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace/ │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata/ │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcshareddata/ │ │ │ └── xcschemes/ │ │ │ └── Runner.xcscheme │ │ └── Runner.xcworkspace/ │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata/ │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings │ ├── lib/ │ │ ├── main.dart │ │ └── src/ │ │ ├── const/ │ │ │ └── global_const.dart │ │ └── ui/ │ │ └── home/ │ │ ├── home_page.dart │ │ └── widgets/ │ │ ├── menu_list_tile.dart │ │ ├── product_box.dart │ │ └── product_cart_tile.dart │ ├── pubspec.yaml │ └── windows/ │ ├── .gitignore │ ├── AppConfiguration.props │ ├── FlutterBuild.vcxproj │ ├── Runner.sln │ ├── Runner.vcxproj │ ├── Runner.vcxproj.filters │ ├── flutter/ │ │ ├── .template_version │ │ ├── GeneratedPlugins.props │ │ ├── generated_plugin_registrant.cc │ │ └── generated_plugin_registrant.h │ ├── runner/ │ │ ├── Runner.rc │ │ ├── flutter_window.cpp │ │ ├── flutter_window.h │ │ ├── main.cpp │ │ ├── resource.h │ │ ├── run_loop.cpp │ │ ├── run_loop.h │ │ ├── runner.exe.manifest │ │ ├── utils.cpp │ │ ├── utils.h │ │ ├── win32_window.cpp │ │ ├── win32_window.h │ │ ├── window_configuration.cpp │ │ └── window_configuration.h │ └── scripts/ │ ├── bundle_assets_and_deps.bat │ └── prepare_dependencies.bat └── zoom_desktop_flutter/ ├── .gitignore ├── .metadata ├── README.md ├── android/ │ ├── .gitignore │ ├── app/ │ │ ├── build.gradle │ │ └── src/ │ │ ├── debug/ │ │ │ └── AndroidManifest.xml │ │ ├── main/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin/ │ │ │ │ └── com/ │ │ │ │ └── example/ │ │ │ │ └── zoom_desktop_flutter/ │ │ │ │ └── MainActivity.kt │ │ │ └── res/ │ │ │ ├── drawable/ │ │ │ │ └── launch_background.xml │ │ │ └── values/ │ │ │ └── styles.xml │ │ └── profile/ │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── gradle/ │ │ └── wrapper/ │ │ └── gradle-wrapper.properties │ ├── gradle.properties │ └── settings.gradle ├── ios/ │ ├── .gitignore │ ├── Flutter/ │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Runner/ │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets/ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ └── Contents.json │ │ │ └── LaunchImage.imageset/ │ │ │ ├── Contents.json │ │ │ └── README.md │ │ ├── Base.lproj/ │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── Runner-Bridging-Header.h │ ├── Runner.xcodeproj/ │ │ ├── project.pbxproj │ │ ├── project.xcworkspace/ │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata/ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcshareddata/ │ │ └── xcschemes/ │ │ └── Runner.xcscheme │ └── Runner.xcworkspace/ │ ├── contents.xcworkspacedata │ └── xcshareddata/ │ ├── IDEWorkspaceChecks.plist │ └── WorkspaceSettings.xcsettings ├── lib/ │ ├── main.dart │ └── src/ │ ├── cons/ │ │ └── global_const.dart │ ├── data/ │ │ └── reaction_video_data.dart │ └── ui/ │ └── home/ │ ├── home_page.dart │ └── widgets/ │ ├── bottom_video_clipper.dart │ ├── menu_dark_tile.dart │ ├── notification_top_menu.dart │ ├── photo_user_meeting.dart │ ├── profile_photo.dart │ ├── sprite_painter.dart │ ├── user_photo_border_gradient.dart │ └── workspace_selection_card.dart ├── pubspec.yaml ├── test/ │ └── widget_test.dart └── windows/ ├── .gitignore ├── AppConfiguration.props ├── FlutterBuild.vcxproj ├── Runner.sln ├── Runner.vcxproj ├── Runner.vcxproj.filters ├── flutter/ │ ├── .template_version │ ├── GeneratedPlugins.props │ ├── generated_plugin_registrant.cc │ └── generated_plugin_registrant.h ├── runner/ │ ├── Runner.rc │ ├── flutter_window.cpp │ ├── flutter_window.h │ ├── main.cpp │ ├── resource.h │ ├── run_loop.cpp │ ├── run_loop.h │ ├── runner.exe.manifest │ ├── utils.cpp │ ├── utils.h │ ├── win32_window.cpp │ ├── win32_window.h │ ├── window_configuration.cpp │ └── window_configuration.h └── scripts/ ├── bundle_assets_and_deps.bat └── prepare_dependencies.bat ================================================ FILE CONTENTS ================================================ ================================================ FILE: README.md ================================================ # My Flutter Desktop Challenges ### Show some :heart: and star the repo to support the project or :smile:[Follow Me](https://github.com/marcioquimbundo). [![GitHub stars](https://img.shields.io/github/stars/marcioquimbundo/flutter_desktop_challenges.svg?style=social&label=Star)](https://github.com/MarcioQuimbundo/flutter_desktop_challenges) [![GitHub forks](https://img.shields.io/github/forks/marcioquimbundo/flutter_desktop_challenges.svg?style=social&label=Fork)](https://github.com/MarcioQuimbundo/flutter_desktop_challenges/fork) [![GitHub watchers](https://img.shields.io/github/watchers/marcioquimbundo/flutter_desktop_challenges.svg?style=social&label=Watch)](https://github.com/MarcioQuimbundo/flutter_desktop_challenges) [![GitHub followers](https://img.shields.io/github/followers/marcioquimbundo.svg?style=social&label=Follow)](https://github.com/MarcioQuimbundo/) [![Twitter Follow](https://img.shields.io/twitter/follow/marcioquimbundo?style=social)](https://twitter.com/marcioquimbundo) ## Challenges: ================================================ FILE: merchant_pos_desktop_flutter/.gitignore ================================================ # Miscellaneous *.class *.log *.pyc *.swp .DS_Store .atom/ .buildlog/ .history .svn/ # IntelliJ related *.iml *.ipr *.iws .idea/ # The .vscode folder contains launch configuration and tasks you configure in # VS Code which you may wish to be included in version control, so this line # is commented out by default. #.vscode/ # Flutter/Dart/Pub related **/doc/api/ **/ios/Flutter/.last_build_id .dart_tool/ .flutter-plugins .flutter-plugins-dependencies .packages .pub-cache/ .pub/ /build/ # Web related lib/generated_plugin_registrant.dart # Symbolication related app.*.symbols # Obfuscation related app.*.map.json # Exceptions to above rules. !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages ================================================ FILE: merchant_pos_desktop_flutter/.metadata ================================================ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # # This file should be version controlled and should not be manually edited. version: revision: 15a28159bcf4b3db13411cbc8d9b5fc51adc0a93 channel: master project_type: app ================================================ FILE: merchant_pos_desktop_flutter/README.md ================================================ # merchant_pos_desktop_flutter A new Flutter project. ## Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project: - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) For help getting started with Flutter, view our [online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference. ================================================ FILE: merchant_pos_desktop_flutter/android/.gitignore ================================================ gradle-wrapper.jar /.gradle /captures/ /gradlew /gradlew.bat /local.properties GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app key.properties ================================================ FILE: merchant_pos_desktop_flutter/android/app/build.gradle ================================================ def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") } def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' } def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 28 sourceSets { main.java.srcDirs += 'src/main/kotlin' } lintOptions { disable 'InvalidPackage' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.merchant_pos_desktop_flutter" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug } } } flutter { source '../..' } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } ================================================ FILE: merchant_pos_desktop_flutter/android/app/src/debug/AndroidManifest.xml ================================================ ================================================ FILE: merchant_pos_desktop_flutter/android/app/src/main/AndroidManifest.xml ================================================ ================================================ FILE: merchant_pos_desktop_flutter/android/app/src/main/kotlin/com/example/merchant_pos_desktop_flutter/MainActivity.kt ================================================ package com.example.merchant_pos_desktop_flutter import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { } ================================================ FILE: merchant_pos_desktop_flutter/android/app/src/main/res/drawable/launch_background.xml ================================================ ================================================ FILE: merchant_pos_desktop_flutter/android/app/src/main/res/values/styles.xml ================================================ ================================================ FILE: merchant_pos_desktop_flutter/android/app/src/profile/AndroidManifest.xml ================================================ ================================================ FILE: merchant_pos_desktop_flutter/android/build.gradle ================================================ buildscript { ext.kotlin_version = '1.3.50' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() jcenter() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } task clean(type: Delete) { delete rootProject.buildDir } ================================================ FILE: merchant_pos_desktop_flutter/android/gradle/wrapper/gradle-wrapper.properties ================================================ #Fri Jun 23 08:50:38 CEST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip ================================================ FILE: merchant_pos_desktop_flutter/android/gradle.properties ================================================ org.gradle.jvmargs=-Xmx1536M android.enableR8=true android.useAndroidX=true android.enableJetifier=true ================================================ FILE: merchant_pos_desktop_flutter/android/settings.gradle ================================================ include ':app' def localPropertiesFile = new File(rootProject.projectDir, "local.properties") def properties = new Properties() assert localPropertiesFile.exists() localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } def flutterSdkPath = properties.getProperty("flutter.sdk") assert flutterSdkPath != null, "flutter.sdk not set in local.properties" apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" ================================================ FILE: merchant_pos_desktop_flutter/ios/.gitignore ================================================ *.mode1v3 *.mode2v3 *.moved-aside *.pbxuser *.perspectivev3 **/*sync/ .sconsign.dblite .tags* **/.vagrant/ **/DerivedData/ Icon? **/Pods/ **/.symlinks/ profile xcuserdata **/.generated/ Flutter/App.framework Flutter/Flutter.framework Flutter/Flutter.podspec Flutter/Generated.xcconfig Flutter/app.flx Flutter/app.zip Flutter/flutter_assets/ Flutter/flutter_export_environment.sh ServiceDefinitions.json Runner/GeneratedPluginRegistrant.* # Exceptions to above rules. !default.mode1v3 !default.mode2v3 !default.pbxuser !default.perspectivev3 ================================================ FILE: merchant_pos_desktop_flutter/ios/Flutter/AppFrameworkInfo.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable App CFBundleIdentifier io.flutter.flutter.app CFBundleInfoDictionaryVersion 6.0 CFBundleName App CFBundlePackageType FMWK CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1.0 MinimumOSVersion 8.0 ================================================ FILE: merchant_pos_desktop_flutter/ios/Flutter/Debug.xcconfig ================================================ #include "Generated.xcconfig" ================================================ FILE: merchant_pos_desktop_flutter/ios/Flutter/Release.xcconfig ================================================ #include "Generated.xcconfig" ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner/AppDelegate.swift ================================================ import UIKit import Flutter @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images" : [ { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-App-20x20@2x.png", "scale" : "2x" }, { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-App-20x20@3x.png", "scale" : "3x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@1x.png", "scale" : "1x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@3x.png", "scale" : "3x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-App-40x40@2x.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-App-40x40@3x.png", "scale" : "3x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-App-60x60@2x.png", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-App-60x60@3x.png", "scale" : "3x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "Icon-App-20x20@1x.png", "scale" : "1x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "Icon-App-20x20@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-App-29x29@1x.png", "scale" : "1x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "Icon-App-40x40@1x.png", "scale" : "1x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "Icon-App-40x40@2x.png", "scale" : "2x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "Icon-App-76x76@1x.png", "scale" : "1x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "Icon-App-76x76@2x.png", "scale" : "2x" }, { "size" : "83.5x83.5", "idiom" : "ipad", "filename" : "Icon-App-83.5x83.5@2x.png", "scale" : "2x" }, { "size" : "1024x1024", "idiom" : "ios-marketing", "filename" : "Icon-App-1024x1024@1x.png", "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json ================================================ { "images" : [ { "idiom" : "universal", "filename" : "LaunchImage.png", "scale" : "1x" }, { "idiom" : "universal", "filename" : "LaunchImage@2x.png", "scale" : "2x" }, { "idiom" : "universal", "filename" : "LaunchImage@3x.png", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md ================================================ # Launch Screen Assets You can customize the launch screen with your own desired assets by replacing the image files in this directory. You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner/Base.lproj/LaunchScreen.storyboard ================================================ ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner/Base.lproj/Main.storyboard ================================================ ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName merchant_pos_desktop_flutter CFBundlePackageType APPL CFBundleShortVersionString $(FLUTTER_BUILD_NAME) CFBundleSignature ???? CFBundleVersion $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner/Runner-Bridging-Header.h ================================================ #import "GeneratedPluginRegistrant.h" ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ 9705A1C41CF9048500538489 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 9740EEB21CF90195004384FC /* Debug.xcconfig */, 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 9740EEB31CF90195004384FC /* Generated.xcconfig */, ); name = Flutter; sourceTree = ""; }; 97C146E51CF9000F007C117D = { isa = PBXGroup; children = ( 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, ); sourceTree = ""; }; 97C146EF1CF9000F007C117D /* Products */ = { isa = PBXGroup; children = ( 97C146EE1CF9000F007C117D /* Runner.app */, ); name = Products; sourceTree = ""; }; 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( 97C146FA1CF9000F007C117D /* Main.storyboard */, 97C146FD1CF9000F007C117D /* Assets.xcassets */, 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 97C147021CF9000F007C117D /* Info.plist */, 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, ); path = Runner; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ 97C146ED1CF9000F007C117D /* Runner */ = { isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, ); buildRules = ( ); dependencies = ( ); name = Runner; productName = Runner; productReference = 97C146EE1CF9000F007C117D /* Runner.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 1020; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; LastSwiftMigration = 1100; }; }; }; buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; compatibilityVersion = "Xcode 9.3"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = 97C146E51CF9000F007C117D; productRefGroup = 97C146EF1CF9000F007C117D /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( 97C146ED1CF9000F007C117D /* Runner */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ 97C146EC1CF9000F007C117D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Thin Binary"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Run Script"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 97C146EA1CF9000F007C117D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ 97C146FA1CF9000F007C117D /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( 97C146FB1CF9000F007C117D /* Base */, ); name = Main.storyboard; sourceTree = ""; }; 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( 97C147001CF9000F007C117D /* Base */, ); name = LaunchScreen.storyboard; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ 249021D3217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; name = Profile; }; 249021D4217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.merchantPosDesktopFlutter; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Profile; }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; 97C147041CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; name = Release; }; 97C147061CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.merchantPosDesktopFlutter; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; }; 97C147071CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.merchantPosDesktopFlutter; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( 97C147031CF9000F007C117D /* Debug */, 97C147041CF9000F007C117D /* Release */, 249021D3217E4FDB00AE95B9 /* Profile */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( 97C147061CF9000F007C117D /* Debug */, 97C147071CF9000F007C117D /* Release */, 249021D4217E4FDB00AE95B9 /* Profile */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = 97C146E61CF9000F007C117D /* Project object */; } ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings ================================================ PreviewsEnabled ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme ================================================ ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: merchant_pos_desktop_flutter/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings ================================================ PreviewsEnabled ================================================ FILE: merchant_pos_desktop_flutter/lib/main.dart ================================================ import 'package:flutter/material.dart'; import 'src/ui/home/home_page.dart'; void main() { runApp(MaterialApp( title: "Flutter Libra Coffe", home: HomePage(), )); } ================================================ FILE: merchant_pos_desktop_flutter/lib/src/const/global_const.dart ================================================ import 'package:flutter/material.dart'; class GlobalConst { static Color primaryColor = Color(0xFF9013FE); static Color secondColor = Color(0xFF512da8); } ================================================ FILE: merchant_pos_desktop_flutter/lib/src/ui/home/home_page.dart ================================================ import 'package:flutter/material.dart'; import 'package:libra_coffe_flutter/src/const/global_const.dart'; import 'package:libra_coffe_flutter/src/ui/home/widgets/menu_list_tile.dart'; import 'package:libra_coffe_flutter/src/ui/home/widgets/product_box.dart'; import 'package:libra_coffe_flutter/src/ui/home/widgets/product_cart_tile.dart'; class HomePage extends StatelessWidget { const HomePage({Key key}) : super(key: key); @override Widget build(BuildContext context) { Size deviceSize = MediaQuery.of(context).size; return Scaffold( body: SingleChildScrollView( child: Container( decoration: BoxDecoration( image: DecorationImage( image: NetworkImage( "https://www.libracoffee.io/bg.jpg", ), fit: BoxFit.cover)), child: Row( children: [ Container( width: 225, height: deviceSize.height, decoration: BoxDecoration( color: Colors.white, boxShadow: [ BoxShadow( color: Colors.black54, blurRadius: 15.0, offset: Offset(0.0, 0.75)) ], ), child: Column( children: [ Container( height: 150, margin: EdgeInsets.all(10), decoration: BoxDecoration( border: Border( bottom: BorderSide(color: Colors.grey), ), ), child: Column( crossAxisAlignment: CrossAxisAlignment.end, children: [ SizedBox( height: 15, ), Center( child: Image.network( "https://www.libracoffee.io/img/app-logo.18b670b8.jpg", width: 150, ), ), Image.network( "https://www.libracoffee.io/img/logo.f597cc3f.png", width: 130, ), ], ), ), MenuListTile( title: "Coffe", active: true, image: "https://www.libracoffee.io/img/coffee.3fa69bf4.svg", ), MenuListTile( title: "Breakfast", active: false, image: "https://www.libracoffee.io/img/breakfast.7ffe88f4.svg", ), MenuListTile( title: "Snack", active: false, image: "https://www.libracoffee.io/img/munchies.f0cf6706.svg", ), MenuListTile( title: "Fast food", active: false, image: "https://www.libracoffee.io/img/sandwiches.8a4f25d0.svg", ), MenuListTile( title: "Special Drinks", active: false, image: "https://www.libracoffee.io/img/special-drinks.6151c892.svg", ), Spacer(), Container( height: 130, padding: EdgeInsets.all(10), decoration: BoxDecoration(color: Color(0xFFFAFAFA)), child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ SizedBox( height: 15, ), Center( child: Image.network( "https://www.flutter.dev//assets/flutter-lockup-c13da9c9303e26b8d5fc208d2a1fa20c1ef47eb021ecadf27046dea04c0cebf6.png", width: 150, ), ), SizedBox( height: 10, ), Text("Powered by Flutter Angola"), Text("Dev: Márcio Quimbundo"), ], ), ), ], ), ), Expanded( child: Container( height: deviceSize.height, child: Row( children: [ Flexible( flex: 3, child: GridView.count( padding: EdgeInsets.all(10), crossAxisCount: 3, childAspectRatio: .95, children: [ ProductBox( title: "Expresso", description: "Blue Ridge Blend", image: "assets/images/espresso.51d468cc.jpg", price: 4.35), ProductBox( title: "Choco Frappe", description: "Locally Roasted", image: "assets/images/choco_frappe.b233b3b8.jpg", price: 7.00), ProductBox( title: "Caramel Frappe", description: "Decaf Colombia", image: "assets/images/caramel_frappe.ce2f41eb.jpg", price: 7.50), ProductBox( title: "Kick Frappe", description: "Locally Roasted", image: "assets/images/kick_frappe.1e205836.jpg", price: 7.50), ProductBox( title: "Cappuccino", description: "Decaf Colombia", image: "assets/images/cappuccino.2667eed1.jpg", price: 4.50), ], )), Flexible( flex: 2, child: Container( margin: EdgeInsets.only(right: 60, top: 25), child: Column( children: [ Container( height: 500, width: double.infinity, decoration: BoxDecoration( color: Color(0xFFF1F1F1), boxShadow: [ BoxShadow( color: Colors.black54, blurRadius: 15.0, offset: Offset(0.0, 0.75)) ], borderRadius: BorderRadius.all(Radius.circular(2)), ), child: Column( children: [ Container( padding: EdgeInsets.all(15), child: Text( "Checkout", style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 20), ), ), Container( padding: EdgeInsets.all(15), color: Color(0xFFD1D1D1), child: Row( children: [ Expanded( child: Text( "Name", style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 14), ), ), Spacer(), Text( "Qty", style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 14), ), SizedBox( width: 40, ), Text( "Price", style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 14), ), SizedBox( width: 80, ), ], ), ), Expanded( child: ListView( shrinkWrap: true, children: [ ProductCartTile( product: "Espresso", qty: 1, price: 4.35, ), ProductCartTile( product: "Choco Frappe", qty: 1, price: 7.00, ), ProductCartTile( product: "Caramel Frappe", qty: 1, price: 7.50, ), ], ), ), Spacer(), Container( padding: EdgeInsets.only(bottom: 25), child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Text( "Total", style: TextStyle( color: GlobalConst.secondColor, fontWeight: FontWeight.normal, fontSize: 22), ), SizedBox( width: 40, ), Row( children: [ Container( margin: EdgeInsets.only(top: 4), child: Image.network( "https://www.libracoffee.io/img/icon-libra@3x.c0fc5777.png", width: 25, ), ), SizedBox( width: 10, ), Text( "18.85", style: TextStyle( color: GlobalConst .secondColor, fontWeight: FontWeight.normal, fontSize: 22), ), ], ), ], ), ), ], ), ), SizedBox( height: 20, ), Container( height: 70, width: double.infinity, decoration: BoxDecoration( color: GlobalConst.primaryColor, boxShadow: [ BoxShadow( color: Colors.black54, blurRadius: 15.0, offset: Offset(0.0, 0.75)) ], borderRadius: BorderRadius.all(Radius.circular(2)), ), child: Center( child: Text( "PAY (18.85)", style: TextStyle( color: Colors.white, fontWeight: FontWeight.w600, fontSize: 20), )), ), ], ), )) ], ), ), ) ], ), ), ), ); } } ================================================ FILE: merchant_pos_desktop_flutter/lib/src/ui/home/widgets/menu_list_tile.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:libra_coffe_flutter/src/const/global_const.dart'; class MenuListTile extends StatelessWidget { final String image; final String title; final bool active; MenuListTile({this.image, this.title, this.active}); @override Widget build(BuildContext context) { return Container( margin: EdgeInsets.only(bottom: 10), child: Row( children: [ SizedBox( width: 20, ), SvgPicture.network(image), SizedBox( width: 10, ), Container( padding: EdgeInsets.only(bottom: 5, right: 20), margin: EdgeInsets.only(top: 30), decoration: BoxDecoration( border: active ? Border( bottom: BorderSide( color: GlobalConst.primaryColor, width: 5)) : Border()), child: Text( title, textAlign: TextAlign.left, style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 20), ), ), ], ), ); } } ================================================ FILE: merchant_pos_desktop_flutter/lib/src/ui/home/widgets/product_box.dart ================================================ import 'package:flutter/material.dart'; import 'package:libra_coffe_flutter/src/const/global_const.dart'; class ProductBox extends StatelessWidget { final String title; final String description; final double price; final String image; ProductBox({this.title, this.description, this.price, this.image}); @override Widget build(BuildContext context) { return Container( margin: EdgeInsets.all(10), padding: EdgeInsets.all(10), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(2)), boxShadow: [ BoxShadow( color: Colors.black54, blurRadius: 15.0, offset: Offset(0.0, 0.75)) ]), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( title, style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 20), ), Text( description, style: TextStyle( color: Colors.black45, fontWeight: FontWeight.w600, fontSize: 14), ), Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ SizedBox( height: 20, ), Container( width: 130, height: 130, decoration: BoxDecoration( image: DecorationImage(image: AssetImage(image))), ), Center( child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Container( margin: EdgeInsets.only(top: 4), child: Image.network( "https://www.libracoffee.io/img/icon-libra@3x.c0fc5777.png", width: 25, ), ), SizedBox( width: 10, ), Text( price.toString(), style: TextStyle( color: GlobalConst.secondColor, fontWeight: FontWeight.normal, fontSize: 22), ), ], ), ) ], )) ], ), ); } } ================================================ FILE: merchant_pos_desktop_flutter/lib/src/ui/home/widgets/product_cart_tile.dart ================================================ import 'package:flutter/material.dart'; class ProductCartTile extends StatelessWidget { ProductCartTile({this.product, this.price, this.qty}); final String product; final double price; final int qty; @override Widget build(BuildContext context) { return Container( padding: EdgeInsets.only(left: 15, right: 15, bottom: 5), decoration: BoxDecoration( border: Border(bottom: BorderSide(color: Colors.grey, width: .5))), child: Row( children: [ Expanded( child: Text( product, style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 14), ), ), Spacer(), Text( qty.toString(), style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 14), ), SizedBox( width: 50, ), Text( price.toString(), style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 14), ), SizedBox( width: 25, ), IconButton(icon: Icon(Icons.delete), onPressed: () {}), SizedBox( width: 5, ), ], ), ); } } ================================================ FILE: merchant_pos_desktop_flutter/pubspec.yaml ================================================ name: libra_coffe_flutter description: A new Flutter project. # The following line prevents the package from being accidentally published to # pub.dev using `pub publish`. This is preferred for private packages. publish_to: "none" # Remove this line if you wish to publish to pub.dev # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 # followed by an optional build number separated by a +. # Both the version and the builder number may be overridden in flutter # build by specifying --build-name and --build-number, respectively. # In Android, build-name is used as versionName while build-number used as versionCode. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 1.0.0+1 environment: sdk: ">=2.7.0 <3.0.0" dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.3 flutter_mobx: mobx: flutter_svg: ^0.18.0 dev_dependencies: mobx_codegen: ^1.1.0+1 build_runner: ^1.10.0 flutter_test: sdk: flutter # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true # To add assets to your application, add an assets section, like this: assets: - assets/images/ # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: # fonts: # - family: Schyler # fonts: # - asset: fonts/Schyler-Regular.ttf # - asset: fonts/Schyler-Italic.ttf # style: italic # - family: Trajan Pro # fonts: # - asset: fonts/TrajanPro.ttf # - asset: fonts/TrajanPro_Bold.ttf # weight: 700 # # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages ================================================ FILE: merchant_pos_desktop_flutter/windows/.gitignore ================================================ flutter/ephemeral/ # Visual Studio user-specific files. *.suo *.user *.userosscache *.sln.docstates # Visual Studio build-related files. x64/ x86/ # Visual Studio cache files # files ending in .cache can be ignored *.[Cc]ache # but keep track of directories ending in .cache !*.[Cc]ache/ ================================================ FILE: merchant_pos_desktop_flutter/windows/AppConfiguration.props ================================================ merchant_pos_desktop_flutter ================================================ FILE: merchant_pos_desktop_flutter/windows/FlutterBuild.vcxproj ================================================ Debug x64 Profile x64 Release x64 15.0 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F} Flutter Build 10.0 v141 v142 "$(ProjectDir)scripts\prepare_dependencies" $(Configuration) Running Flutter backend build force_to_run_every_time ================================================ FILE: merchant_pos_desktop_flutter/windows/Runner.sln ================================================  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.29709.97 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Runner", "Runner.vcxproj", "{5A827760-CF8B-408A-99A3-B6C0AD2271E7}" ProjectSection(ProjectDependencies) = postProject {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F} = {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Flutter Build", "FlutterBuild.vcxproj", "{6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Flutter Plugins", "Flutter Plugins", "{5C2E738A-1DD3-445A-AAC8-EEB9648DD07C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 Profile|x64 = Profile|x64 Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Debug|x64.ActiveCfg = Debug|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Debug|x64.Build.0 = Debug|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Profile|x64.ActiveCfg = Profile|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Profile|x64.Build.0 = Profile|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Release|x64.ActiveCfg = Release|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Release|x64.Build.0 = Release|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Debug|x64.ActiveCfg = Debug|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Debug|x64.Build.0 = Debug|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Profile|x64.ActiveCfg = Profile|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Profile|x64.Build.0 = Profile|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Release|x64.ActiveCfg = Release|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {B8A69CB0-A974-4774-9EBD-1E5EECACD186} EndGlobalSection GlobalSection(NestedProjects) = preSolution EndGlobalSection EndGlobal ================================================ FILE: merchant_pos_desktop_flutter/windows/Runner.vcxproj ================================================ Debug x64 Profile x64 Release x64 15.0 {5A827760-CF8B-408A-99A3-B6C0AD2271E7} merchant_pos_desktop_flutter 10.0 Application true v141 v142 Unicode Application false v141 v142 true Unicode Application false v141 v142 true Unicode $(ProjectDir)..\build\windows\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\ Level4 Disabled true true $(ProjectDir);$(FLUTTER_EPHEMERAL_DIR);$(FLUTTER_EPHEMERAL_DIR)\cpp_client_wrapper\include;%(AdditionalIncludeDirectories) _MBCS;_HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) true 4100 flutter_windows.dll.lib;%(AdditionalDependencies) $(FLUTTER_EPHEMERAL_DIR);$(OutDir)..\Plugins;%(AdditionalLibraryDirectories) "$(ProjectDir)scripts\bundle_assets_and_deps" "$(FLUTTER_EPHEMERAL_DIR)\" "$(OutputPath)" "$(OutputPath)..\Plugins\" "$(TargetFileName)" "$(Configuration)" Bundling dependencies Dummy_Run_Always Level4 MaxSpeed true true true true $(ProjectDir);$(FLUTTER_EPHEMERAL_DIR);$(FLUTTER_EPHEMERAL_DIR)\cpp_client_wrapper\include;%(AdditionalIncludeDirectories) _MBCS;_HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) true 4100 true true flutter_windows.dll.lib;%(AdditionalDependencies) $(FLUTTER_EPHEMERAL_DIR);$(OutDir)..\Plugins;%(AdditionalLibraryDirectories) "$(ProjectDir)scripts\bundle_assets_and_deps" "$(FLUTTER_EPHEMERAL_DIR)\" "$(OutputPath)" "$(OutputPath)..\Plugins\" "$(TargetFileName)" "$(Configuration)" Bundling dependencies Dummy_Run_Always Level4 MaxSpeed true true true true $(ProjectDir);$(FLUTTER_EPHEMERAL_DIR);$(FLUTTER_EPHEMERAL_DIR)\cpp_client_wrapper\include;%(AdditionalIncludeDirectories) _MBCS;_HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) true 4100 true true flutter_windows.dll.lib;%(AdditionalDependencies) $(FLUTTER_EPHEMERAL_DIR);$(OutDir)..\Plugins;%(AdditionalLibraryDirectories) "$(ProjectDir)scripts\bundle_assets_and_deps" "$(FLUTTER_EPHEMERAL_DIR)\" "$(OutputPath)" "$(OutputPath)..\Plugins\" "$(TargetFileName)" "$(Configuration)" Bundling dependencies Dummy_Run_Always $(SolutionDir) ================================================ FILE: merchant_pos_desktop_flutter/windows/Runner.vcxproj.filters ================================================  {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hh;hpp;hxx;hm;inl;inc;ipp;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms {2761a4b5-57b2-4d50-a677-d20ddc17a7f1} Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files\Client Wrapper Source Files\Client Wrapper Source Files\Client Wrapper Header Files Header Files Header Files Header Files Header Files Header Files Header Files Resource Files Resource Files ================================================ FILE: merchant_pos_desktop_flutter/windows/flutter/.template_version ================================================ 3 ================================================ FILE: merchant_pos_desktop_flutter/windows/flutter/GeneratedPlugins.props ================================================ ================================================ FILE: merchant_pos_desktop_flutter/windows/flutter/generated_plugin_registrant.cc ================================================ // // Generated file. Do not edit. // #include "generated_plugin_registrant.h" void RegisterPlugins(flutter::PluginRegistry* registry) { } ================================================ FILE: merchant_pos_desktop_flutter/windows/flutter/generated_plugin_registrant.h ================================================ // // Generated file. Do not edit. // #ifndef GENERATED_PLUGIN_REGISTRANT_ #define GENERATED_PLUGIN_REGISTRANT_ #include // Registers Flutter plugins. void RegisterPlugins(flutter::PluginRegistry* registry); #endif // GENERATED_PLUGIN_REGISTRANT_ ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/Runner.rc ================================================ // Microsoft Visual C++ generated resource script. // #pragma code_page(65001) #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winres.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (United States) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resource.h\0" END 2 TEXTINCLUDE BEGIN "#include ""winres.h""\r\n" "\0" END 3 TEXTINCLUDE BEGIN "\r\n" "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDI_APP_ICON ICON "resources\\app_icon.ico" #endif // English (United States) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/flutter_window.cpp ================================================ #include "flutter_window.h" #include "flutter/generated_plugin_registrant.h" FlutterWindow::FlutterWindow(RunLoop* run_loop, const flutter::DartProject& project) : run_loop_(run_loop), project_(project) {} FlutterWindow::~FlutterWindow() {} void FlutterWindow::OnCreate() { Win32Window::OnCreate(); // The size here is arbitrary since SetChildContent will resize it. flutter_controller_ = std::make_unique(100, 100, project_); RegisterPlugins(flutter_controller_.get()); run_loop_->RegisterFlutterInstance(flutter_controller_.get()); SetChildContent(flutter_controller_->view()->GetNativeWindow()); } void FlutterWindow::OnDestroy() { if (flutter_controller_) { run_loop_->UnregisterFlutterInstance(flutter_controller_.get()); flutter_controller_ = nullptr; } Win32Window::OnDestroy(); } ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/flutter_window.h ================================================ #ifndef FLUTTER_WINDOW_H_ #define FLUTTER_WINDOW_H_ #include #include #include "run_loop.h" #include "win32_window.h" #include // A window that does nothing but host a Flutter view. class FlutterWindow : public Win32Window { public: // Creates a new FlutterWindow driven by the |run_loop|, hosting a // Flutter view running |project|. explicit FlutterWindow(RunLoop* run_loop, const flutter::DartProject& project); virtual ~FlutterWindow(); protected: // Win32Window: void OnCreate() override; void OnDestroy() override; private: // The run loop driving events for this window. RunLoop* run_loop_; // The project to run. flutter::DartProject project_; // The Flutter instance hosted by this window. std::unique_ptr flutter_controller_; }; #endif // FLUTTER_WINDOW_H_ ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/main.cpp ================================================ #include #include #include #include "flutter_window.h" #include "run_loop.h" #include "utils.h" #include "window_configuration.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, _In_ wchar_t *command_line, _In_ int show_command) { // Attach to console when present (e.g., 'flutter run') or create a // new console when running with a debugger. if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { CreateAndAttachConsole(); } // Initialize COM, so that it is available for use in the library and/or // plugins. ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); RunLoop run_loop; flutter::DartProject project(L"data"); FlutterWindow window(&run_loop, project); Win32Window::Point origin(kFlutterWindowOriginX, kFlutterWindowOriginY); Win32Window::Size size(kFlutterWindowWidth, kFlutterWindowHeight); if (!window.CreateAndShow(kFlutterWindowTitle, origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true); run_loop.Run(); ::CoUninitialize(); return EXIT_SUCCESS; } ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/resource.h ================================================ //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by Runner.rc // #define IDI_APP_ICON 101 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 102 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1001 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/run_loop.cpp ================================================ #include "run_loop.h" #include // Don't stomp std::min/std::max #undef max #undef min #include RunLoop::RunLoop() {} RunLoop::~RunLoop() {} void RunLoop::Run() { bool keep_running = true; TimePoint next_flutter_event_time = TimePoint::clock::now(); while (keep_running) { std::chrono::nanoseconds wait_duration = std::max(std::chrono::nanoseconds(0), next_flutter_event_time - TimePoint::clock::now()); ::MsgWaitForMultipleObjects( 0, nullptr, FALSE, static_cast(wait_duration.count() / 1000), QS_ALLINPUT); bool processed_events = false; MSG message; // All pending Windows messages must be processed; MsgWaitForMultipleObjects // won't return again for items left in the queue after PeekMessage. while (::PeekMessage(&message, nullptr, 0, 0, PM_REMOVE)) { processed_events = true; if (message.message == WM_QUIT) { keep_running = false; break; } ::TranslateMessage(&message); ::DispatchMessage(&message); // Allow Flutter to process messages each time a Windows message is // processed, to prevent starvation. next_flutter_event_time = std::min(next_flutter_event_time, ProcessFlutterMessages()); } // If the PeekMessage loop didn't run, process Flutter messages. if (!processed_events) { next_flutter_event_time = std::min(next_flutter_event_time, ProcessFlutterMessages()); } } } void RunLoop::RegisterFlutterInstance( flutter::FlutterViewController* flutter_instance) { flutter_instances_.insert(flutter_instance); } void RunLoop::UnregisterFlutterInstance( flutter::FlutterViewController* flutter_instance) { flutter_instances_.erase(flutter_instance); } RunLoop::TimePoint RunLoop::ProcessFlutterMessages() { TimePoint next_event_time = TimePoint::max(); for (auto flutter_controller : flutter_instances_) { std::chrono::nanoseconds wait_duration = flutter_controller->ProcessMessages(); if (wait_duration != std::chrono::nanoseconds::max()) { next_event_time = std::min(next_event_time, TimePoint::clock::now() + wait_duration); } } return next_event_time; } ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/run_loop.h ================================================ #ifndef RUN_LOOP_H_ #define RUN_LOOP_H_ #include #include #include // A runloop that will service events for Flutter instances as well // as native messages. class RunLoop { public: RunLoop(); ~RunLoop(); // Prevent copying RunLoop(RunLoop const&) = delete; RunLoop& operator=(RunLoop const&) = delete; // Runs the run loop until the application quits. void Run(); // Registers the given Flutter instance for event servicing. void RegisterFlutterInstance( flutter::FlutterViewController* flutter_instance); // Unregisters the given Flutter instance from event servicing. void UnregisterFlutterInstance( flutter::FlutterViewController* flutter_instance); private: using TimePoint = std::chrono::steady_clock::time_point; // Processes all currently pending messages for registered Flutter instances. TimePoint ProcessFlutterMessages(); std::set flutter_instances_; }; #endif // RUN_LOOP_H_ ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/runner.exe.manifest ================================================ PerMonitorV2 ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/utils.cpp ================================================ #include "utils.h" #include #include #include #include #include void CreateAndAttachConsole() { if (::AllocConsole()) { FILE *unused; if (freopen_s(&unused, "CONOUT$", "w", stdout)) { _dup2(_fileno(stdout), 1); } if (freopen_s(&unused, "CONOUT$", "w", stderr)) { _dup2(_fileno(stdout), 2); } std::ios::sync_with_stdio(); FlutterDesktopResyncOutputStreams(); } } ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/utils.h ================================================ #ifndef CONSOLE_UTILS_H_ #define CONSOLE_UTILS_H_ // Creates a console for the process, and redirects stdout and stderr to // it for both the runner and the Flutter library. void CreateAndAttachConsole(); #endif // CONSOLE_UTILS_H_ ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/win32_window.cpp ================================================ #include "win32_window.h" #include #include "resource.h" namespace { constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; // The number of Win32Window objects that currently exist. static int g_active_window_count = 0; using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); // Scale helper to convert logical scaler values to physical using passed in // scale factor int Scale(int source, double scale_factor) { return static_cast(source * scale_factor); } // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. // This API is only needed for PerMonitor V1 awareness mode. void EnableFullDpiSupportIfAvailable(HWND hwnd) { HMODULE user32_module = LoadLibraryA("User32.dll"); if (!user32_module) { return; } auto enable_non_client_dpi_scaling = reinterpret_cast( GetProcAddress(user32_module, "EnableNonClientDpiScaling")); if (enable_non_client_dpi_scaling != nullptr) { enable_non_client_dpi_scaling(hwnd); FreeLibrary(user32_module); } } } // namespace // Manages the Win32Window's window class registration. class WindowClassRegistrar { public: ~WindowClassRegistrar() = default; // Returns the singleton registar instance. static WindowClassRegistrar* GetInstance() { if (!instance_) { instance_ = new WindowClassRegistrar(); } return instance_; } // Returns the name of the window class, registering the class if it hasn't // previously been registered. const wchar_t* GetWindowClass(); // Unregisters the window class. Should only be called if there are no // instances of the window. void UnregisterWindowClass(); private: WindowClassRegistrar() = default; static WindowClassRegistrar* instance_; bool class_registered_ = false; }; WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; const wchar_t* WindowClassRegistrar::GetWindowClass() { if (!class_registered_) { WNDCLASS window_class{}; window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); window_class.lpszClassName = kWindowClassName; window_class.style = CS_HREDRAW | CS_VREDRAW; window_class.cbClsExtra = 0; window_class.cbWndExtra = 0; window_class.hInstance = GetModuleHandle(nullptr); window_class.hIcon = LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); window_class.hbrBackground = 0; window_class.lpszMenuName = nullptr; window_class.lpfnWndProc = Win32Window::WndProc; RegisterClass(&window_class); class_registered_ = true; } return kWindowClassName; } void WindowClassRegistrar::UnregisterWindowClass() { UnregisterClass(kWindowClassName, nullptr); class_registered_ = false; } Win32Window::Win32Window() { ++g_active_window_count; } Win32Window::~Win32Window() { --g_active_window_count; Destroy(); } bool Win32Window::CreateAndShow(const std::wstring& title, const Point& origin, const Size& size) { Destroy(); const wchar_t* window_class = WindowClassRegistrar::GetInstance()->GetWindowClass(); const POINT target_point = {static_cast(origin.x), static_cast(origin.y)}; HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); double scale_factor = dpi / 96.0; HWND window = CreateWindow( window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE, Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), Scale(size.width, scale_factor), Scale(size.height, scale_factor), nullptr, nullptr, GetModuleHandle(nullptr), this); OnCreate(); return window != nullptr; } // static LRESULT CALLBACK Win32Window::WndProc(HWND const window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept { if (message == WM_NCCREATE) { auto window_struct = reinterpret_cast(lparam); SetWindowLongPtr(window, GWLP_USERDATA, reinterpret_cast(window_struct->lpCreateParams)); auto that = static_cast(window_struct->lpCreateParams); EnableFullDpiSupportIfAvailable(window); that->window_handle_ = window; } else if (Win32Window* that = GetThisFromHandle(window)) { return that->MessageHandler(window, message, wparam, lparam); } return DefWindowProc(window, message, wparam, lparam); } LRESULT Win32Window::MessageHandler(HWND hwnd, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept { auto window = reinterpret_cast(GetWindowLongPtr(hwnd, GWLP_USERDATA)); if (window == nullptr) { return 0; } switch (message) { case WM_DESTROY: window_handle_ = nullptr; Destroy(); if (quit_on_close_) { PostQuitMessage(0); } return 0; case WM_DPICHANGED: { auto newRectSize = reinterpret_cast(lparam); LONG newWidth = newRectSize->right - newRectSize->left; LONG newHeight = newRectSize->bottom - newRectSize->top; SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, newHeight, SWP_NOZORDER | SWP_NOACTIVATE); return 0; } case WM_SIZE: RECT rect; GetClientRect(hwnd, &rect); if (child_content_ != nullptr) { // Size and position the child window. MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, TRUE); } return 0; case WM_ACTIVATE: if (child_content_ != nullptr) { SetFocus(child_content_); } return 0; // Messages that are directly forwarded to embedding. case WM_FONTCHANGE: SendMessage(child_content_, WM_FONTCHANGE, NULL, NULL); return 0; } return DefWindowProc(window_handle_, message, wparam, lparam); } void Win32Window::Destroy() { OnDestroy(); if (window_handle_) { DestroyWindow(window_handle_); window_handle_ = nullptr; } if (g_active_window_count == 0) { WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); } } Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { return reinterpret_cast( GetWindowLongPtr(window, GWLP_USERDATA)); } void Win32Window::SetChildContent(HWND content) { child_content_ = content; SetParent(content, window_handle_); RECT frame; GetClientRect(window_handle_, &frame); MoveWindow(content, frame.left, frame.top, frame.right - frame.left, frame.bottom - frame.top, true); SetFocus(child_content_); } HWND Win32Window::GetHandle() { return window_handle_; } void Win32Window::SetQuitOnClose(bool quit_on_close) { quit_on_close_ = quit_on_close; } void Win32Window::OnCreate() { // No-op; provided for subclasses. } void Win32Window::OnDestroy() { // No-op; provided for subclasses. } ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/win32_window.h ================================================ #ifndef WIN32_WINDOW_H_ #define WIN32_WINDOW_H_ #include #include #include #include #include // A class abstraction for a high DPI-aware Win32 Window. Intended to be // inherited from by classes that wish to specialize with custom // rendering and input handling class Win32Window { public: struct Point { unsigned int x; unsigned int y; Point(unsigned int x, unsigned int y) : x(x), y(y) {} }; struct Size { unsigned int width; unsigned int height; Size(unsigned int width, unsigned int height) : width(width), height(height) {} }; Win32Window(); virtual ~Win32Window(); // Creates and shows a win32 window with |title| and position and size using // |origin| and |size|. New windows are created on the default monitor. Window // sizes are specified to the OS in physical pixels, hence to ensure a // consistent size to will treat the width height passed in to this function // as logical pixels and scale to appropriate for the default monitor. Returns // true if the window was created successfully. bool CreateAndShow(const std::wstring& title, const Point& origin, const Size& size); // Release OS resources associated with window. void Destroy(); // Inserts |content| into the window tree. void SetChildContent(HWND content); // Returns the backing Window handle to enable clients to set icon and other // window properties. Returns nullptr if the window has been destroyed. HWND GetHandle(); // If true, closing this window will quit the application. void SetQuitOnClose(bool quit_on_close); protected: // Processes and route salient window messages for mouse handling, // size change and DPI. Delegates handling of these to member overloads that // inheriting classes can handle. virtual LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept; // Called when CreateAndShow is called, allowing subclass window-related // setup. virtual void OnCreate(); // Called when Destroy is called. virtual void OnDestroy(); private: friend class WindowClassRegistrar; // OS callback called by message pump. Handles the WM_NCCREATE message which // is passed when the non-client area is being created and enables automatic // non-client DPI scaling so that the non-client area automatically // responsponds to changes in DPI. All other messages are handled by // MessageHandler. static LRESULT CALLBACK WndProc(HWND const window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept; // Retrieves a class instance pointer for |window| static Win32Window* GetThisFromHandle(HWND const window) noexcept; bool quit_on_close_ = false; // window handle for top level window. HWND window_handle_ = nullptr; // window handle for hosted content. HWND child_content_ = nullptr; }; #endif // WIN32_WINDOW_H_ ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/window_configuration.cpp ================================================ #include "window_configuration.h" const wchar_t* kFlutterWindowTitle = L"merchant_pos_desktop_flutter"; const unsigned int kFlutterWindowOriginX = 10; const unsigned int kFlutterWindowOriginY = 10; const unsigned int kFlutterWindowWidth = 1280; const unsigned int kFlutterWindowHeight = 720; ================================================ FILE: merchant_pos_desktop_flutter/windows/runner/window_configuration.h ================================================ #ifndef WINDOW_CONFIGURATION_ #define WINDOW_CONFIGURATION_ // This is a temporary approach to isolate changes that people are likely to // make to main.cpp, where the APIs are still in flux. This will reduce the // need to resolve conflicts or re-create changes slightly differently every // time the Windows Flutter API surface changes. // // Longer term there should be simpler configuration options for common // customizations like this, without requiring native code changes. extern const wchar_t* kFlutterWindowTitle; extern const unsigned int kFlutterWindowOriginX; extern const unsigned int kFlutterWindowOriginY; extern const unsigned int kFlutterWindowWidth; extern const unsigned int kFlutterWindowHeight; #endif // WINDOW_CONFIGURATION_ ================================================ FILE: merchant_pos_desktop_flutter/windows/scripts/bundle_assets_and_deps.bat ================================================ @echo off set FLUTTER_CACHE_DIR=%~1 set BUNDLE_DIR=%~2 set PLUGIN_DIR=%~3 set EXE_NAME=%~4 set BUILD_MODE=%~5 set DATA_DIR=%BUNDLE_DIR%data if not exist "%DATA_DIR%" call mkdir "%DATA_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% :: Write the executable name to the location expected by the Flutter tool. echo %EXE_NAME%>"%FLUTTER_CACHE_DIR%exe_filename" :: Copy the Flutter assets to the data directory. set FLUTTER_BUILD_DIR=%~dp0..\..\build\ set ASSET_DIR_NAME=flutter_assets set TARGET_ASSET_DIR=%DATA_DIR%\%ASSET_DIR_NAME% if exist "%TARGET_ASSET_DIR%" call rmdir /s /q "%TARGET_ASSET_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% call xcopy /s /e /i /q "%FLUTTER_BUILD_DIR%%ASSET_DIR_NAME%" "%TARGET_ASSET_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% :: Copy the icudtl.dat file from the Flutter tree to the data directory. call xcopy /y /d /q "%FLUTTER_CACHE_DIR%icudtl.dat" "%DATA_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% :: For non-debug modes, copy app.so into the data directory. if not %BUILD_MODE% == "Debug" ( call xcopy /y /d /q "%FLUTTER_BUILD_DIR%windows\app.so" "%DATA_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% ) :: Copy the Flutter DLL to the target location. call xcopy /y /d /q "%FLUTTER_CACHE_DIR%flutter_windows.dll" "%BUNDLE_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% :: Copy any Plugin DLLs to the target location. if exist "%PLUGIN_DIR%" ( call xcopy /y /d /q "%PLUGIN_DIR%"*.dll "%BUNDLE_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% ) ================================================ FILE: merchant_pos_desktop_flutter/windows/scripts/prepare_dependencies.bat ================================================ @echo off :: Run flutter tool backend. set BUILD_MODE=%~1 "%FLUTTER_ROOT%\packages\flutter_tools\bin\tool_backend" windows-x64 %BUILD_MODE% ================================================ FILE: zoom_desktop_flutter/.gitignore ================================================ # Miscellaneous *.class *.log *.pyc *.swp .DS_Store .atom/ .buildlog/ .history .svn/ # IntelliJ related *.iml *.ipr *.iws .idea/ # The .vscode folder contains launch configuration and tasks you configure in # VS Code which you may wish to be included in version control, so this line # is commented out by default. #.vscode/ # Flutter/Dart/Pub related **/doc/api/ **/ios/Flutter/.last_build_id .dart_tool/ .flutter-plugins .flutter-plugins-dependencies .packages .pub-cache/ .pub/ /build/ # Web related lib/generated_plugin_registrant.dart # Symbolication related app.*.symbols # Obfuscation related app.*.map.json # Exceptions to above rules. !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages ================================================ FILE: zoom_desktop_flutter/.metadata ================================================ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # # This file should be version controlled and should not be manually edited. version: revision: 15a28159bcf4b3db13411cbc8d9b5fc51adc0a93 channel: master project_type: app ================================================ FILE: zoom_desktop_flutter/README.md ================================================ # zoom_desktop_flutter A new Flutter project. ## Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project: - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) For help getting started with Flutter, view our [online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference. ================================================ FILE: zoom_desktop_flutter/android/.gitignore ================================================ gradle-wrapper.jar /.gradle /captures/ /gradlew /gradlew.bat /local.properties GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app key.properties ================================================ FILE: zoom_desktop_flutter/android/app/build.gradle ================================================ def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") } def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' } def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 28 sourceSets { main.java.srcDirs += 'src/main/kotlin' } lintOptions { disable 'InvalidPackage' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.zoom_desktop_flutter" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug } } } flutter { source '../..' } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } ================================================ FILE: zoom_desktop_flutter/android/app/src/debug/AndroidManifest.xml ================================================ ================================================ FILE: zoom_desktop_flutter/android/app/src/main/AndroidManifest.xml ================================================ ================================================ FILE: zoom_desktop_flutter/android/app/src/main/kotlin/com/example/zoom_desktop_flutter/MainActivity.kt ================================================ package com.example.zoom_desktop_flutter import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { } ================================================ FILE: zoom_desktop_flutter/android/app/src/main/res/drawable/launch_background.xml ================================================ ================================================ FILE: zoom_desktop_flutter/android/app/src/main/res/values/styles.xml ================================================ ================================================ FILE: zoom_desktop_flutter/android/app/src/profile/AndroidManifest.xml ================================================ ================================================ FILE: zoom_desktop_flutter/android/build.gradle ================================================ buildscript { ext.kotlin_version = '1.3.50' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() jcenter() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } task clean(type: Delete) { delete rootProject.buildDir } ================================================ FILE: zoom_desktop_flutter/android/gradle/wrapper/gradle-wrapper.properties ================================================ #Fri Jun 23 08:50:38 CEST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip ================================================ FILE: zoom_desktop_flutter/android/gradle.properties ================================================ org.gradle.jvmargs=-Xmx1536M android.enableR8=true android.useAndroidX=true android.enableJetifier=true ================================================ FILE: zoom_desktop_flutter/android/settings.gradle ================================================ include ':app' def localPropertiesFile = new File(rootProject.projectDir, "local.properties") def properties = new Properties() assert localPropertiesFile.exists() localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } def flutterSdkPath = properties.getProperty("flutter.sdk") assert flutterSdkPath != null, "flutter.sdk not set in local.properties" apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" ================================================ FILE: zoom_desktop_flutter/ios/.gitignore ================================================ *.mode1v3 *.mode2v3 *.moved-aside *.pbxuser *.perspectivev3 **/*sync/ .sconsign.dblite .tags* **/.vagrant/ **/DerivedData/ Icon? **/Pods/ **/.symlinks/ profile xcuserdata **/.generated/ Flutter/App.framework Flutter/Flutter.framework Flutter/Flutter.podspec Flutter/Generated.xcconfig Flutter/app.flx Flutter/app.zip Flutter/flutter_assets/ Flutter/flutter_export_environment.sh ServiceDefinitions.json Runner/GeneratedPluginRegistrant.* # Exceptions to above rules. !default.mode1v3 !default.mode2v3 !default.pbxuser !default.perspectivev3 ================================================ FILE: zoom_desktop_flutter/ios/Flutter/AppFrameworkInfo.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable App CFBundleIdentifier io.flutter.flutter.app CFBundleInfoDictionaryVersion 6.0 CFBundleName App CFBundlePackageType FMWK CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1.0 MinimumOSVersion 8.0 ================================================ FILE: zoom_desktop_flutter/ios/Flutter/Debug.xcconfig ================================================ #include "Generated.xcconfig" ================================================ FILE: zoom_desktop_flutter/ios/Flutter/Release.xcconfig ================================================ #include "Generated.xcconfig" ================================================ FILE: zoom_desktop_flutter/ios/Runner/AppDelegate.swift ================================================ import UIKit import Flutter @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } ================================================ FILE: zoom_desktop_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images" : [ { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-App-20x20@2x.png", "scale" : "2x" }, { "size" : "20x20", "idiom" : "iphone", "filename" : "Icon-App-20x20@3x.png", "scale" : "3x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@1x.png", "scale" : "1x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-App-29x29@3x.png", "scale" : "3x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-App-40x40@2x.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "iphone", "filename" : "Icon-App-40x40@3x.png", "scale" : "3x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-App-60x60@2x.png", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "Icon-App-60x60@3x.png", "scale" : "3x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "Icon-App-20x20@1x.png", "scale" : "1x" }, { "size" : "20x20", "idiom" : "ipad", "filename" : "Icon-App-20x20@2x.png", "scale" : "2x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-App-29x29@1x.png", "scale" : "1x" }, { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-App-29x29@2x.png", "scale" : "2x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "Icon-App-40x40@1x.png", "scale" : "1x" }, { "size" : "40x40", "idiom" : "ipad", "filename" : "Icon-App-40x40@2x.png", "scale" : "2x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "Icon-App-76x76@1x.png", "scale" : "1x" }, { "size" : "76x76", "idiom" : "ipad", "filename" : "Icon-App-76x76@2x.png", "scale" : "2x" }, { "size" : "83.5x83.5", "idiom" : "ipad", "filename" : "Icon-App-83.5x83.5@2x.png", "scale" : "2x" }, { "size" : "1024x1024", "idiom" : "ios-marketing", "filename" : "Icon-App-1024x1024@1x.png", "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: zoom_desktop_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json ================================================ { "images" : [ { "idiom" : "universal", "filename" : "LaunchImage.png", "scale" : "1x" }, { "idiom" : "universal", "filename" : "LaunchImage@2x.png", "scale" : "2x" }, { "idiom" : "universal", "filename" : "LaunchImage@3x.png", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: zoom_desktop_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md ================================================ # Launch Screen Assets You can customize the launch screen with your own desired assets by replacing the image files in this directory. You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. ================================================ FILE: zoom_desktop_flutter/ios/Runner/Base.lproj/LaunchScreen.storyboard ================================================ ================================================ FILE: zoom_desktop_flutter/ios/Runner/Base.lproj/Main.storyboard ================================================ ================================================ FILE: zoom_desktop_flutter/ios/Runner/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName zoom_desktop_flutter CFBundlePackageType APPL CFBundleShortVersionString $(FLUTTER_BUILD_NAME) CFBundleSignature ???? CFBundleVersion $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance ================================================ FILE: zoom_desktop_flutter/ios/Runner/Runner-Bridging-Header.h ================================================ #import "GeneratedPluginRegistrant.h" ================================================ FILE: zoom_desktop_flutter/ios/Runner.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ 9705A1C41CF9048500538489 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 9740EEB21CF90195004384FC /* Debug.xcconfig */, 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 9740EEB31CF90195004384FC /* Generated.xcconfig */, ); name = Flutter; sourceTree = ""; }; 97C146E51CF9000F007C117D = { isa = PBXGroup; children = ( 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, ); sourceTree = ""; }; 97C146EF1CF9000F007C117D /* Products */ = { isa = PBXGroup; children = ( 97C146EE1CF9000F007C117D /* Runner.app */, ); name = Products; sourceTree = ""; }; 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( 97C146FA1CF9000F007C117D /* Main.storyboard */, 97C146FD1CF9000F007C117D /* Assets.xcassets */, 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 97C147021CF9000F007C117D /* Info.plist */, 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, ); path = Runner; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ 97C146ED1CF9000F007C117D /* Runner */ = { isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, ); buildRules = ( ); dependencies = ( ); name = Runner; productName = Runner; productReference = 97C146EE1CF9000F007C117D /* Runner.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 1020; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; LastSwiftMigration = 1100; }; }; }; buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; compatibilityVersion = "Xcode 9.3"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = 97C146E51CF9000F007C117D; productRefGroup = 97C146EF1CF9000F007C117D /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( 97C146ED1CF9000F007C117D /* Runner */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ 97C146EC1CF9000F007C117D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Thin Binary"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Run Script"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 97C146EA1CF9000F007C117D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ 97C146FA1CF9000F007C117D /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( 97C146FB1CF9000F007C117D /* Base */, ); name = Main.storyboard; sourceTree = ""; }; 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( 97C147001CF9000F007C117D /* Base */, ); name = LaunchScreen.storyboard; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ 249021D3217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; name = Profile; }; 249021D4217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.zoomDesktopFlutter; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Profile; }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; 97C147041CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; name = Release; }; 97C147061CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.zoomDesktopFlutter; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; }; 97C147071CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/Flutter", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.zoomDesktopFlutter; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( 97C147031CF9000F007C117D /* Debug */, 97C147041CF9000F007C117D /* Release */, 249021D3217E4FDB00AE95B9 /* Profile */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( 97C147061CF9000F007C117D /* Debug */, 97C147071CF9000F007C117D /* Release */, 249021D4217E4FDB00AE95B9 /* Profile */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = 97C146E61CF9000F007C117D /* Project object */; } ================================================ FILE: zoom_desktop_flutter/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: zoom_desktop_flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: zoom_desktop_flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings ================================================ PreviewsEnabled ================================================ FILE: zoom_desktop_flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme ================================================ ================================================ FILE: zoom_desktop_flutter/ios/Runner.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: zoom_desktop_flutter/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: zoom_desktop_flutter/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings ================================================ PreviewsEnabled ================================================ FILE: zoom_desktop_flutter/lib/main.dart ================================================ import 'package:flutter/material.dart'; import 'src/ui/home/home_page.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Zoom Redesign', theme: ThemeData( primarySwatch: Colors.blue, visualDensity: VisualDensity.adaptivePlatformDensity, ), debugShowCheckedModeBanner: false, home: HomePage(), ); } } ================================================ FILE: zoom_desktop_flutter/lib/src/cons/global_const.dart ================================================ import 'package:flutter/material.dart'; class GlobalConst { static Color primaryColor = Color(0xFF0E71EB); static Color secondColor = Color(0xFF182455); } ================================================ FILE: zoom_desktop_flutter/lib/src/data/reaction_video_data.dart ================================================ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_reaction_button/flutter_reaction_button.dart'; final defaultInitialReaction = Reaction( id: 0, previewIcon: _buildPreviewIconFacebook('assets/images/like.png'), icon: _buildIconFacebook( 'assets/images/like.png', Text( 'Like', style: TextStyle(color: Colors.grey[600]), ), ), ); final facebookReactions = [ Reaction( id: 1, previewIcon: _buildPreviewIconFacebook('assets/images/like.gif'), icon: _buildIconFacebook( 'assets/images/like_fill.png', Text( 'Like', style: TextStyle( color: Color(0XFF3b5998), ), ), ), ), Reaction( id: 2, previewIcon: _buildPreviewIconFacebook('assets/images/love.gif'), icon: _buildIconFacebook( 'assets/images/love.png', Text( 'Love', style: TextStyle( color: Color(0XFFed5168), ), ), ), ), Reaction( id: 3, previewIcon: _buildPreviewIconFacebook('assets/images/wow.gif'), icon: _buildIconFacebook( 'assets/images/wow.png', Text( 'Wow', style: TextStyle( color: Color(0XFFffda6b), ), ), ), ), Reaction( id: 4, previewIcon: _buildPreviewIconFacebook('assets/images/haha.gif'), icon: _buildIconFacebook( 'assets/images/haha.png', Text( 'Haha', style: TextStyle( color: Color(0XFFffda6b), ), ), ), ), Reaction( id: 5, previewIcon: _buildPreviewIconFacebook('assets/images/sad.gif'), icon: _buildIconFacebook( 'assets/images/sad.png', Text( 'Sad', style: TextStyle( color: Color(0XFFffda6b), ), ), ), ), Reaction( id: 6, previewIcon: _buildPreviewIconFacebook('assets/images/angry.gif'), icon: _buildIconFacebook( 'assets/images/angry.png', Text( 'Angry', style: TextStyle( color: Color(0XFFf05766), ), ), ), ), ]; Widget _buildPreviewIcon(String path, String text) => Padding( padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 5), child: Column( children: [ Text( text, style: TextStyle( fontSize: 10, fontWeight: FontWeight.w300, color: Colors.white, ), ), const SizedBox(height: 7.5), Image.asset(path, height: 30), ], ), ); Widget _buildPreviewIconFacebook(String path) => Padding( padding: const EdgeInsets.symmetric(horizontal: 3.5, vertical: 5), child: Image.asset(path, height: 40), ); Widget _buildIcon(String path) => Image.asset( path, height: 30, width: 30, ); Widget _buildIconFacebook(String path, Text text) => Container( color: Colors.transparent, child: Row( children: [ Image.asset(path, height: 20), const SizedBox(width: 5), text, ], ), ); ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/home_page.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter_reaction_button/flutter_reaction_button.dart'; import '../../cons/global_const.dart'; import '../../data/reaction_video_data.dart'; import '../../ui/home/widgets/profile_photo.dart'; import '../../ui/home/widgets/sprite_painter.dart'; import 'widgets/menu_dark_tile.dart'; import 'widgets/user_photo_border_gradient.dart'; import 'widgets/bottom_video_clipper.dart'; import 'widgets/notification_top_menu.dart'; import 'widgets/workspace_selection_card.dart'; import 'widgets/photo_user_meeting.dart'; class HomePage extends StatefulWidget { @override _HomePageState createState() => _HomePageState(); } class _HomePageState extends State with SingleTickerProviderStateMixin { int _selectedWorkspacePage = 0; int _selectedMainPage = 0; AnimationController _controller; @override void initState() { super.initState(); _controller = new AnimationController( vsync: this, ); _startAnimation(); } @override void dispose() { _controller.dispose(); super.dispose(); } void _startAnimation() { _controller.stop(); _controller.reset(); _controller.repeat( period: Duration(seconds: 1), ); } @override Widget build(BuildContext context) { return Scaffold( backgroundColor: GlobalConst.primaryColor, body: Container( child: Row( children: [ Container( width: 120, margin: EdgeInsets.symmetric(vertical: 50), child: Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Column( children: [ Text( "zoom", style: TextStyle( color: Colors.white, fontSize: 24, fontWeight: FontWeight.bold, fontFamily: "Hall"), ), SizedBox( height: 40, ), GestureDetector( onTap: () { Navigator.push( context, MaterialPageRoute( builder: (BuildContext context) { return ProfileImageView(); }, ), ); }, child: Stack( children: [ Center( child: Hero( tag: "view-image", child: Container( width: 60, height: 60, margin: EdgeInsets.only(top: 10), decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.black38, blurRadius: 15.0, offset: Offset(0.0, 0.75)) ], image: DecorationImage( image: NetworkImage( "https://avatars2.githubusercontent.com/u/29952508?s=460&u=622321f493deddbb578e7837dc49602402f0be9e&v=4")), borderRadius: BorderRadius.all( Radius.circular(10))), ), ), ), Positioned( right: 22, top: 4, child: Container( height: 15, width: 15, margin: EdgeInsets.only(bottom: 20), decoration: BoxDecoration( color: Colors.green, border: Border.all( color: GlobalConst.primaryColor, width: 3), borderRadius: BorderRadius.all(Radius.circular(10))), ), ) ], ), ) ], ), Column( children: [ WorkSpaceSelectionCard( isActive: _selectedWorkspacePage == 0, image: "https://static.javatpoint.com/tutorial/flutter/images/flutter-logo.png", onTap: () { setState(() { _selectedWorkspacePage = 0; }); }, ), WorkSpaceSelectionCard( isActive: _selectedWorkspacePage == 1, image: "https://res.infoq.com/presentations/Dart/en/slides/1.jpg", onTap: () { setState(() { _selectedWorkspacePage = 1; }); }, ), WorkSpaceSelectionCard( isActive: _selectedWorkspacePage == 2, image: "https://i.pinimg.com/236x/ca/1f/74/ca1f746d6f232f87fca4e4d94ef6f3ab--app-technology.jpg", onTap: () { setState(() { _selectedWorkspacePage = 2; }); }, ), Container( width: 60, height: 60, margin: EdgeInsets.only(top: 20), decoration: BoxDecoration( color: Color(0xFF37D2F8), boxShadow: [ BoxShadow( color: Colors.black38, blurRadius: 15.0, offset: Offset(0.0, 0.75)) ], borderRadius: BorderRadius.all(Radius.circular(10))), child: Icon( Icons.add, color: Colors.white, ), ), ], ), IconButton( icon: Icon( Icons.settings, color: Colors.white.withOpacity(0.5), ), onPressed: () {}) ], ), ), Expanded( child: Stack( children: [ Container( width: 240, height: MediaQuery.of(context).size.height, margin: EdgeInsets.symmetric(vertical: 30), decoration: BoxDecoration( color: GlobalConst.secondColor, borderRadius: BorderRadius.only( bottomLeft: Radius.circular(15), topLeft: Radius.circular(15), )), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Container( alignment: Alignment.center, margin: EdgeInsets.only(top: 20, left: 25, right: 25), child: TextField( style: TextStyle(color: Colors.white), decoration: InputDecoration( contentPadding: EdgeInsets.all(0), fillColor: Colors.white12, prefixIcon: Icon( Icons.search, color: Colors.white12, ), hintStyle: TextStyle( color: Colors.white12, fontSize: 14), focusColor: Colors.transparent, filled: true, border: OutlineInputBorder( borderRadius: BorderRadius.all(Radius.circular(10)), borderSide: BorderSide.none), hintText: "Search"), )), SizedBox( height: 15, ), Container( margin: EdgeInsets.symmetric(horizontal: 25), padding: EdgeInsets.only(top: 15, bottom: 15, left: 25), decoration: BoxDecoration( color: Colors.transparent, borderRadius: BorderRadius.circular(10)), child: Text( "MAIN APP", textAlign: TextAlign.start, style: TextStyle(color: Colors.white24, fontSize: 12), ), ), MenuDarkTile( active: _selectedMainPage == 0, onTap: () { setState(() { _selectedMainPage = 0; }); }, icon: Icons.dashboard, title: "Dashboard", ), MenuDarkTile( active: _selectedMainPage == 1, onTap: () { setState(() { _selectedMainPage = 1; }); }, icon: Icons.access_time, title: "Daily Status", ), MenuDarkTile( active: _selectedMainPage == 2, onTap: () { setState(() { _selectedMainPage = 2; }); }, icon: Icons.border_all, title: "Boards", ), MenuDarkTile( active: _selectedMainPage == 3, onTap: () { setState(() { _selectedMainPage = 3; }); }, icon: Icons.format_list_numbered, title: "RoadMaps", ), SizedBox( height: 25, ), Container( margin: EdgeInsets.symmetric(horizontal: 25), padding: EdgeInsets.only(top: 15, bottom: 15, left: 25), decoration: BoxDecoration( color: Colors.transparent, borderRadius: BorderRadius.circular(10)), child: Text( "WORK FLOW", textAlign: TextAlign.start, style: TextStyle(color: Colors.white24, fontSize: 12), ), ), MenuDarkTile( active: _selectedMainPage == 4, onTap: () { setState(() { _selectedMainPage = 4; }); }, icon: Icons.tv, title: "Workshops", ), MenuDarkTile( active: _selectedMainPage == 5, onTap: () { setState(() { _selectedMainPage = 5; }); }, icon: Icons.camera_alt, title: "Video Calls", ), MenuDarkTile( active: _selectedMainPage == 6, onTap: () { setState(() { _selectedMainPage = 6; }); }, icon: Icons.filter_drama, title: "Files", ), SizedBox( height: 25, ), Container( margin: EdgeInsets.symmetric(horizontal: 25), padding: EdgeInsets.only(top: 15, bottom: 15, left: 25), decoration: BoxDecoration( color: Colors.transparent, borderRadius: BorderRadius.circular(10)), child: Text( "SETTINGS", textAlign: TextAlign.start, style: TextStyle(color: Colors.white24, fontSize: 12), ), ), MenuDarkTile( active: _selectedMainPage == 7, onTap: () { setState(() { _selectedMainPage = 7; }); }, icon: Icons.people, title: "Team", ), ], ), ), Positioned( left: 228, child: Container( width: 135, height: MediaQuery.of(context).size.height - 60, margin: EdgeInsets.symmetric(vertical: 30), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( bottomLeft: Radius.circular(15), topLeft: Radius.circular(15), )), child: Column( children: [ SizedBox( height: 5, ), Container( margin: EdgeInsets.symmetric(vertical: 10), child: Text( "TEAM", style: TextStyle(color: Color(0xFFC1C5D2)), ), ), Container( width: 50, height: 50, margin: EdgeInsets.only(bottom: 20), decoration: BoxDecoration( color: Color(0xFFD6E4ED), borderRadius: BorderRadius.all(Radius.circular(50))), child: Center( child: Text( "M", style: TextStyle( color: GlobalConst.secondColor, fontWeight: FontWeight.bold, fontSize: 20), )), ), Divider(), SizedBox( height: 25, ), UserPhotoBorderGradient( isGradient: true, firstColor: Colors.yellow, secondColor: Colors.redAccent, photo: "https://avatars2.githubusercontent.com/u/33294549?s=460&u=c832597c58517e4eb4ad1df0c5c98b0998a973af&v=4", name: "Pedro", ), UserPhotoBorderGradient( isGradient: true, firstColor: Color(0xFF37D2F8), secondColor: Colors.blue, photo: "https://avatars3.githubusercontent.com/u/20057010?s=460&u=ae95fc706dbf95c4e511d3788bd9026e46f8429a&v=4", name: "Bráulio", ), UserPhotoBorderGradient( isGradient: false, firstColor: Color(0xFF37D2F8), secondColor: Colors.blue, photo: "https://avatars1.githubusercontent.com/u/20504726?s=460&u=9b5bb9e8387dcdc1af2acf8b8fff969e34614fab&v=4", name: "Eleandro", ), UserPhotoBorderGradient( isGradient: false, firstColor: Color(0xFF37D2F8), secondColor: Colors.blue, photo: "https://avatars3.githubusercontent.com/u/47059370?s=460&u=463824a25128c4670f1b1f2022f616d760113c5c&v=4", name: "Dorivaldo", ), UserPhotoBorderGradient( isGradient: false, firstColor: Color(0xFF37D2F8), secondColor: Colors.blue, photo: "https://scontent.flad2-1.fna.fbcdn.net/v/t1.0-9/94114181_2485240251788122_4127078257054973952_o.jpg?_nc_cat=111&_nc_sid=174925&_nc_eui2=AeGMOYLlalLoAabQs5FRz1h8qcHRV20eUsapwdFXbR5SxgD1fyi10yQc1XOmTNIuFN5ptDoal6rHvWaBx_pBOjzq&_nc_ohc=5EYl_sjFBagAX-S9DKw&_nc_ht=scontent.flad2-1.fna&oh=bf94efe3cb18dd729129e72c159e8653&oe=5F2667D2", name: "Anísio", ), Container( width: 50, height: 50, decoration: BoxDecoration( color: GlobalConst.primaryColor, borderRadius: BorderRadius.all(Radius.circular(50))), child: Icon( Icons.add, color: Colors.white, ), ), ], ), ), ), Positioned( right: 0, child: Container( width: MediaQuery.of(context).size.width - 471, height: MediaQuery.of(context).size.height - 60, margin: EdgeInsets.symmetric(vertical: 30), decoration: BoxDecoration( color: Color(0xFFF1F7FB), borderRadius: BorderRadius.only( bottomLeft: Radius.circular(15), topLeft: Radius.circular(15), )), child: Container( margin: EdgeInsets.only(left: 125), child: Column( children: [ SizedBox( height: 40, ), Row( children: [ FlutterReactionButtonCheck( onReactionChanged: (reaction, isChecked) { print('reaction selected id: 1'); }, reactions: facebookReactions, initialReaction: defaultInitialReaction, selectedReaction: facebookReactions[0], ), SizedBox( width: 20, ), NotificationTopMenu( icon: Icons.person_outline, title: "Márcio is working today remotely", color: Colors.black, ), NotificationTopMenu( icon: Icons.timer, title: "Last seen Yesterday, 17:24", color: Colors.black, ), Spacer(), NotificationTopMenu( icon: Icons.check_circle, title: "78% STATUSES DONE", color: Colors.green, ) ], ), SizedBox( height: 50, ), Row( children: [ Container( height: 110, width: 100, decoration: BoxDecoration( color: Colors.transparent, image: DecorationImage( image: NetworkImage( "https://avatars2.githubusercontent.com/u/29952508?s=460&u=622321f493deddbb578e7837dc49602402f0be9e&v=4")), border: Border.all( color: Colors.white, width: 5), borderRadius: BorderRadius.circular(6)), ), SizedBox( width: 20, ), Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ Row( children: [ Text( "Márcio Quimbundo", style: TextStyle( fontSize: 24, fontWeight: FontWeight.bold), ), SizedBox( width: 70, ), Container( padding: EdgeInsets.symmetric( horizontal: 15, vertical: 5), decoration: BoxDecoration( color: Colors.red.withOpacity(.4), borderRadius: BorderRadius.circular(20)), child: Text( "NO STATUS TODAY", style: TextStyle( color: Colors.red, fontSize: 12), ), ) ], ), Text( "Software Engineer", style: TextStyle(color: Colors.black54), ), SizedBox( height: 10, ), NotificationTopMenu( icon: Icons.pin_drop, title: "Angola, Luanda", ) ], ), Spacer(), Icon( Icons.settings, color: Colors.black38, size: 16, ), SizedBox( width: 20, ), Container( margin: EdgeInsets.only(right: 30), padding: EdgeInsets.symmetric( horizontal: 25, vertical: 8), decoration: BoxDecoration( color: Color(0xFFFF625C), borderRadius: BorderRadius.circular(20)), child: Row( children: [ Icon( Icons.stop, color: Colors.white, ), SizedBox( width: 5, ), Text( "Stop Daily Status", style: TextStyle( color: Colors.white, fontSize: 12), ), ], ), ), ], ), SizedBox( height: 20, ), Container( child: Stack( children: [ Container( margin: EdgeInsets.only(right: 30), height: MediaQuery.of(context).size.height - 330, decoration: BoxDecoration( image: DecorationImage( image: NetworkImage( "https://img.rawpixel.com/s3fs-private/rawpixel_images/website_content/291-jir-04656537-nam.jpg?w=800&dpr=1&fit=default&crop=default&auto=format&fm=pjpg&q=75&vib=3&con=3&usm=15&bg=F4F4F3&ixlib=js-2.2.1&s=4132baf0565c757f4137c22ab077f584", ), fit: BoxFit.cover), borderRadius: BorderRadius.circular(20)), ), Container( margin: EdgeInsets.only(right: 30), height: MediaQuery.of(context).size.height - 330, decoration: BoxDecoration( borderRadius: BorderRadius.circular(20), gradient: LinearGradient( begin: FractionalOffset.bottomCenter, end: FractionalOffset.topCenter, colors: [ Colors.transparent, Colors.black.withOpacity(.6), ], stops: [ 0.0, 1.0 ])), ), Positioned( bottom: 0, child: ClipPath( child: Container( height: 110, width: MediaQuery.of(context).size.height + 110, margin: EdgeInsets.only(right: 30), decoration: BoxDecoration( color: GlobalConst.primaryColor, borderRadius: BorderRadius.only( bottomRight: Radius.circular(20), bottomLeft: Radius.circular(20))), ), clipper: BottomVideoClipper(), ), ), Positioned( bottom: 20, left: 20, child: Row( children: [ PhotoUserMeeting( name: "Pedro", image: "https://avatars2.githubusercontent.com/u/33294549?s=460&u=c832597c58517e4eb4ad1df0c5c98b0998a973af&v=4", ), PhotoUserMeeting( name: "Bráulio", image: "https://avatars3.githubusercontent.com/u/20057010?s=460&u=ae95fc706dbf95c4e511d3788bd9026e46f8429a&v=4", ), PhotoUserMeeting( name: "Eleandro", image: "https://avatars1.githubusercontent.com/u/20504726?s=460&u=9b5bb9e8387dcdc1af2acf8b8fff969e34614fab&v=4", ), ], ), ), Positioned( top: 20, left: 30, child: Container( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "Your Daily Status for Today", style: TextStyle( color: Colors.white, fontSize: 16), ), Text( "Call with Teammates", style: TextStyle( color: Colors.white, fontSize: 14), ), ], ), ), ), Positioned( top: 20, right: 70, child: Container( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "3 People", style: TextStyle( color: Colors.white, fontSize: 16), ), Text( "2 missing", style: TextStyle( color: Colors.white, fontSize: 14), ), ], ), ), ), Positioned( bottom: 30, left: 450, child: Container( child: Text( "02:35", style: TextStyle( color: Colors.white, fontSize: 16), ), ), ), Positioned( bottom: 70, left: 410, child: CustomPaint( painter: SpritePainter(_controller), child: Container( width: 120, height: 120, decoration: BoxDecoration( borderRadius: BorderRadius.circular(50), color: Colors.transparent), child: Icon( Icons.stop, color: Colors.white, ), ), ), ), Positioned( top: 30, left: 400, child: Container( padding: EdgeInsets.symmetric( horizontal: 15, vertical: 5), decoration: BoxDecoration( color: Color(0xFFFFD3A9), borderRadius: BorderRadius.circular(20)), child: Text( "ONLY 02:23 LEFT", style: TextStyle( color: Colors.black87, fontSize: 12), ), )), Positioned( bottom: 50, right: 100, child: Container( width: 250, child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Icon( Icons.mic, color: Colors.white, ), SizedBox( width: 20, ), Icon( Icons.tv, color: Colors.white, ), SizedBox( width: 20, ), Icon( Icons.volume_up, color: Colors.white, ), Container( height: 2, width: 90, color: Colors.white, ) ], ), ), ), ], ), ) ], ), ), ), ), ], ), ) ], ), ), ); } } ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/widgets/bottom_video_clipper.dart ================================================ import 'package:flutter/material.dart'; class BottomVideoClipper extends CustomClipper { @override Path getClip(Size size) { var path = Path(); path.lineTo(0.0, size.height); path.lineTo(size.width, size.height); path.lineTo(size.width, 0); path.lineTo(size.width / 2 + 100, 0); path.quadraticBezierTo( size.width / 2, size.height - 20, size.width / 2 - 100, 0); path.close(); return path; } @override bool shouldReclip(CustomClipper oldClipper) => false; } ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/widgets/menu_dark_tile.dart ================================================ import 'package:flutter/material.dart'; class MenuDarkTile extends StatelessWidget { const MenuDarkTile({this.active, this.icon, this.title, this.onTap}); final bool active; final IconData icon; final String title; final Function onTap; @override Widget build(BuildContext context) { return GestureDetector( onTap: onTap, child: Container( margin: EdgeInsets.symmetric(vertical: 5, horizontal: 25), padding: EdgeInsets.only(top: 12, bottom: 12, left: 25), decoration: BoxDecoration( color: active ? Color(0xFF0F1736) : Colors.transparent, borderRadius: BorderRadius.circular(10)), child: Row( mainAxisAlignment: MainAxisAlignment.start, children: [ Icon( icon, color: active ? Color(0xFF37D2F8) : Colors.white24, size: 18, ), SizedBox( width: 10, ), Text( title ?? "", style: TextStyle( color: active ? Colors.white : Colors.white24, fontSize: 12), ) ], ), ), ); } } ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/widgets/notification_top_menu.dart ================================================ import 'package:flutter/material.dart'; class NotificationTopMenu extends StatelessWidget { final String title; final Color color; final IconData icon; const NotificationTopMenu({this.title, this.color, this.icon}); @override Widget build(BuildContext context) { return Container( margin: EdgeInsets.only(right: 40), child: Row( children: [ Icon( icon, color: color, size: 16, ), SizedBox( width: 5, ), Text( title ?? "", style: TextStyle(color: color, fontSize: 12), ) ], ), ); } } ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/widgets/photo_user_meeting.dart ================================================ import 'package:flutter/material.dart'; class PhotoUserMeeting extends StatelessWidget { final String image; final String name; PhotoUserMeeting({this.image, this.name}); @override Widget build(BuildContext context) { return Container( margin: EdgeInsets.only(left: 10), child: Column( children: [ Container( height: 110, width: 100, decoration: BoxDecoration( color: Colors.transparent, image: DecorationImage( image: NetworkImage(image), fit: BoxFit.cover), border: Border.all(color: Colors.white, width: 3), borderRadius: BorderRadius.circular(6)), ), SizedBox( height: 5, ), Text( name ?? "", style: TextStyle(color: Colors.white), ) ], ), ); } } ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/widgets/profile_photo.dart ================================================ import 'package:flutter/material.dart'; class ProfileImageView extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( body: Stack( children: [ Positioned( left: 15, top: 15, child: IconButton( icon: Icon(Icons.close), onPressed: () { Navigator.pop(context); }, ), ), Center( child: Hero( tag: 'view-image', child: ClipRRect( borderRadius: BorderRadius.circular(10), child: Image.network( 'https://avatars2.githubusercontent.com/u/29952508?s=460&u=622321f493deddbb578e7837dc49602402f0be9e&v=4', ), ), ), ), ], ), ); } } ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/widgets/sprite_painter.dart ================================================ import 'dart:math'; import 'package:flutter/material.dart'; class SpritePainter extends CustomPainter { final Animation _animation; SpritePainter(this._animation) : super(repaint: _animation); void circle(Canvas canvas, Rect rect, double value) { double opacity = (1.0 - (value / 4.0)).clamp(0.0, 1.0); Color color = new Color.fromRGBO(255, 98, 92, opacity); double size = rect.width / 2; double area = size * size; double radius = sqrt(area * value / 4); final Paint paint = new Paint()..color = color; canvas.drawCircle(rect.center, radius, paint); } @override void paint(Canvas canvas, Size size) { Rect rect = new Rect.fromLTRB(0.0, 0.0, size.width, size.height); for (int wave = 3; wave >= 0; wave--) { circle(canvas, rect, wave + _animation.value); } } @override bool shouldRepaint(SpritePainter oldDelegate) { return true; } } ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/widgets/user_photo_border_gradient.dart ================================================ import 'package:flutter/material.dart'; class UserPhotoBorderGradient extends StatelessWidget { final bool isGradient; final Color firstColor; final Color secondColor; final String photo; final String name; UserPhotoBorderGradient( {this.isGradient, this.firstColor, this.secondColor, this.name, this.photo}); @override Widget build(BuildContext context) { return Container( margin: EdgeInsets.only(bottom: 20), child: Column( children: [ Container( padding: EdgeInsets.all(2.5), decoration: BoxDecoration( gradient: LinearGradient(colors: [ isGradient ? firstColor : Colors.transparent, isGradient ? secondColor : Colors.transparent ]), borderRadius: BorderRadius.circular(32), ), child: Container( height: 50, width: 50, decoration: BoxDecoration( color: Color(0xFFD6E4ED), image: DecorationImage( image: NetworkImage(photo), ), borderRadius: BorderRadius.all( Radius.circular(50), ), ), ), ), Text( name ?? "", style: TextStyle(color: isGradient ? secondColor : Colors.grey), ) ], ), ); } } ================================================ FILE: zoom_desktop_flutter/lib/src/ui/home/widgets/workspace_selection_card.dart ================================================ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; class WorkSpaceSelectionCard extends StatelessWidget { final bool isActive; final Function onTap; final String image; WorkSpaceSelectionCard({this.isActive = false, this.onTap, this.image}); @override Widget build(BuildContext context) { return GestureDetector( onTap: onTap, child: Stack( children: [ Center( child: MouseRegion( cursor: SystemMouseCursors.click, child: Container( width: 60, height: 60, margin: EdgeInsets.only(top: 10), decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.black38, blurRadius: 15.0, offset: Offset(0.0, 0.75)) ], image: DecorationImage( image: NetworkImage( image, ), fit: BoxFit.cover), borderRadius: BorderRadius.all(Radius.circular(10))), ), ), ), isActive ? Positioned( top: 30, child: Container( height: 20, width: 6, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( bottomRight: Radius.circular(5), topRight: Radius.circular(5), )), ), ) : Container() ], ), ); } } ================================================ FILE: zoom_desktop_flutter/pubspec.yaml ================================================ name: zoom_desktop_flutter description: A new Flutter project. # The following line prevents the package from being accidentally published to # pub.dev using `pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 # followed by an optional build number separated by a +. # Both the version and the builder number may be overridden in flutter # build by specifying --build-name and --build-number, respectively. # In Android, build-name is used as versionName while build-number used as versionCode. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 1.0.0+1 environment: sdk: ">=2.7.0 <3.0.0" dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.3 dashed_circle: ^0.0.1 video_player: ^0.10.11+2 flutter_reaction_button: ^1.0.1 dev_dependencies: flutter_test: sdk: flutter # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true # To add assets to your application, add an assets section, like this: assets: - assets/images/ # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: fonts: - family: Hall fonts: - asset: assets/fonts/hall.ttf style: normal # - asset: fonts/Schyler-Italic.ttf # style: italic # - family: Trajan Pro # fonts: # - asset: fonts/TrajanPro.ttf # - asset: fonts/TrajanPro_Bold.ttf # weight: 700 # # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages ================================================ FILE: zoom_desktop_flutter/test/widget_test.dart ================================================ // This is a basic Flutter widget test. // // To perform an interaction with a widget in your test, use the WidgetTester // utility that Flutter provides. For example, you can send tap and scroll // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:zoom_desktop_flutter/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. await tester.pumpWidget(MyApp()); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget); expect(find.text('1'), findsNothing); // Tap the '+' icon and trigger a frame. await tester.tap(find.byIcon(Icons.add)); await tester.pump(); // Verify that our counter has incremented. expect(find.text('0'), findsNothing); expect(find.text('1'), findsOneWidget); }); } ================================================ FILE: zoom_desktop_flutter/windows/.gitignore ================================================ flutter/ephemeral/ # Visual Studio user-specific files. *.suo *.user *.userosscache *.sln.docstates # Visual Studio build-related files. x64/ x86/ # Visual Studio cache files # files ending in .cache can be ignored *.[Cc]ache # but keep track of directories ending in .cache !*.[Cc]ache/ ================================================ FILE: zoom_desktop_flutter/windows/AppConfiguration.props ================================================ zoom_desktop_flutter ================================================ FILE: zoom_desktop_flutter/windows/FlutterBuild.vcxproj ================================================ Debug x64 Profile x64 Release x64 15.0 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F} Flutter Build 10.0 v141 v142 "$(ProjectDir)scripts\prepare_dependencies" $(Configuration) Running Flutter backend build force_to_run_every_time ================================================ FILE: zoom_desktop_flutter/windows/Runner.sln ================================================  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.29709.97 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Runner", "Runner.vcxproj", "{5A827760-CF8B-408A-99A3-B6C0AD2271E7}" ProjectSection(ProjectDependencies) = postProject {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F} = {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Flutter Build", "FlutterBuild.vcxproj", "{6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Flutter Plugins", "Flutter Plugins", "{5C2E738A-1DD3-445A-AAC8-EEB9648DD07C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 Profile|x64 = Profile|x64 Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Debug|x64.ActiveCfg = Debug|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Debug|x64.Build.0 = Debug|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Profile|x64.ActiveCfg = Profile|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Profile|x64.Build.0 = Profile|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Release|x64.ActiveCfg = Release|x64 {5A827760-CF8B-408A-99A3-B6C0AD2271E7}.Release|x64.Build.0 = Release|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Debug|x64.ActiveCfg = Debug|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Debug|x64.Build.0 = Debug|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Profile|x64.ActiveCfg = Profile|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Profile|x64.Build.0 = Profile|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Release|x64.ActiveCfg = Release|x64 {6419BF13-6ECD-4CD2-9E85-E566A1F03F8F}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {B8A69CB0-A974-4774-9EBD-1E5EECACD186} EndGlobalSection GlobalSection(NestedProjects) = preSolution EndGlobalSection EndGlobal ================================================ FILE: zoom_desktop_flutter/windows/Runner.vcxproj ================================================ Debug x64 Profile x64 Release x64 15.0 {5A827760-CF8B-408A-99A3-B6C0AD2271E7} zoom_desktop_flutter 10.0 Application true v141 v142 Unicode Application false v141 v142 true Unicode Application false v141 v142 true Unicode $(ProjectDir)..\build\windows\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\$(Platform)\$(Configuration)\$(ProjectName)\ $(ProjectDir)..\build\windows\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\ Level4 Disabled true true $(ProjectDir);$(FLUTTER_EPHEMERAL_DIR);$(FLUTTER_EPHEMERAL_DIR)\cpp_client_wrapper\include;%(AdditionalIncludeDirectories) _MBCS;_HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) true 4100 flutter_windows.dll.lib;%(AdditionalDependencies) $(FLUTTER_EPHEMERAL_DIR);$(OutDir)..\Plugins;%(AdditionalLibraryDirectories) "$(ProjectDir)scripts\bundle_assets_and_deps" "$(FLUTTER_EPHEMERAL_DIR)\" "$(OutputPath)" "$(OutputPath)..\Plugins\" "$(TargetFileName)" "$(Configuration)" Bundling dependencies Dummy_Run_Always Level4 MaxSpeed true true true true $(ProjectDir);$(FLUTTER_EPHEMERAL_DIR);$(FLUTTER_EPHEMERAL_DIR)\cpp_client_wrapper\include;%(AdditionalIncludeDirectories) _MBCS;_HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) true 4100 true true flutter_windows.dll.lib;%(AdditionalDependencies) $(FLUTTER_EPHEMERAL_DIR);$(OutDir)..\Plugins;%(AdditionalLibraryDirectories) "$(ProjectDir)scripts\bundle_assets_and_deps" "$(FLUTTER_EPHEMERAL_DIR)\" "$(OutputPath)" "$(OutputPath)..\Plugins\" "$(TargetFileName)" "$(Configuration)" Bundling dependencies Dummy_Run_Always Level4 MaxSpeed true true true true $(ProjectDir);$(FLUTTER_EPHEMERAL_DIR);$(FLUTTER_EPHEMERAL_DIR)\cpp_client_wrapper\include;%(AdditionalIncludeDirectories) _MBCS;_HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) true 4100 true true flutter_windows.dll.lib;%(AdditionalDependencies) $(FLUTTER_EPHEMERAL_DIR);$(OutDir)..\Plugins;%(AdditionalLibraryDirectories) "$(ProjectDir)scripts\bundle_assets_and_deps" "$(FLUTTER_EPHEMERAL_DIR)\" "$(OutputPath)" "$(OutputPath)..\Plugins\" "$(TargetFileName)" "$(Configuration)" Bundling dependencies Dummy_Run_Always $(SolutionDir) ================================================ FILE: zoom_desktop_flutter/windows/Runner.vcxproj.filters ================================================  {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hh;hpp;hxx;hm;inl;inc;ipp;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms {2761a4b5-57b2-4d50-a677-d20ddc17a7f1} Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files\Client Wrapper Source Files\Client Wrapper Source Files\Client Wrapper Header Files Header Files Header Files Header Files Header Files Header Files Header Files Resource Files Resource Files ================================================ FILE: zoom_desktop_flutter/windows/flutter/.template_version ================================================ 3 ================================================ FILE: zoom_desktop_flutter/windows/flutter/GeneratedPlugins.props ================================================ ================================================ FILE: zoom_desktop_flutter/windows/flutter/generated_plugin_registrant.cc ================================================ // // Generated file. Do not edit. // #include "generated_plugin_registrant.h" void RegisterPlugins(flutter::PluginRegistry* registry) { } ================================================ FILE: zoom_desktop_flutter/windows/flutter/generated_plugin_registrant.h ================================================ // // Generated file. Do not edit. // #ifndef GENERATED_PLUGIN_REGISTRANT_ #define GENERATED_PLUGIN_REGISTRANT_ #include // Registers Flutter plugins. void RegisterPlugins(flutter::PluginRegistry* registry); #endif // GENERATED_PLUGIN_REGISTRANT_ ================================================ FILE: zoom_desktop_flutter/windows/runner/Runner.rc ================================================ // Microsoft Visual C++ generated resource script. // #pragma code_page(65001) #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "winres.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (United States) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resource.h\0" END 2 TEXTINCLUDE BEGIN "#include ""winres.h""\r\n" "\0" END 3 TEXTINCLUDE BEGIN "\r\n" "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDI_APP_ICON ICON "resources\\app_icon.ico" #endif // English (United States) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED ================================================ FILE: zoom_desktop_flutter/windows/runner/flutter_window.cpp ================================================ #include "flutter_window.h" #include "flutter/generated_plugin_registrant.h" FlutterWindow::FlutterWindow(RunLoop* run_loop, const flutter::DartProject& project) : run_loop_(run_loop), project_(project) {} FlutterWindow::~FlutterWindow() {} void FlutterWindow::OnCreate() { Win32Window::OnCreate(); // The size here is arbitrary since SetChildContent will resize it. flutter_controller_ = std::make_unique(100, 100, project_); RegisterPlugins(flutter_controller_.get()); run_loop_->RegisterFlutterInstance(flutter_controller_.get()); SetChildContent(flutter_controller_->view()->GetNativeWindow()); } void FlutterWindow::OnDestroy() { if (flutter_controller_) { run_loop_->UnregisterFlutterInstance(flutter_controller_.get()); flutter_controller_ = nullptr; } Win32Window::OnDestroy(); } ================================================ FILE: zoom_desktop_flutter/windows/runner/flutter_window.h ================================================ #ifndef FLUTTER_WINDOW_H_ #define FLUTTER_WINDOW_H_ #include #include #include "run_loop.h" #include "win32_window.h" #include // A window that does nothing but host a Flutter view. class FlutterWindow : public Win32Window { public: // Creates a new FlutterWindow driven by the |run_loop|, hosting a // Flutter view running |project|. explicit FlutterWindow(RunLoop* run_loop, const flutter::DartProject& project); virtual ~FlutterWindow(); protected: // Win32Window: void OnCreate() override; void OnDestroy() override; private: // The run loop driving events for this window. RunLoop* run_loop_; // The project to run. flutter::DartProject project_; // The Flutter instance hosted by this window. std::unique_ptr flutter_controller_; }; #endif // FLUTTER_WINDOW_H_ ================================================ FILE: zoom_desktop_flutter/windows/runner/main.cpp ================================================ #include #include #include #include "flutter_window.h" #include "run_loop.h" #include "utils.h" #include "window_configuration.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, _In_ wchar_t *command_line, _In_ int show_command) { // Attach to console when present (e.g., 'flutter run') or create a // new console when running with a debugger. if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { CreateAndAttachConsole(); } // Initialize COM, so that it is available for use in the library and/or // plugins. ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); RunLoop run_loop; flutter::DartProject project(L"data"); FlutterWindow window(&run_loop, project); Win32Window::Point origin(kFlutterWindowOriginX, kFlutterWindowOriginY); Win32Window::Size size(kFlutterWindowWidth, kFlutterWindowHeight); if (!window.CreateAndShow(kFlutterWindowTitle, origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true); run_loop.Run(); ::CoUninitialize(); return EXIT_SUCCESS; } ================================================ FILE: zoom_desktop_flutter/windows/runner/resource.h ================================================ //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by Runner.rc // #define IDI_APP_ICON 101 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 102 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1001 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif ================================================ FILE: zoom_desktop_flutter/windows/runner/run_loop.cpp ================================================ #include "run_loop.h" #include // Don't stomp std::min/std::max #undef max #undef min #include RunLoop::RunLoop() {} RunLoop::~RunLoop() {} void RunLoop::Run() { bool keep_running = true; TimePoint next_flutter_event_time = TimePoint::clock::now(); while (keep_running) { std::chrono::nanoseconds wait_duration = std::max(std::chrono::nanoseconds(0), next_flutter_event_time - TimePoint::clock::now()); ::MsgWaitForMultipleObjects( 0, nullptr, FALSE, static_cast(wait_duration.count() / 1000), QS_ALLINPUT); bool processed_events = false; MSG message; // All pending Windows messages must be processed; MsgWaitForMultipleObjects // won't return again for items left in the queue after PeekMessage. while (::PeekMessage(&message, nullptr, 0, 0, PM_REMOVE)) { processed_events = true; if (message.message == WM_QUIT) { keep_running = false; break; } ::TranslateMessage(&message); ::DispatchMessage(&message); // Allow Flutter to process messages each time a Windows message is // processed, to prevent starvation. next_flutter_event_time = std::min(next_flutter_event_time, ProcessFlutterMessages()); } // If the PeekMessage loop didn't run, process Flutter messages. if (!processed_events) { next_flutter_event_time = std::min(next_flutter_event_time, ProcessFlutterMessages()); } } } void RunLoop::RegisterFlutterInstance( flutter::FlutterViewController* flutter_instance) { flutter_instances_.insert(flutter_instance); } void RunLoop::UnregisterFlutterInstance( flutter::FlutterViewController* flutter_instance) { flutter_instances_.erase(flutter_instance); } RunLoop::TimePoint RunLoop::ProcessFlutterMessages() { TimePoint next_event_time = TimePoint::max(); for (auto flutter_controller : flutter_instances_) { std::chrono::nanoseconds wait_duration = flutter_controller->ProcessMessages(); if (wait_duration != std::chrono::nanoseconds::max()) { next_event_time = std::min(next_event_time, TimePoint::clock::now() + wait_duration); } } return next_event_time; } ================================================ FILE: zoom_desktop_flutter/windows/runner/run_loop.h ================================================ #ifndef RUN_LOOP_H_ #define RUN_LOOP_H_ #include #include #include // A runloop that will service events for Flutter instances as well // as native messages. class RunLoop { public: RunLoop(); ~RunLoop(); // Prevent copying RunLoop(RunLoop const&) = delete; RunLoop& operator=(RunLoop const&) = delete; // Runs the run loop until the application quits. void Run(); // Registers the given Flutter instance for event servicing. void RegisterFlutterInstance( flutter::FlutterViewController* flutter_instance); // Unregisters the given Flutter instance from event servicing. void UnregisterFlutterInstance( flutter::FlutterViewController* flutter_instance); private: using TimePoint = std::chrono::steady_clock::time_point; // Processes all currently pending messages for registered Flutter instances. TimePoint ProcessFlutterMessages(); std::set flutter_instances_; }; #endif // RUN_LOOP_H_ ================================================ FILE: zoom_desktop_flutter/windows/runner/runner.exe.manifest ================================================ PerMonitorV2 ================================================ FILE: zoom_desktop_flutter/windows/runner/utils.cpp ================================================ #include "utils.h" #include #include #include #include #include void CreateAndAttachConsole() { if (::AllocConsole()) { FILE *unused; if (freopen_s(&unused, "CONOUT$", "w", stdout)) { _dup2(_fileno(stdout), 1); } if (freopen_s(&unused, "CONOUT$", "w", stderr)) { _dup2(_fileno(stdout), 2); } std::ios::sync_with_stdio(); FlutterDesktopResyncOutputStreams(); } } ================================================ FILE: zoom_desktop_flutter/windows/runner/utils.h ================================================ #ifndef CONSOLE_UTILS_H_ #define CONSOLE_UTILS_H_ // Creates a console for the process, and redirects stdout and stderr to // it for both the runner and the Flutter library. void CreateAndAttachConsole(); #endif // CONSOLE_UTILS_H_ ================================================ FILE: zoom_desktop_flutter/windows/runner/win32_window.cpp ================================================ #include "win32_window.h" #include #include "resource.h" namespace { constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; // The number of Win32Window objects that currently exist. static int g_active_window_count = 0; using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); // Scale helper to convert logical scaler values to physical using passed in // scale factor int Scale(int source, double scale_factor) { return static_cast(source * scale_factor); } // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. // This API is only needed for PerMonitor V1 awareness mode. void EnableFullDpiSupportIfAvailable(HWND hwnd) { HMODULE user32_module = LoadLibraryA("User32.dll"); if (!user32_module) { return; } auto enable_non_client_dpi_scaling = reinterpret_cast( GetProcAddress(user32_module, "EnableNonClientDpiScaling")); if (enable_non_client_dpi_scaling != nullptr) { enable_non_client_dpi_scaling(hwnd); FreeLibrary(user32_module); } } } // namespace // Manages the Win32Window's window class registration. class WindowClassRegistrar { public: ~WindowClassRegistrar() = default; // Returns the singleton registar instance. static WindowClassRegistrar* GetInstance() { if (!instance_) { instance_ = new WindowClassRegistrar(); } return instance_; } // Returns the name of the window class, registering the class if it hasn't // previously been registered. const wchar_t* GetWindowClass(); // Unregisters the window class. Should only be called if there are no // instances of the window. void UnregisterWindowClass(); private: WindowClassRegistrar() = default; static WindowClassRegistrar* instance_; bool class_registered_ = false; }; WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; const wchar_t* WindowClassRegistrar::GetWindowClass() { if (!class_registered_) { WNDCLASS window_class{}; window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); window_class.lpszClassName = kWindowClassName; window_class.style = CS_HREDRAW | CS_VREDRAW; window_class.cbClsExtra = 0; window_class.cbWndExtra = 0; window_class.hInstance = GetModuleHandle(nullptr); window_class.hIcon = LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); window_class.hbrBackground = 0; window_class.lpszMenuName = nullptr; window_class.lpfnWndProc = Win32Window::WndProc; RegisterClass(&window_class); class_registered_ = true; } return kWindowClassName; } void WindowClassRegistrar::UnregisterWindowClass() { UnregisterClass(kWindowClassName, nullptr); class_registered_ = false; } Win32Window::Win32Window() { ++g_active_window_count; } Win32Window::~Win32Window() { --g_active_window_count; Destroy(); } bool Win32Window::CreateAndShow(const std::wstring& title, const Point& origin, const Size& size) { Destroy(); const wchar_t* window_class = WindowClassRegistrar::GetInstance()->GetWindowClass(); const POINT target_point = {static_cast(origin.x), static_cast(origin.y)}; HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); double scale_factor = dpi / 96.0; HWND window = CreateWindow( window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE, Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), Scale(size.width, scale_factor), Scale(size.height, scale_factor), nullptr, nullptr, GetModuleHandle(nullptr), this); OnCreate(); return window != nullptr; } // static LRESULT CALLBACK Win32Window::WndProc(HWND const window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept { if (message == WM_NCCREATE) { auto window_struct = reinterpret_cast(lparam); SetWindowLongPtr(window, GWLP_USERDATA, reinterpret_cast(window_struct->lpCreateParams)); auto that = static_cast(window_struct->lpCreateParams); EnableFullDpiSupportIfAvailable(window); that->window_handle_ = window; } else if (Win32Window* that = GetThisFromHandle(window)) { return that->MessageHandler(window, message, wparam, lparam); } return DefWindowProc(window, message, wparam, lparam); } LRESULT Win32Window::MessageHandler(HWND hwnd, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept { auto window = reinterpret_cast(GetWindowLongPtr(hwnd, GWLP_USERDATA)); if (window == nullptr) { return 0; } switch (message) { case WM_DESTROY: window_handle_ = nullptr; Destroy(); if (quit_on_close_) { PostQuitMessage(0); } return 0; case WM_DPICHANGED: { auto newRectSize = reinterpret_cast(lparam); LONG newWidth = newRectSize->right - newRectSize->left; LONG newHeight = newRectSize->bottom - newRectSize->top; SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, newHeight, SWP_NOZORDER | SWP_NOACTIVATE); return 0; } case WM_SIZE: RECT rect; GetClientRect(hwnd, &rect); if (child_content_ != nullptr) { // Size and position the child window. MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, TRUE); } return 0; case WM_ACTIVATE: if (child_content_ != nullptr) { SetFocus(child_content_); } return 0; // Messages that are directly forwarded to embedding. case WM_FONTCHANGE: SendMessage(child_content_, WM_FONTCHANGE, NULL, NULL); return 0; } return DefWindowProc(window_handle_, message, wparam, lparam); } void Win32Window::Destroy() { OnDestroy(); if (window_handle_) { DestroyWindow(window_handle_); window_handle_ = nullptr; } if (g_active_window_count == 0) { WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); } } Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { return reinterpret_cast( GetWindowLongPtr(window, GWLP_USERDATA)); } void Win32Window::SetChildContent(HWND content) { child_content_ = content; SetParent(content, window_handle_); RECT frame; GetClientRect(window_handle_, &frame); MoveWindow(content, frame.left, frame.top, frame.right - frame.left, frame.bottom - frame.top, true); SetFocus(child_content_); } HWND Win32Window::GetHandle() { return window_handle_; } void Win32Window::SetQuitOnClose(bool quit_on_close) { quit_on_close_ = quit_on_close; } void Win32Window::OnCreate() { // No-op; provided for subclasses. } void Win32Window::OnDestroy() { // No-op; provided for subclasses. } ================================================ FILE: zoom_desktop_flutter/windows/runner/win32_window.h ================================================ #ifndef WIN32_WINDOW_H_ #define WIN32_WINDOW_H_ #include #include #include #include #include // A class abstraction for a high DPI-aware Win32 Window. Intended to be // inherited from by classes that wish to specialize with custom // rendering and input handling class Win32Window { public: struct Point { unsigned int x; unsigned int y; Point(unsigned int x, unsigned int y) : x(x), y(y) {} }; struct Size { unsigned int width; unsigned int height; Size(unsigned int width, unsigned int height) : width(width), height(height) {} }; Win32Window(); virtual ~Win32Window(); // Creates and shows a win32 window with |title| and position and size using // |origin| and |size|. New windows are created on the default monitor. Window // sizes are specified to the OS in physical pixels, hence to ensure a // consistent size to will treat the width height passed in to this function // as logical pixels and scale to appropriate for the default monitor. Returns // true if the window was created successfully. bool CreateAndShow(const std::wstring& title, const Point& origin, const Size& size); // Release OS resources associated with window. void Destroy(); // Inserts |content| into the window tree. void SetChildContent(HWND content); // Returns the backing Window handle to enable clients to set icon and other // window properties. Returns nullptr if the window has been destroyed. HWND GetHandle(); // If true, closing this window will quit the application. void SetQuitOnClose(bool quit_on_close); protected: // Processes and route salient window messages for mouse handling, // size change and DPI. Delegates handling of these to member overloads that // inheriting classes can handle. virtual LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept; // Called when CreateAndShow is called, allowing subclass window-related // setup. virtual void OnCreate(); // Called when Destroy is called. virtual void OnDestroy(); private: friend class WindowClassRegistrar; // OS callback called by message pump. Handles the WM_NCCREATE message which // is passed when the non-client area is being created and enables automatic // non-client DPI scaling so that the non-client area automatically // responsponds to changes in DPI. All other messages are handled by // MessageHandler. static LRESULT CALLBACK WndProc(HWND const window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept; // Retrieves a class instance pointer for |window| static Win32Window* GetThisFromHandle(HWND const window) noexcept; bool quit_on_close_ = false; // window handle for top level window. HWND window_handle_ = nullptr; // window handle for hosted content. HWND child_content_ = nullptr; }; #endif // WIN32_WINDOW_H_ ================================================ FILE: zoom_desktop_flutter/windows/runner/window_configuration.cpp ================================================ #include "window_configuration.h" const wchar_t* kFlutterWindowTitle = L"zoom_desktop_flutter"; const unsigned int kFlutterWindowOriginX = 10; const unsigned int kFlutterWindowOriginY = 10; const unsigned int kFlutterWindowWidth = 1280; const unsigned int kFlutterWindowHeight = 720; ================================================ FILE: zoom_desktop_flutter/windows/runner/window_configuration.h ================================================ #ifndef WINDOW_CONFIGURATION_ #define WINDOW_CONFIGURATION_ // This is a temporary approach to isolate changes that people are likely to // make to main.cpp, where the APIs are still in flux. This will reduce the // need to resolve conflicts or re-create changes slightly differently every // time the Windows Flutter API surface changes. // // Longer term there should be simpler configuration options for common // customizations like this, without requiring native code changes. extern const wchar_t* kFlutterWindowTitle; extern const unsigned int kFlutterWindowOriginX; extern const unsigned int kFlutterWindowOriginY; extern const unsigned int kFlutterWindowWidth; extern const unsigned int kFlutterWindowHeight; #endif // WINDOW_CONFIGURATION_ ================================================ FILE: zoom_desktop_flutter/windows/scripts/bundle_assets_and_deps.bat ================================================ @echo off set FLUTTER_CACHE_DIR=%~1 set BUNDLE_DIR=%~2 set PLUGIN_DIR=%~3 set EXE_NAME=%~4 set BUILD_MODE=%~5 set DATA_DIR=%BUNDLE_DIR%data if not exist "%DATA_DIR%" call mkdir "%DATA_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% :: Write the executable name to the location expected by the Flutter tool. echo %EXE_NAME%>"%FLUTTER_CACHE_DIR%exe_filename" :: Copy the Flutter assets to the data directory. set FLUTTER_BUILD_DIR=%~dp0..\..\build\ set ASSET_DIR_NAME=flutter_assets set TARGET_ASSET_DIR=%DATA_DIR%\%ASSET_DIR_NAME% if exist "%TARGET_ASSET_DIR%" call rmdir /s /q "%TARGET_ASSET_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% call xcopy /s /e /i /q "%FLUTTER_BUILD_DIR%%ASSET_DIR_NAME%" "%TARGET_ASSET_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% :: Copy the icudtl.dat file from the Flutter tree to the data directory. call xcopy /y /d /q "%FLUTTER_CACHE_DIR%icudtl.dat" "%DATA_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% :: For non-debug modes, copy app.so into the data directory. if not %BUILD_MODE% == "Debug" ( call xcopy /y /d /q "%FLUTTER_BUILD_DIR%windows\app.so" "%DATA_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% ) :: Copy the Flutter DLL to the target location. call xcopy /y /d /q "%FLUTTER_CACHE_DIR%flutter_windows.dll" "%BUNDLE_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% :: Copy any Plugin DLLs to the target location. if exist "%PLUGIN_DIR%" ( call xcopy /y /d /q "%PLUGIN_DIR%"*.dll "%BUNDLE_DIR%" if %errorlevel% neq 0 exit /b %errorlevel% ) ================================================ FILE: zoom_desktop_flutter/windows/scripts/prepare_dependencies.bat ================================================ @echo off :: Run flutter tool backend. set BUILD_MODE=%~1 "%FLUTTER_ROOT%\packages\flutter_tools\bin\tool_backend" windows-x64 %BUILD_MODE%