├── linux ├── .gitignore ├── main.cc ├── flutter │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ ├── generated_plugins.cmake │ └── CMakeLists.txt ├── my_application.h ├── my_application.cc └── CMakeLists.txt ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist └── .gitignore ├── macos ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── .gitignore ├── Runner │ ├── Configs │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ ├── Warnings.xcconfig │ │ └── AppInfo.xcconfig │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_64.png │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_512.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Release.entitlements │ ├── DebugProfile.entitlements │ ├── MainFlutterWindow.swift │ └── Info.plist ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Runner.xcodeproj │ ├── project.xcworkspace │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ └── xcschemes │ └── Runner.xcscheme ├── lib ├── resources │ ├── images │ │ ├── bits.png │ │ └── line.png │ ├── fonts │ │ ├── Raleway-Thin.ttf │ │ ├── Raleway-Regular.ttf │ │ └── Montserrat-Regular.ttf │ └── texts │ │ └── strings.dart ├── database │ └── dao │ │ └── services.dart ├── ui │ ├── views │ │ ├── detail_page.dart │ │ ├── mainmenu │ │ │ ├── splashscreen.dart │ │ │ └── mainmenutabuser.dart │ │ ├── knowledge.dart │ │ ├── education.dart │ │ ├── food.dart │ │ ├── housing.dart │ │ ├── charity.dart │ │ ├── health.dart │ │ ├── work.dart │ │ ├── family.dart │ │ ├── aboutus.dart │ │ └── ousregistration.dart │ └── widgets │ │ ├── showalertdialog.dart │ │ ├── styles.dart │ │ └── textfield.dart └── main.dart ├── windows ├── runner │ ├── resources │ │ └── app_icon.ico │ ├── resource.h │ ├── CMakeLists.txt │ ├── utils.h │ ├── runner.exe.manifest │ ├── run_loop.h │ ├── flutter_window.h │ ├── main.cpp │ ├── utils.cpp │ ├── flutter_window.cpp │ ├── run_loop.cpp │ ├── Runner.rc │ ├── win32_window.h │ └── win32_window.cpp ├── flutter │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ ├── generated_plugins.cmake │ └── CMakeLists.txt ├── .gitignore └── CMakeLists.txt ├── android ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── devops_demo │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── settings.gradle └── build.gradle ├── .metadata ├── README.md ├── .gitignore ├── test └── widget_test.dart ├── pubspec.yaml └── pubspec.lock /linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /lib/resources/images/bits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/lib/resources/images/bits.png -------------------------------------------------------------------------------- /lib/resources/images/line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/lib/resources/images/line.png -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/xcuserdata/ 7 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /lib/resources/fonts/Raleway-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/lib/resources/fonts/Raleway-Thin.ttf -------------------------------------------------------------------------------- /windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /lib/resources/fonts/Raleway-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/lib/resources/fonts/Raleway-Regular.ttf -------------------------------------------------------------------------------- /lib/resources/fonts/Montserrat-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/lib/resources/fonts/Montserrat-Regular.ttf -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/database/dao/services.dart: -------------------------------------------------------------------------------- 1 | class Services { 2 | String title; 3 | double indicatorValue; 4 | 5 | Services({required this.title, required this.indicatorValue}); 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahendraprabuS/devops_demo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/devops_demo/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.devops_demo 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | #include "generated_plugin_registrant.h" 6 | 7 | 8 | void fl_register_plugins(FlPluginRegistry* registry) { 9 | } 10 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | #include "generated_plugin_registrant.h" 6 | 7 | 8 | void RegisterPlugins(flutter::PluginRegistry* registry) { 9 | } 10 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | 9 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 10 | } 11 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip 7 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: d79295af24c3ed621c33713ecda14ad196fd9c31 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 6 | #define GENERATED_PLUGIN_REGISTRANT_ 7 | 8 | #include 9 | 10 | // Registers Flutter plugins. 11 | void fl_register_plugins(FlPluginRegistry* registry); 12 | 13 | #endif // GENERATED_PLUGIN_REGISTRANT_ 14 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 6 | #define GENERATED_PLUGIN_REGISTRANT_ 7 | 8 | #include 9 | 10 | // Registers Flutter plugins. 11 | void RegisterPlugins(flutter::PluginRegistry* registry); 12 | 13 | #endif // GENERATED_PLUGIN_REGISTRANT_ 14 | -------------------------------------------------------------------------------- /windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | 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. -------------------------------------------------------------------------------- /lib/ui/views/detail_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | 4 | class DetailPage extends StatelessWidget { 5 | final Services services; 6 | 7 | DetailPage({Key? key, required this.services}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Scaffold(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | ) 7 | 8 | set(PLUGIN_BUNDLED_LIBRARIES) 9 | 10 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 11 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 12 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 13 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 14 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 15 | endforeach(plugin) 16 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | ) 7 | 8 | set(PLUGIN_BUNDLED_LIBRARIES) 9 | 10 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 11 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 12 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 13 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 14 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 15 | endforeach(plugin) 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # devops_demo 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.15) 2 | project(runner LANGUAGES CXX) 3 | 4 | add_executable(${BINARY_NAME} WIN32 5 | "flutter_window.cpp" 6 | "main.cpp" 7 | "run_loop.cpp" 8 | "utils.cpp" 9 | "win32_window.cpp" 10 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 11 | "Runner.rc" 12 | "runner.exe.manifest" 13 | ) 14 | apply_standard_settings(${BINARY_NAME}) 15 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 16 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 17 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 18 | add_dependencies(${BINARY_NAME} flutter_assemble) 19 | -------------------------------------------------------------------------------- /macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = devops_demo 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.devopsDemo 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2021 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/ephemeral/ 22 | Flutter/app.flx 23 | Flutter/app.zip 24 | Flutter/flutter_assets/ 25 | Flutter/flutter_export_environment.sh 26 | ServiceDefinitions.json 27 | Runner/GeneratedPluginRegistrant.* 28 | 29 | # Exceptions to above rules. 30 | !default.mode1v3 31 | !default.mode2v3 32 | !default.pbxuser 33 | !default.perspectivev3 34 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/resources/texts/strings.dart'; 3 | import 'package:devops_demo/ui/views/mainmenu/mainmenutabuser.dart'; 4 | import 'package:devops_demo/ui/views/mainmenu/splashscreen.dart'; 5 | 6 | Future main() async { 7 | WidgetsFlutterBinding.ensureInitialized(); 8 | runApp(MaterialApp( 9 | title: Strings.APP_NAME, 10 | debugShowCheckedModeBanner: false, 11 | theme: ThemeData( 12 | //primarySwatch: Colors.green, 13 | primaryColor: Color.fromRGBO(58, 66, 86, 1.0), 14 | ), 15 | home: SplashScreen(), 16 | routes: { 17 | Strings.PG_RT_MM_TAB_USR: (BuildContext context) => new MainMenuTabUser(), 18 | }, 19 | )); 20 | } 21 | -------------------------------------------------------------------------------- /windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | void main() { 12 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 13 | // Build our app and trigger a frame. 14 | // await tester.pumpWidget(MyApp()); 15 | 16 | // Verify that our counter starts at 0. 17 | expect(find.text('0'), findsOneWidget); 18 | expect(find.text('1'), findsNothing); 19 | 20 | // Tap the '+' icon and trigger a frame. 21 | await tester.tap(find.byIcon(Icons.add)); 22 | await tester.pump(); 23 | 24 | // Verify that our counter has incremented. 25 | expect(find.text('0'), findsNothing); 26 | expect(find.text('1'), findsOneWidget); 27 | }); 28 | } 29 | -------------------------------------------------------------------------------- /windows/runner/run_loop.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_RUN_LOOP_H_ 2 | #define RUNNER_RUN_LOOP_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | 9 | // A runloop that will service events for Flutter instances as well 10 | // as native messages. 11 | class RunLoop { 12 | public: 13 | RunLoop(); 14 | ~RunLoop(); 15 | 16 | // Prevent copying 17 | RunLoop(RunLoop const&) = delete; 18 | RunLoop& operator=(RunLoop const&) = delete; 19 | 20 | // Runs the run loop until the application quits. 21 | void Run(); 22 | 23 | // Registers the given Flutter instance for event servicing. 24 | void RegisterFlutterInstance( 25 | flutter::FlutterEngine* flutter_instance); 26 | 27 | // Unregisters the given Flutter instance from event servicing. 28 | void UnregisterFlutterInstance( 29 | flutter::FlutterEngine* flutter_instance); 30 | 31 | private: 32 | using TimePoint = std::chrono::steady_clock::time_point; 33 | 34 | // Processes all currently pending messages for registered Flutter instances. 35 | TimePoint ProcessFlutterMessages(); 36 | 37 | std::set flutter_instances_; 38 | }; 39 | 40 | #endif // RUNNER_RUN_LOOP_H_ 41 | -------------------------------------------------------------------------------- /macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "run_loop.h" 10 | #include "win32_window.h" 11 | 12 | // A window that does nothing but host a Flutter view. 13 | class FlutterWindow : public Win32Window { 14 | public: 15 | // Creates a new FlutterWindow driven by the |run_loop|, hosting a 16 | // Flutter view running |project|. 17 | explicit FlutterWindow(RunLoop* run_loop, 18 | const flutter::DartProject& project); 19 | virtual ~FlutterWindow(); 20 | 21 | protected: 22 | // Win32Window: 23 | bool OnCreate() override; 24 | void OnDestroy() override; 25 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 26 | LPARAM const lparam) noexcept override; 27 | 28 | private: 29 | // The run loop driving events for this window. 30 | RunLoop* run_loop_; 31 | 32 | // The project to run. 33 | flutter::DartProject project_; 34 | 35 | // The Flutter instance hosted by this window. 36 | std::unique_ptr flutter_controller_; 37 | }; 38 | 39 | #endif // RUNNER_FLUTTER_WINDOW_H_ 40 | -------------------------------------------------------------------------------- /windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "run_loop.h" 7 | #include "utils.h" 8 | 9 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 10 | _In_ wchar_t *command_line, _In_ int show_command) { 11 | // Attach to console when present (e.g., 'flutter run') or create a 12 | // new console when running with a debugger. 13 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 14 | CreateAndAttachConsole(); 15 | } 16 | 17 | // Initialize COM, so that it is available for use in the library and/or 18 | // plugins. 19 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 20 | 21 | RunLoop run_loop; 22 | 23 | flutter::DartProject project(L"data"); 24 | 25 | std::vector command_line_arguments = 26 | GetCommandLineArguments(); 27 | 28 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 29 | 30 | FlutterWindow window(&run_loop, project); 31 | Win32Window::Point origin(10, 10); 32 | Win32Window::Size size(1280, 720); 33 | if (!window.CreateAndShow(L"devops_demo", origin, size)) { 34 | return EXIT_FAILURE; 35 | } 36 | window.SetQuitOnClose(true); 37 | 38 | run_loop.Run(); 39 | 40 | ::CoUninitialize(); 41 | return EXIT_SUCCESS; 42 | } 43 | -------------------------------------------------------------------------------- /lib/ui/views/mainmenu/splashscreen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:devops_demo/resources/texts/strings.dart'; 5 | 6 | class SplashScreen extends StatefulWidget { 7 | @override 8 | SplashScreenState createState() => new SplashScreenState(); 9 | } 10 | 11 | class SplashScreenState extends State { 12 | startTime() async { 13 | var _duration = new Duration(seconds: 2); 14 | return new Timer(_duration, navigationPage); 15 | } 16 | 17 | void navigationPage() { 18 | Navigator.of(context).pushReplacementNamed(Strings.PG_RT_MM_TAB_USR); 19 | } 20 | 21 | @override 22 | void initState() { 23 | super.initState(); 24 | startTime(); 25 | } 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | return new Scaffold( 30 | body: new Container( 31 | decoration: BoxDecoration( 32 | gradient: LinearGradient( 33 | colors: [ 34 | Colors.blue, 35 | Colors.green, 36 | ], 37 | stops: [ 38 | 0.0, 39 | 1.0 40 | ], 41 | begin: FractionalOffset.topCenter, 42 | end: FractionalOffset.bottomCenter, 43 | tileMode: TileMode.repeated)), 44 | child: Center( 45 | child: new Image.asset(Strings.CHN_IMG_PATH), 46 | )), 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /lib/ui/widgets/showalertdialog.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:devops_demo/resources/texts/strings.dart'; 5 | 6 | showAlertDialogSingle(BuildContext context, String title, String content) { 7 | // set up the button 8 | Widget okButton = TextButton( 9 | child: Text(Strings.OK), 10 | onPressed: () { 11 | Navigator.pop(context); 12 | }, 13 | ); 14 | 15 | // set up the AlertDialog 16 | AlertDialog alert = AlertDialog( 17 | title: Text(title), 18 | content: Text(content), 19 | actions: [ 20 | okButton, 21 | ], 22 | ); 23 | 24 | // show the dialog 25 | showDialog( 26 | context: context, 27 | builder: (BuildContext context) { 28 | return alert; 29 | }, 30 | ); 31 | } 32 | 33 | showAlertDialogDouble(BuildContext context, String title, String content) { 34 | // set up the button 35 | Widget yesButton = TextButton( 36 | child: Text(Strings.YES), 37 | onPressed: () { 38 | exit(0); 39 | }, 40 | ); 41 | 42 | Widget noButton = TextButton( 43 | child: Text(Strings.NO), 44 | onPressed: () { 45 | Navigator.of(context).pop(false); 46 | }, 47 | ); 48 | 49 | // set up the AlertDialog 50 | AlertDialog alert = AlertDialog( 51 | title: Text(title), 52 | content: Text(content), 53 | actions: [ 54 | noButton, 55 | yesButton, 56 | ], 57 | ); 58 | 59 | // show the dialog 60 | showDialog( 61 | context: context, 62 | builder: (BuildContext context) { 63 | return alert; 64 | }, 65 | ); 66 | } 67 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | devops_demo 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /lib/ui/widgets/styles.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/resources/texts/strings.dart'; 3 | 4 | final ButtonStyle elevatedButtonStyle = ButtonStyle( 5 | backgroundColor: 6 | MaterialStateProperty.all(Color.fromRGBO(58, 66, 86, 1.0)), 7 | shape: MaterialStateProperty.all( 8 | RoundedRectangleBorder( 9 | borderRadius: BorderRadius.circular(32.0), 10 | ))); 11 | 12 | final ButtonStyle buttonStyle = ButtonStyle( 13 | shape: MaterialStateProperty.all( 14 | RoundedRectangleBorder( 15 | ))); 16 | 17 | final TextStyle selectedTextStyle = TextStyle( 18 | color: Colors.white, 19 | fontSize: 16, 20 | ); 21 | 22 | final TextStyle unSelectedTextStyle = TextStyle( 23 | color: Colors.blue, 24 | fontSize: 14, 25 | ); 26 | 27 | final TextStyle normalTextStyle = TextStyle( 28 | color: Colors.white, 29 | fontSize: 14, 30 | ); 31 | 32 | InputDecoration inputDecoration(String hintText) { 33 | return InputDecoration( 34 | counterText: Strings.EMPTY_STRING, 35 | contentPadding: EdgeInsets.fromLTRB(20.0, 15.0, 20.0, 15.0), 36 | hintText: hintText, 37 | border: OutlineInputBorder(borderRadius: BorderRadius.circular(32.0))); 38 | } 39 | 40 | ShapeDecoration shapeDecoration(List gradient) { 41 | return ShapeDecoration( 42 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0)), 43 | gradient: LinearGradient( 44 | colors: gradient, begin: Alignment.topLeft, end: Alignment.bottomRight), 45 | ); 46 | } 47 | 48 | BoxDecoration boxDecoration = BoxDecoration( 49 | border: Border.all( 50 | color: Colors.black26, 51 | ), 52 | borderRadius: BorderRadius.circular(32.0), 53 | ); 54 | 55 | SizedBox sizedBoxHeight = SizedBox(height: 10); 56 | 57 | SizedBox sizedBoxWidth = SizedBox(width: 20); 58 | -------------------------------------------------------------------------------- /windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr); 51 | if (target_length == 0) { 52 | return std::string(); 53 | } 54 | std::string utf8_string; 55 | utf8_string.resize(target_length); 56 | int converted_length = ::WideCharToMultiByte( 57 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 58 | -1, utf8_string.data(), 59 | target_length, nullptr, nullptr); 60 | if (converted_length == 0) { 61 | return std::string(); 62 | } 63 | return utf8_string; 64 | } 65 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.devops_demo" 38 | minSdkVersion 16 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 59 | } 60 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(RunLoop* run_loop, 8 | const flutter::DartProject& project) 9 | : run_loop_(run_loop), project_(project) {} 10 | 11 | FlutterWindow::~FlutterWindow() {} 12 | 13 | bool FlutterWindow::OnCreate() { 14 | if (!Win32Window::OnCreate()) { 15 | return false; 16 | } 17 | 18 | RECT frame = GetClientArea(); 19 | 20 | // The size here must match the window dimensions to avoid unnecessary surface 21 | // creation / destruction in the startup path. 22 | flutter_controller_ = std::make_unique( 23 | frame.right - frame.left, frame.bottom - frame.top, project_); 24 | // Ensure that basic setup of the controller was successful. 25 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 26 | return false; 27 | } 28 | RegisterPlugins(flutter_controller_->engine()); 29 | run_loop_->RegisterFlutterInstance(flutter_controller_->engine()); 30 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 31 | return true; 32 | } 33 | 34 | void FlutterWindow::OnDestroy() { 35 | if (flutter_controller_) { 36 | run_loop_->UnregisterFlutterInstance(flutter_controller_->engine()); 37 | flutter_controller_ = nullptr; 38 | } 39 | 40 | Win32Window::OnDestroy(); 41 | } 42 | 43 | LRESULT 44 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 45 | WPARAM const wparam, 46 | LPARAM const lparam) noexcept { 47 | // Give Flutter, including plugins, an opportunity to handle window messages. 48 | if (flutter_controller_) { 49 | std::optional result = 50 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 51 | lparam); 52 | if (result) { 53 | return *result; 54 | } 55 | } 56 | 57 | switch (message) { 58 | case WM_FONTCHANGE: 59 | flutter_controller_->engine()->ReloadSystemFonts(); 60 | break; 61 | } 62 | 63 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 64 | } 65 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /windows/runner/run_loop.cpp: -------------------------------------------------------------------------------- 1 | #include "run_loop.h" 2 | 3 | #include 4 | 5 | #include 6 | 7 | RunLoop::RunLoop() {} 8 | 9 | RunLoop::~RunLoop() {} 10 | 11 | void RunLoop::Run() { 12 | bool keep_running = true; 13 | TimePoint next_flutter_event_time = TimePoint::clock::now(); 14 | while (keep_running) { 15 | std::chrono::nanoseconds wait_duration = 16 | std::max(std::chrono::nanoseconds(0), 17 | next_flutter_event_time - TimePoint::clock::now()); 18 | ::MsgWaitForMultipleObjects( 19 | 0, nullptr, FALSE, static_cast(wait_duration.count() / 1000), 20 | QS_ALLINPUT); 21 | bool processed_events = false; 22 | MSG message; 23 | // All pending Windows messages must be processed; MsgWaitForMultipleObjects 24 | // won't return again for items left in the queue after PeekMessage. 25 | while (::PeekMessage(&message, nullptr, 0, 0, PM_REMOVE)) { 26 | processed_events = true; 27 | if (message.message == WM_QUIT) { 28 | keep_running = false; 29 | break; 30 | } 31 | ::TranslateMessage(&message); 32 | ::DispatchMessage(&message); 33 | // Allow Flutter to process messages each time a Windows message is 34 | // processed, to prevent starvation. 35 | next_flutter_event_time = 36 | std::min(next_flutter_event_time, ProcessFlutterMessages()); 37 | } 38 | // If the PeekMessage loop didn't run, process Flutter messages. 39 | if (!processed_events) { 40 | next_flutter_event_time = 41 | std::min(next_flutter_event_time, ProcessFlutterMessages()); 42 | } 43 | } 44 | } 45 | 46 | void RunLoop::RegisterFlutterInstance( 47 | flutter::FlutterEngine* flutter_instance) { 48 | flutter_instances_.insert(flutter_instance); 49 | } 50 | 51 | void RunLoop::UnregisterFlutterInstance( 52 | flutter::FlutterEngine* flutter_instance) { 53 | flutter_instances_.erase(flutter_instance); 54 | } 55 | 56 | RunLoop::TimePoint RunLoop::ProcessFlutterMessages() { 57 | TimePoint next_event_time = TimePoint::max(); 58 | for (auto instance : flutter_instances_) { 59 | std::chrono::nanoseconds wait_duration = instance->ProcessMessages(); 60 | if (wait_duration != std::chrono::nanoseconds::max()) { 61 | next_event_time = 62 | std::min(next_event_time, TimePoint::clock::now() + wait_duration); 63 | } 64 | } 65 | return next_event_time; 66 | } 67 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.10) 2 | 3 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 4 | 5 | # Configuration provided via flutter tool. 6 | include(${EPHEMERAL_DIR}/generated_config.cmake) 7 | 8 | # TODO: Move the rest of this into files in ephemeral. See 9 | # https://github.com/flutter/flutter/issues/57146. 10 | 11 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 12 | # which isn't available in 3.10. 13 | function(list_prepend LIST_NAME PREFIX) 14 | set(NEW_LIST "") 15 | foreach(element ${${LIST_NAME}}) 16 | list(APPEND NEW_LIST "${PREFIX}${element}") 17 | endforeach(element) 18 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 19 | endfunction() 20 | 21 | # === Flutter Library === 22 | # System-level dependencies. 23 | find_package(PkgConfig REQUIRED) 24 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 25 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 26 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 27 | 28 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 29 | 30 | # Published to parent scope for install step. 31 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 32 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 33 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 34 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 35 | 36 | list(APPEND FLUTTER_LIBRARY_HEADERS 37 | "fl_basic_message_channel.h" 38 | "fl_binary_codec.h" 39 | "fl_binary_messenger.h" 40 | "fl_dart_project.h" 41 | "fl_engine.h" 42 | "fl_json_message_codec.h" 43 | "fl_json_method_codec.h" 44 | "fl_message_codec.h" 45 | "fl_method_call.h" 46 | "fl_method_channel.h" 47 | "fl_method_codec.h" 48 | "fl_method_response.h" 49 | "fl_plugin_registrar.h" 50 | "fl_plugin_registry.h" 51 | "fl_standard_message_codec.h" 52 | "fl_standard_method_codec.h" 53 | "fl_string_codec.h" 54 | "fl_value.h" 55 | "fl_view.h" 56 | "flutter_linux.h" 57 | ) 58 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 59 | add_library(flutter INTERFACE) 60 | target_include_directories(flutter INTERFACE 61 | "${EPHEMERAL_DIR}" 62 | ) 63 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 64 | target_link_libraries(flutter INTERFACE 65 | PkgConfig::GTK 66 | PkgConfig::GLIB 67 | PkgConfig::GIO 68 | ) 69 | add_dependencies(flutter flutter_assemble) 70 | 71 | # === Flutter tool backend === 72 | # _phony_ is a non-existent file to force this command to run every time, 73 | # since currently there's no way to get a full input/output list from the 74 | # flutter tool. 75 | add_custom_command( 76 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 77 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 78 | COMMAND ${CMAKE_COMMAND} -E env 79 | ${FLUTTER_TOOL_ENVIRONMENT} 80 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 81 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 82 | VERBATIM 83 | ) 84 | add_custom_target(flutter_assemble DEPENDS 85 | "${FLUTTER_LIBRARY}" 86 | ${FLUTTER_LIBRARY_HEADERS} 87 | ) 88 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/ui/views/knowledge.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Knowledge extends StatefulWidget { 7 | @override 8 | KnowledgeState createState() => KnowledgeState(); 9 | } 10 | 11 | class KnowledgeState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_SAS_40_SAMSKARAM, 92 | indicatorValue: 1.0, 93 | ), 94 | ]; 95 | } 96 | -------------------------------------------------------------------------------- /lib/ui/views/education.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Education extends StatefulWidget { 7 | @override 8 | EducationState createState() => EducationState(); 9 | } 10 | 11 | class EducationState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_VID_VIEW_DOWNLOAD_DES, 92 | indicatorValue: 0.50, 93 | ), 94 | Services( 95 | title: Strings.TITLE_VID_VIEW_DOWNLOAD_DIV, 96 | indicatorValue: 1.0, 97 | ), 98 | ]; 99 | } 100 | -------------------------------------------------------------------------------- /windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #ifdef FLUTTER_BUILD_NUMBER 64 | #define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0 67 | #endif 68 | 69 | #ifdef FLUTTER_BUILD_NAME 70 | #define VERSION_AS_STRING #FLUTTER_BUILD_NAME 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "com.example" "\0" 93 | VALUE "FileDescription", "A new Flutter project." "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "devops_demo" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2021 com.example. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "devops_demo.exe" "\0" 98 | VALUE "ProductName", "devops_demo" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /lib/ui/views/food.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Food extends StatefulWidget { 7 | @override 8 | FoodState createState() => FoodState(); 9 | } 10 | 11 | class FoodState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_DPSR_BOJ_BUY_FOOD_PRDS, 92 | indicatorValue: 0.33, 93 | ), 94 | Services( 95 | title: Strings.TITLE_BOJ_VIEW_BOOK_CATERERS, 96 | indicatorValue: 0.66, 97 | ), 98 | Services( 99 | title: Strings.TITLE_BOJ_BUY_FOOD_PRDS, 100 | indicatorValue: 0.99, 101 | ), 102 | ]; 103 | } 104 | -------------------------------------------------------------------------------- /lib/ui/views/housing.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Housing extends StatefulWidget { 7 | @override 8 | HousingState createState() => HousingState(); 9 | } 10 | 11 | class HousingState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_VAT_BUY, 92 | indicatorValue: 0.33, 93 | ), 94 | Services( 95 | title: Strings.TITLE_VAT_SELL, 96 | indicatorValue: 0.66, 97 | ), 98 | Services( 99 | title: Strings.TITLE_VAT_VIEW_EDIT_DELETE_PROFILE, 100 | indicatorValue: 0.99, 101 | ), 102 | ]; 103 | } 104 | -------------------------------------------------------------------------------- /lib/ui/views/charity.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Charity extends StatefulWidget { 7 | @override 8 | CharityState createState() => CharityState(); 9 | } 10 | 11 | class CharityState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_KAI_KAINKARYAM, 92 | indicatorValue: 0.33, 93 | ), 94 | Services( 95 | title: Strings.TITLE_KAI_VIEW_REQUESTS, 96 | indicatorValue: 0.66, 97 | ), 98 | Services( 99 | title: Strings.TITLE_KAI_VIEW_EDIT_DELETE_PROFILE, 100 | indicatorValue: 0.99, 101 | ), 102 | ]; 103 | } 104 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: devops_demo 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | 27 | 28 | # The following adds the Cupertino Icons font to your application. 29 | # Use with the CupertinoIcons class for iOS style icons. 30 | cupertino_icons: ^1.0.2 31 | 32 | dev_dependencies: 33 | flutter_test: 34 | sdk: flutter 35 | 36 | # For information on the generic Dart part of this file, see the 37 | # following page: https://dart.dev/tools/pub/pubspec 38 | 39 | # The following section is specific to Flutter. 40 | flutter: 41 | 42 | # The following line ensures that the Material Icons font is 43 | # included with your application, so that you can use the icons in 44 | # the material Icons class. 45 | uses-material-design: true 46 | 47 | assets: 48 | - lib/resources/images/bits.png 49 | - lib/resources/images/line.png 50 | 51 | fonts: 52 | - family: Montserrat 53 | fonts: 54 | - asset: lib/resources/fonts/Montserrat-Regular.ttf 55 | 56 | - family: Raleway 57 | fonts: 58 | - asset: lib/resources/fonts/Raleway-Regular.ttf 59 | - asset: lib/resources/fonts/Raleway-Thin.ttf 60 | style: normal 61 | 62 | # To add assets to your application, add an assets section, like this: 63 | # assets: 64 | # - images/a_dot_burr.jpeg 65 | # - images/a_dot_ham.jpeg 66 | 67 | # An image asset can refer to one or more resolution-specific "variants", see 68 | # https://flutter.dev/assets-and-images/#resolution-aware. 69 | 70 | # For details regarding adding assets from package dependencies, see 71 | # https://flutter.dev/assets-and-images/#from-packages 72 | 73 | # To add custom fonts to your application, add a fonts section here, 74 | # in this "flutter" section. Each entry in this list should have a 75 | # "family" key with the font family name, and a "fonts" key with a 76 | # list giving the asset and other descriptors for the font. For 77 | # example: 78 | # fonts: 79 | # - family: Schyler 80 | # fonts: 81 | # - asset: fonts/Schyler-Regular.ttf 82 | # - asset: fonts/Schyler-Italic.ttf 83 | # style: italic 84 | # - family: Trajan Pro 85 | # fonts: 86 | # - asset: fonts/TrajanPro.ttf 87 | # - asset: fonts/TrajanPro_Bold.ttf 88 | # weight: 700 89 | # 90 | # For details regarding fonts from package dependencies, 91 | # see https://flutter.dev/custom-fonts/#from-packages 92 | -------------------------------------------------------------------------------- /lib/ui/views/health.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/ousregistration.dart'; 5 | 6 | class Health extends StatefulWidget { 7 | @override 8 | HealthState createState() => HealthState(); 9 | } 10 | 11 | class HealthState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | switch (services.title) { 54 | case Strings.TITLE_OUS_CRT_APPT: 55 | Navigator.push(context, 56 | MaterialPageRoute(builder: (context) => OUSRegistration())); 57 | break; 58 | default: 59 | break; 60 | } 61 | }, 62 | ); 63 | 64 | Card makeCard(Services services) => Card( 65 | elevation: 8.0, 66 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 67 | child: Container( 68 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 69 | child: makeListTile(services), 70 | ), 71 | ); 72 | 73 | final makeBody = Container( 74 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 75 | child: ListView.builder( 76 | scrollDirection: Axis.vertical, 77 | shrinkWrap: true, 78 | itemCount: services.length, 79 | itemBuilder: (BuildContext context, int index) { 80 | return makeCard(services[index]); 81 | }, 82 | ), 83 | ); 84 | 85 | return Scaffold( 86 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 87 | body: makeBody, 88 | ); 89 | } 90 | } 91 | 92 | List getServices() { 93 | return [ 94 | Services( 95 | title: Strings.TITLE_OUS_CRT_APPT, 96 | indicatorValue: 0.25, 97 | ), 98 | Services( 99 | title: Strings.TITLE_OUS_VW_APPT, 100 | indicatorValue: 0.50, 101 | ), 102 | Services( 103 | title: Strings.TITLE_OUS_REGISTRATION, 104 | indicatorValue: 0.75, 105 | ), 106 | Services( 107 | title: Strings.TITLE_OUS_APPTS, 108 | indicatorValue: 1.0, 109 | ), 110 | ]; 111 | } 112 | -------------------------------------------------------------------------------- /lib/ui/views/work.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Work extends StatefulWidget { 7 | @override 8 | WorkState createState() => WorkState(); 9 | } 10 | 11 | class WorkState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_KAR_JOB_CLASSIFIEDS, 92 | indicatorValue: 0.25, 93 | ), 94 | Services( 95 | title: Strings.TITLE_VED_VED_REGISTRATION, 96 | indicatorValue: 0.50, 97 | ), 98 | Services( 99 | title: Strings.TITLE_VED_PROF_LIST, 100 | indicatorValue: 0.75, 101 | ), 102 | Services( 103 | title: Strings.TITLE_VED_FRESH_LIST, 104 | indicatorValue: 1.0, 105 | ), 106 | ]; 107 | } 108 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 64 | 65 | 71 | 73 | 79 | 80 | 81 | 82 | 84 | 85 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/ui/views/family.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Family extends StatefulWidget { 7 | @override 8 | FamilyState createState() => FamilyState(); 9 | } 10 | 11 | class FamilyState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_MMM_MMM_REGISTRATION, 92 | indicatorValue: 0.25, 93 | ), 94 | Services( 95 | title: Strings.TITLE_MMM_VARAN_VADHU_LIST, 96 | indicatorValue: 0.50, 97 | ), 98 | Services( 99 | title: Strings.TITLE_MMM_VIEW_EDIT_DELETE_PROFILE, 100 | indicatorValue: 0.75, 101 | ), 102 | Services( 103 | title: Strings.TITLE_MMM_LATEST_NEWS, 104 | indicatorValue: 1.0, 105 | ), 106 | ]; 107 | } 108 | -------------------------------------------------------------------------------- /windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates and shows a win32 window with |title| and position and size using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size to will treat the width height passed in to this function 35 | // as logical pixels and scale to appropriate for the default monitor. Returns 36 | // true if the window was created successfully. 37 | bool CreateAndShow(const std::wstring& title, 38 | const Point& origin, 39 | const Size& size); 40 | 41 | // Release OS resources associated with window. 42 | void Destroy(); 43 | 44 | // Inserts |content| into the window tree. 45 | void SetChildContent(HWND content); 46 | 47 | // Returns the backing Window handle to enable clients to set icon and other 48 | // window properties. Returns nullptr if the window has been destroyed. 49 | HWND GetHandle(); 50 | 51 | // If true, closing this window will quit the application. 52 | void SetQuitOnClose(bool quit_on_close); 53 | 54 | // Return a RECT representing the bounds of the current client area. 55 | RECT GetClientArea(); 56 | 57 | protected: 58 | // Processes and route salient window messages for mouse handling, 59 | // size change and DPI. Delegates handling of these to member overloads that 60 | // inheriting classes can handle. 61 | virtual LRESULT MessageHandler(HWND window, 62 | UINT const message, 63 | WPARAM const wparam, 64 | LPARAM const lparam) noexcept; 65 | 66 | // Called when CreateAndShow is called, allowing subclass window-related 67 | // setup. Subclasses should return false if setup fails. 68 | virtual bool OnCreate(); 69 | 70 | // Called when Destroy is called. 71 | virtual void OnDestroy(); 72 | 73 | private: 74 | friend class WindowClassRegistrar; 75 | 76 | // OS callback called by message pump. Handles the WM_NCCREATE message which 77 | // is passed when the non-client area is being created and enables automatic 78 | // non-client DPI scaling so that the non-client area automatically 79 | // responsponds to changes in DPI. All other messages are handled by 80 | // MessageHandler. 81 | static LRESULT CALLBACK WndProc(HWND const window, 82 | UINT const message, 83 | WPARAM const wparam, 84 | LPARAM const lparam) noexcept; 85 | 86 | // Retrieves a class instance pointer for |window| 87 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 88 | 89 | bool quit_on_close_ = false; 90 | 91 | // window handle for top level window. 92 | HWND window_handle_ = nullptr; 93 | 94 | // window handle for hosted content. 95 | HWND child_content_ = nullptr; 96 | }; 97 | 98 | #endif // RUNNER_WIN32_WINDOW_H_ 99 | -------------------------------------------------------------------------------- /lib/ui/views/aboutus.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class AboutUs extends StatefulWidget { 7 | @override 8 | AboutUsState createState() => AboutUsState(); 9 | } 10 | 11 | class AboutUsState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_DPSR_ABOUT_US, 92 | indicatorValue: 0.20, 93 | ), 94 | Services( 95 | title: Strings.TITLE_DPSR_CONTACT_US, 96 | indicatorValue: 0.40, 97 | ), 98 | Services( 99 | title: Strings.TITLE_DPSR_OUR_SERVICES, 100 | indicatorValue: 0.60, 101 | ), 102 | Services( 103 | title: Strings.TITLE_DPSR_BE_SPONSER, 104 | indicatorValue: 0.80, 105 | ), 106 | Services( 107 | title: Strings.TITLE_DPSR_OUR_SPONSERS, 108 | indicatorValue: 1.0, 109 | ), 110 | ]; 111 | } 112 | -------------------------------------------------------------------------------- /windows/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.15) 2 | project(devops_demo LANGUAGES CXX) 3 | 4 | set(BINARY_NAME "devops_demo") 5 | 6 | cmake_policy(SET CMP0063 NEW) 7 | 8 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") 9 | 10 | # Configure build options. 11 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) 12 | if(IS_MULTICONFIG) 13 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" 14 | CACHE STRING "" FORCE) 15 | else() 16 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 17 | set(CMAKE_BUILD_TYPE "Debug" CACHE 18 | STRING "Flutter build mode" FORCE) 19 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 20 | "Debug" "Profile" "Release") 21 | endif() 22 | endif() 23 | 24 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") 25 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") 26 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") 27 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") 28 | 29 | # Use Unicode for all projects. 30 | add_definitions(-DUNICODE -D_UNICODE) 31 | 32 | # Compilation settings that should be applied to most targets. 33 | function(APPLY_STANDARD_SETTINGS TARGET) 34 | target_compile_features(${TARGET} PUBLIC cxx_std_17) 35 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") 36 | target_compile_options(${TARGET} PRIVATE /EHsc) 37 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") 38 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") 39 | endfunction() 40 | 41 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 42 | 43 | # Flutter library and tool build rules. 44 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 45 | 46 | # Application build 47 | add_subdirectory("runner") 48 | 49 | # Generated plugin build rules, which manage building the plugins and adding 50 | # them to the application. 51 | include(flutter/generated_plugins.cmake) 52 | 53 | 54 | # === Installation === 55 | # Support files are copied into place next to the executable, so that it can 56 | # run in place. This is done instead of making a separate bundle (as on Linux) 57 | # so that building and running from within Visual Studio will work. 58 | set(BUILD_BUNDLE_DIR "$") 59 | # Make the "install" step default, as it's required to run. 60 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) 61 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 62 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 63 | endif() 64 | 65 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 66 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") 67 | 68 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 69 | COMPONENT Runtime) 70 | 71 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 72 | COMPONENT Runtime) 73 | 74 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 75 | COMPONENT Runtime) 76 | 77 | if(PLUGIN_BUNDLED_LIBRARIES) 78 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" 79 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 80 | COMPONENT Runtime) 81 | endif() 82 | 83 | # Fully re-copy the assets directory on each build to avoid having stale files 84 | # from a previous install. 85 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 86 | install(CODE " 87 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 88 | " COMPONENT Runtime) 89 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 90 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 91 | 92 | # Install the AOT library on non-Debug builds only. 93 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 94 | CONFIGURATIONS Profile;Release 95 | COMPONENT Runtime) 96 | -------------------------------------------------------------------------------- /windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.15) 2 | 3 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 4 | 5 | # Configuration provided via flutter tool. 6 | include(${EPHEMERAL_DIR}/generated_config.cmake) 7 | 8 | # TODO: Move the rest of this into files in ephemeral. See 9 | # https://github.com/flutter/flutter/issues/57146. 10 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") 11 | 12 | # === Flutter Library === 13 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") 14 | 15 | # Published to parent scope for install step. 16 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 17 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 18 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 19 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) 20 | 21 | list(APPEND FLUTTER_LIBRARY_HEADERS 22 | "flutter_export.h" 23 | "flutter_windows.h" 24 | "flutter_messenger.h" 25 | "flutter_plugin_registrar.h" 26 | "flutter_texture_registrar.h" 27 | ) 28 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") 29 | add_library(flutter INTERFACE) 30 | target_include_directories(flutter INTERFACE 31 | "${EPHEMERAL_DIR}" 32 | ) 33 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") 34 | add_dependencies(flutter flutter_assemble) 35 | 36 | # === Wrapper === 37 | list(APPEND CPP_WRAPPER_SOURCES_CORE 38 | "core_implementations.cc" 39 | "standard_codec.cc" 40 | ) 41 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") 42 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN 43 | "plugin_registrar.cc" 44 | ) 45 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") 46 | list(APPEND CPP_WRAPPER_SOURCES_APP 47 | "flutter_engine.cc" 48 | "flutter_view_controller.cc" 49 | ) 50 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") 51 | 52 | # Wrapper sources needed for a plugin. 53 | add_library(flutter_wrapper_plugin STATIC 54 | ${CPP_WRAPPER_SOURCES_CORE} 55 | ${CPP_WRAPPER_SOURCES_PLUGIN} 56 | ) 57 | apply_standard_settings(flutter_wrapper_plugin) 58 | set_target_properties(flutter_wrapper_plugin PROPERTIES 59 | POSITION_INDEPENDENT_CODE ON) 60 | set_target_properties(flutter_wrapper_plugin PROPERTIES 61 | CXX_VISIBILITY_PRESET hidden) 62 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) 63 | target_include_directories(flutter_wrapper_plugin PUBLIC 64 | "${WRAPPER_ROOT}/include" 65 | ) 66 | add_dependencies(flutter_wrapper_plugin flutter_assemble) 67 | 68 | # Wrapper sources needed for the runner. 69 | add_library(flutter_wrapper_app STATIC 70 | ${CPP_WRAPPER_SOURCES_CORE} 71 | ${CPP_WRAPPER_SOURCES_APP} 72 | ) 73 | apply_standard_settings(flutter_wrapper_app) 74 | target_link_libraries(flutter_wrapper_app PUBLIC flutter) 75 | target_include_directories(flutter_wrapper_app PUBLIC 76 | "${WRAPPER_ROOT}/include" 77 | ) 78 | add_dependencies(flutter_wrapper_app flutter_assemble) 79 | 80 | # === Flutter tool backend === 81 | # _phony_ is a non-existent file to force this command to run every time, 82 | # since currently there's no way to get a full input/output list from the 83 | # flutter tool. 84 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") 85 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) 86 | add_custom_command( 87 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 88 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} 89 | ${CPP_WRAPPER_SOURCES_APP} 90 | ${PHONY_OUTPUT} 91 | COMMAND ${CMAKE_COMMAND} -E env 92 | ${FLUTTER_TOOL_ENVIRONMENT} 93 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" 94 | windows-x64 $ 95 | VERBATIM 96 | ) 97 | add_custom_target(flutter_assemble DEPENDS 98 | "${FLUTTER_LIBRARY}" 99 | ${FLUTTER_LIBRARY_HEADERS} 100 | ${CPP_WRAPPER_SOURCES_CORE} 101 | ${CPP_WRAPPER_SOURCES_PLUGIN} 102 | ${CPP_WRAPPER_SOURCES_APP} 103 | ) 104 | -------------------------------------------------------------------------------- /lib/ui/views/mainmenu/mainmenutabuser.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/resources/texts/strings.dart'; 3 | import 'package:devops_demo/ui/views/aboutus.dart'; 4 | import 'package:devops_demo/ui/views/charity.dart'; 5 | import 'package:devops_demo/ui/views/education.dart'; 6 | import 'package:devops_demo/ui/views/family.dart'; 7 | import 'package:devops_demo/ui/views/food.dart'; 8 | import 'package:devops_demo/ui/views/health.dart'; 9 | import 'package:devops_demo/ui/views/housing.dart'; 10 | import 'package:devops_demo/ui/views/knowledge.dart'; 11 | import 'package:devops_demo/ui/views/work.dart'; 12 | import 'package:devops_demo/ui/widgets/showalertdialog.dart'; 13 | 14 | class MainMenuTabUser extends StatefulWidget { 15 | @override 16 | State createState() => MainMenuTabUserState(); 17 | } 18 | 19 | class MainMenuTabUserState extends State 20 | with TickerProviderStateMixin { 21 | late TabController _controller; 22 | int selectedIndex = 0; 23 | 24 | @override 25 | void initState() { 26 | super.initState(); 27 | _controller = TabController(length: 3, vsync: this); 28 | _controller.addListener(() { 29 | setState(() { 30 | selectedIndex = _controller.index; 31 | }); 32 | }); 33 | } 34 | 35 | Future onBackPressed() async { 36 | return (await showAlertDialogDouble( 37 | context, Strings.ALERT_HDR_ARE_YOU_SURE, Strings.ALERT_BDY_ARE_YOU_SURE)) ?? 38 | false; 39 | } 40 | 41 | @override 42 | Widget build(BuildContext context) { 43 | return DefaultTabController( 44 | length: 9, 45 | child: Scaffold( 46 | appBar: AppBar( 47 | bottom: TabBar( 48 | indicatorWeight: 5, 49 | isScrollable: true, 50 | tabs: [ 51 | Tab(icon: Icon(Icons.family_restroom), child: Text(Strings.TITLE_MM_TB_MM)), 52 | Tab(icon: Icon(Icons.work), child: Text(Strings.TITLE_MM_TB_VEDKAR)), 53 | Tab( 54 | icon: Icon(Icons.local_hospital), 55 | child: Text(Strings.TITLE_MM_TB_OUS)), 56 | Tab( 57 | icon: Icon(Icons.school), 58 | child: Text(Strings.TITLE_MM_TB_VID)), 59 | Tab(icon: Icon(Icons.food_bank), child: Text(Strings.TITLE_MM_TB_BOJ)), 60 | Tab(icon: Icon(Icons.home), child: Text(Strings.TITLE_MM_TB_VAT)), 61 | Tab(icon: Icon(Icons.book), child: Text(Strings.TITLE_MM_TB_SAS)), 62 | Tab(icon: Icon(Icons.local_atm), child: Text(Strings.TITLE_MM_TB_KAI)), 63 | Tab( 64 | icon: Icon(Icons.contact_support), 65 | child: Text(Strings.TITLE_MM_TB_DPSR)), 66 | ], 67 | ), 68 | title: Center( 69 | child: Column( 70 | children: [ 71 | Text( 72 | Strings.DET_MM_TB_WEL + "BITS User", 73 | ), 74 | Text( 75 | greeting() 76 | ), 77 | ], 78 | ), 79 | ), 80 | leading: new IconButton( 81 | icon: new Icon(Icons.arrow_back), 82 | onPressed: () { 83 | // Navigator.of(context).pop(); 84 | onBackPressed(); 85 | }, 86 | ), 87 | ), 88 | body: TabBarView( 89 | children: [ 90 | Family(), 91 | Work(), 92 | Health(), 93 | Education(), 94 | Food(), 95 | Housing(), 96 | Knowledge(), 97 | Charity(), 98 | AboutUs(), 99 | ], 100 | ), 101 | ), 102 | ); 103 | } 104 | 105 | String greeting() { 106 | var hour = DateTime.now().hour; 107 | if (hour < 12) { 108 | return Strings.DET_MM_TB_GREET_MOR; 109 | } 110 | if (hour < 16) { 111 | return Strings.DET_MM_TB_GREET_NOON; 112 | } 113 | return Strings.DET_MM_TB_GREET_EVE; 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.6.1" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.2.0" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.15.0" 46 | cupertino_icons: 47 | dependency: "direct main" 48 | description: 49 | name: cupertino_icons 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.0.3" 53 | fake_async: 54 | dependency: transitive 55 | description: 56 | name: fake_async 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.2.0" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_test: 66 | dependency: "direct dev" 67 | description: flutter 68 | source: sdk 69 | version: "0.0.0" 70 | matcher: 71 | dependency: transitive 72 | description: 73 | name: matcher 74 | url: "https://pub.dartlang.org" 75 | source: hosted 76 | version: "0.12.10" 77 | meta: 78 | dependency: transitive 79 | description: 80 | name: meta 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "1.3.0" 84 | path: 85 | dependency: transitive 86 | description: 87 | name: path 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "1.8.0" 91 | sky_engine: 92 | dependency: transitive 93 | description: flutter 94 | source: sdk 95 | version: "0.0.99" 96 | source_span: 97 | dependency: transitive 98 | description: 99 | name: source_span 100 | url: "https://pub.dartlang.org" 101 | source: hosted 102 | version: "1.8.1" 103 | stack_trace: 104 | dependency: transitive 105 | description: 106 | name: stack_trace 107 | url: "https://pub.dartlang.org" 108 | source: hosted 109 | version: "1.10.0" 110 | stream_channel: 111 | dependency: transitive 112 | description: 113 | name: stream_channel 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "2.1.0" 117 | string_scanner: 118 | dependency: transitive 119 | description: 120 | name: string_scanner 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.1.0" 124 | term_glyph: 125 | dependency: transitive 126 | description: 127 | name: term_glyph 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.2.0" 131 | test_api: 132 | dependency: transitive 133 | description: 134 | name: test_api 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "0.3.0" 138 | typed_data: 139 | dependency: transitive 140 | description: 141 | name: typed_data 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.3.0" 145 | vector_math: 146 | dependency: transitive 147 | description: 148 | name: vector_math 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "2.1.0" 152 | sdks: 153 | dart: ">=2.12.0 <3.0.0" 154 | -------------------------------------------------------------------------------- /linux/my_application.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | #include 4 | #ifdef GDK_WINDOWING_X11 5 | #include 6 | #endif 7 | 8 | #include "flutter/generated_plugin_registrant.h" 9 | 10 | struct _MyApplication { 11 | GtkApplication parent_instance; 12 | char** dart_entrypoint_arguments; 13 | }; 14 | 15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) 16 | 17 | // Implements GApplication::activate. 18 | static void my_application_activate(GApplication* application) { 19 | MyApplication* self = MY_APPLICATION(application); 20 | GtkWindow* window = 21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); 22 | 23 | // Use a header bar when running in GNOME as this is the common style used 24 | // by applications and is the setup most users will be using (e.g. Ubuntu 25 | // desktop). 26 | // If running on X and not using GNOME then just use a traditional title bar 27 | // in case the window manager does more exotic layout, e.g. tiling. 28 | // If running on Wayland assume the header bar will work (may need changing 29 | // if future cases occur). 30 | gboolean use_header_bar = TRUE; 31 | #ifdef GDK_WINDOWING_X11 32 | GdkScreen *screen = gtk_window_get_screen(window); 33 | if (GDK_IS_X11_SCREEN(screen)) { 34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); 35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) { 36 | use_header_bar = FALSE; 37 | } 38 | } 39 | #endif 40 | if (use_header_bar) { 41 | GtkHeaderBar *header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); 42 | gtk_widget_show(GTK_WIDGET(header_bar)); 43 | gtk_header_bar_set_title(header_bar, "devops_demo"); 44 | gtk_header_bar_set_show_close_button(header_bar, TRUE); 45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); 46 | } 47 | else { 48 | gtk_window_set_title(window, "devops_demo"); 49 | } 50 | 51 | gtk_window_set_default_size(window, 1280, 720); 52 | gtk_widget_show(GTK_WIDGET(window)); 53 | 54 | g_autoptr(FlDartProject) project = fl_dart_project_new(); 55 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); 56 | 57 | FlView* view = fl_view_new(project); 58 | gtk_widget_show(GTK_WIDGET(view)); 59 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); 60 | 61 | fl_register_plugins(FL_PLUGIN_REGISTRY(view)); 62 | 63 | gtk_widget_grab_focus(GTK_WIDGET(view)); 64 | } 65 | 66 | // Implements GApplication::local_command_line. 67 | static gboolean my_application_local_command_line(GApplication* application, gchar ***arguments, int *exit_status) { 68 | MyApplication* self = MY_APPLICATION(application); 69 | // Strip out the first argument as it is the binary name. 70 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); 71 | 72 | g_autoptr(GError) error = nullptr; 73 | if (!g_application_register(application, nullptr, &error)) { 74 | g_warning("Failed to register: %s", error->message); 75 | *exit_status = 1; 76 | return TRUE; 77 | } 78 | 79 | g_application_activate(application); 80 | *exit_status = 0; 81 | 82 | return TRUE; 83 | } 84 | 85 | // Implements GObject::dispose. 86 | static void my_application_dispose(GObject *object) { 87 | MyApplication* self = MY_APPLICATION(object); 88 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); 89 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object); 90 | } 91 | 92 | static void my_application_class_init(MyApplicationClass* klass) { 93 | G_APPLICATION_CLASS(klass)->activate = my_application_activate; 94 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; 95 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose; 96 | } 97 | 98 | static void my_application_init(MyApplication* self) {} 99 | 100 | MyApplication* my_application_new() { 101 | return MY_APPLICATION(g_object_new(my_application_get_type(), 102 | "application-id", APPLICATION_ID, 103 | "flags", G_APPLICATION_NON_UNIQUE, 104 | nullptr)); 105 | } 106 | -------------------------------------------------------------------------------- /linux/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.10) 2 | project(runner LANGUAGES CXX) 3 | 4 | set(BINARY_NAME "devops_demo") 5 | set(APPLICATION_ID "com.example.devops_demo") 6 | 7 | cmake_policy(SET CMP0063 NEW) 8 | 9 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") 10 | 11 | # Root filesystem for cross-building. 12 | if(FLUTTER_TARGET_PLATFORM_SYSROOT) 13 | set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) 14 | set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) 15 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 16 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 17 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 18 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 19 | endif() 20 | 21 | # Configure build options. 22 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 23 | set(CMAKE_BUILD_TYPE "Debug" CACHE 24 | STRING "Flutter build mode" FORCE) 25 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 26 | "Debug" "Profile" "Release") 27 | endif() 28 | 29 | # Compilation settings that should be applied to most targets. 30 | function(APPLY_STANDARD_SETTINGS TARGET) 31 | target_compile_features(${TARGET} PUBLIC cxx_std_14) 32 | target_compile_options(${TARGET} PRIVATE -Wall -Werror) 33 | target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") 34 | target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") 35 | endfunction() 36 | 37 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 38 | 39 | # Flutter library and tool build rules. 40 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 41 | 42 | # System-level dependencies. 43 | find_package(PkgConfig REQUIRED) 44 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 45 | 46 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") 47 | 48 | # Application build 49 | add_executable(${BINARY_NAME} 50 | "main.cc" 51 | "my_application.cc" 52 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 53 | ) 54 | apply_standard_settings(${BINARY_NAME}) 55 | target_link_libraries(${BINARY_NAME} PRIVATE flutter) 56 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) 57 | add_dependencies(${BINARY_NAME} flutter_assemble) 58 | # Only the install-generated bundle's copy of the executable will launch 59 | # correctly, since the resources must in the right relative locations. To avoid 60 | # people trying to run the unbundled copy, put it in a subdirectory instead of 61 | # the default top-level location. 62 | set_target_properties(${BINARY_NAME} 63 | PROPERTIES 64 | RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" 65 | ) 66 | 67 | # Generated plugin build rules, which manage building the plugins and adding 68 | # them to the application. 69 | include(flutter/generated_plugins.cmake) 70 | 71 | 72 | # === Installation === 73 | # By default, "installing" just makes a relocatable bundle in the build 74 | # directory. 75 | set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") 76 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 77 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 78 | endif() 79 | 80 | # Start with a clean build bundle directory every time. 81 | install(CODE " 82 | file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") 83 | " COMPONENT Runtime) 84 | 85 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 86 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") 87 | 88 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 89 | COMPONENT Runtime) 90 | 91 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 92 | COMPONENT Runtime) 93 | 94 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 95 | COMPONENT Runtime) 96 | 97 | if(PLUGIN_BUNDLED_LIBRARIES) 98 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" 99 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 100 | COMPONENT Runtime) 101 | endif() 102 | 103 | # Fully re-copy the assets directory on each build to avoid having stale files 104 | # from a previous install. 105 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 106 | install(CODE " 107 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 108 | " COMPONENT Runtime) 109 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 110 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 111 | 112 | # Install the AOT library on non-Debug builds only. 113 | if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") 114 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 115 | COMPONENT Runtime) 116 | endif() 117 | -------------------------------------------------------------------------------- /lib/ui/views/ousregistration.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/widgets/styles.dart'; 5 | import 'package:devops_demo/ui/widgets/textfield.dart'; 6 | 7 | class OUSRegistration extends StatefulWidget { 8 | @override 9 | State createState() => OUSRegistrationState(); 10 | } 11 | 12 | class OUSRegistrationState extends State { 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar( 18 | title: Text( 19 | Strings.TITLE_OUS_REGISTRATION, 20 | style: new TextStyle(color: Colors.white), 21 | ), 22 | leading: new IconButton( 23 | icon: new Icon(Icons.arrow_back), 24 | onPressed: () { 25 | Navigator.pop(context); 26 | }, 27 | ), 28 | ), 29 | body: SingleChildScrollView( 30 | child: Container( 31 | height: MediaQuery.of(context).size.height, 32 | color: Colors.black12, 33 | child: Column( 34 | //crossAxisAlignment: CrossAxisAlignment.start, 35 | mainAxisAlignment: MainAxisAlignment.start, 36 | children: [ 37 | SizedBox( 38 | height: 10, 39 | ), 40 | Container( 41 | child: Stack( 42 | alignment: Alignment.bottomCenter, 43 | children: [ 44 | Column( 45 | // mainAxisAlignment: MainAxisAlignment.spaceAround, 46 | children: [ 47 | sizedBoxHeight, 48 | createAccountField, 49 | sizedBoxHeight, 50 | firstNameField, 51 | sizedBoxHeight, 52 | lastNameField, 53 | sizedBoxHeight, 54 | Container( 55 | width: MediaQuery.of(context).size.width / 2, 56 | height: 50, 57 | child: ElevatedButton( 58 | style: elevatedButtonStyle, 59 | onPressed: () { }, //null 60 | child: Text(Strings.BTN_TITLE_DOB),), 61 | ), 62 | sizedBoxHeight, 63 | Container( 64 | width: MediaQuery.of(context).size.width / 2, 65 | height: 50, 66 | child: ElevatedButton( 67 | onPressed: () { }, //null 68 | child: Text(Strings.BTN_TITLE_DOB),), 69 | ), 70 | Container( 71 | width: MediaQuery.of(context).size.width / 2, 72 | height: 50, 73 | child: TextButton( 74 | onPressed: () { }, //null 75 | child: Text(Strings.BTN_TITLE_DOB),), 76 | ), 77 | Container( 78 | width: MediaQuery.of(context).size.width / 2, 79 | height: 50, 80 | child: OutlinedButton( 81 | onPressed: () { }, //null 82 | child: Text(Strings.BTN_TITLE_DOB),), 83 | ), 84 | Container( 85 | width: MediaQuery.of(context).size.width / 2, 86 | height: 50, 87 | child: CupertinoButton( 88 | onPressed: () { }, //null 89 | child: Text(Strings.BTN_TITLE_DOB),), 90 | ), 91 | Container( 92 | width: MediaQuery.of(context).size.width / 2, 93 | height: 50, 94 | child: CupertinoButton.filled( 95 | onPressed: () { }, //null 96 | child: Text(Strings.BTN_TITLE_DOB),), 97 | ), 98 | ], 99 | ), 100 | ], 101 | )), 102 | ], 103 | )), 104 | ), 105 | ); 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /windows/runner/win32_window.cpp: -------------------------------------------------------------------------------- 1 | #include "win32_window.h" 2 | 3 | #include 4 | 5 | #include "resource.h" 6 | 7 | namespace { 8 | 9 | constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; 10 | 11 | // The number of Win32Window objects that currently exist. 12 | static int g_active_window_count = 0; 13 | 14 | using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); 15 | 16 | // Scale helper to convert logical scaler values to physical using passed in 17 | // scale factor 18 | int Scale(int source, double scale_factor) { 19 | return static_cast(source * scale_factor); 20 | } 21 | 22 | // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. 23 | // This API is only needed for PerMonitor V1 awareness mode. 24 | void EnableFullDpiSupportIfAvailable(HWND hwnd) { 25 | HMODULE user32_module = LoadLibraryA("User32.dll"); 26 | if (!user32_module) { 27 | return; 28 | } 29 | auto enable_non_client_dpi_scaling = 30 | reinterpret_cast( 31 | GetProcAddress(user32_module, "EnableNonClientDpiScaling")); 32 | if (enable_non_client_dpi_scaling != nullptr) { 33 | enable_non_client_dpi_scaling(hwnd); 34 | FreeLibrary(user32_module); 35 | } 36 | } 37 | 38 | } // namespace 39 | 40 | // Manages the Win32Window's window class registration. 41 | class WindowClassRegistrar { 42 | public: 43 | ~WindowClassRegistrar() = default; 44 | 45 | // Returns the singleton registar instance. 46 | static WindowClassRegistrar* GetInstance() { 47 | if (!instance_) { 48 | instance_ = new WindowClassRegistrar(); 49 | } 50 | return instance_; 51 | } 52 | 53 | // Returns the name of the window class, registering the class if it hasn't 54 | // previously been registered. 55 | const wchar_t* GetWindowClass(); 56 | 57 | // Unregisters the window class. Should only be called if there are no 58 | // instances of the window. 59 | void UnregisterWindowClass(); 60 | 61 | private: 62 | WindowClassRegistrar() = default; 63 | 64 | static WindowClassRegistrar* instance_; 65 | 66 | bool class_registered_ = false; 67 | }; 68 | 69 | WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; 70 | 71 | const wchar_t* WindowClassRegistrar::GetWindowClass() { 72 | if (!class_registered_) { 73 | WNDCLASS window_class{}; 74 | window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); 75 | window_class.lpszClassName = kWindowClassName; 76 | window_class.style = CS_HREDRAW | CS_VREDRAW; 77 | window_class.cbClsExtra = 0; 78 | window_class.cbWndExtra = 0; 79 | window_class.hInstance = GetModuleHandle(nullptr); 80 | window_class.hIcon = 81 | LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); 82 | window_class.hbrBackground = 0; 83 | window_class.lpszMenuName = nullptr; 84 | window_class.lpfnWndProc = Win32Window::WndProc; 85 | RegisterClass(&window_class); 86 | class_registered_ = true; 87 | } 88 | return kWindowClassName; 89 | } 90 | 91 | void WindowClassRegistrar::UnregisterWindowClass() { 92 | UnregisterClass(kWindowClassName, nullptr); 93 | class_registered_ = false; 94 | } 95 | 96 | Win32Window::Win32Window() { 97 | ++g_active_window_count; 98 | } 99 | 100 | Win32Window::~Win32Window() { 101 | --g_active_window_count; 102 | Destroy(); 103 | } 104 | 105 | bool Win32Window::CreateAndShow(const std::wstring& title, 106 | const Point& origin, 107 | const Size& size) { 108 | Destroy(); 109 | 110 | const wchar_t* window_class = 111 | WindowClassRegistrar::GetInstance()->GetWindowClass(); 112 | 113 | const POINT target_point = {static_cast(origin.x), 114 | static_cast(origin.y)}; 115 | HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); 116 | UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); 117 | double scale_factor = dpi / 96.0; 118 | 119 | HWND window = CreateWindow( 120 | window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE, 121 | Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), 122 | Scale(size.width, scale_factor), Scale(size.height, scale_factor), 123 | nullptr, nullptr, GetModuleHandle(nullptr), this); 124 | 125 | if (!window) { 126 | return false; 127 | } 128 | 129 | return OnCreate(); 130 | } 131 | 132 | // static 133 | LRESULT CALLBACK Win32Window::WndProc(HWND const window, 134 | UINT const message, 135 | WPARAM const wparam, 136 | LPARAM const lparam) noexcept { 137 | if (message == WM_NCCREATE) { 138 | auto window_struct = reinterpret_cast(lparam); 139 | SetWindowLongPtr(window, GWLP_USERDATA, 140 | reinterpret_cast(window_struct->lpCreateParams)); 141 | 142 | auto that = static_cast(window_struct->lpCreateParams); 143 | EnableFullDpiSupportIfAvailable(window); 144 | that->window_handle_ = window; 145 | } else if (Win32Window* that = GetThisFromHandle(window)) { 146 | return that->MessageHandler(window, message, wparam, lparam); 147 | } 148 | 149 | return DefWindowProc(window, message, wparam, lparam); 150 | } 151 | 152 | LRESULT 153 | Win32Window::MessageHandler(HWND hwnd, 154 | UINT const message, 155 | WPARAM const wparam, 156 | LPARAM const lparam) noexcept { 157 | switch (message) { 158 | case WM_DESTROY: 159 | window_handle_ = nullptr; 160 | Destroy(); 161 | if (quit_on_close_) { 162 | PostQuitMessage(0); 163 | } 164 | return 0; 165 | 166 | case WM_DPICHANGED: { 167 | auto newRectSize = reinterpret_cast(lparam); 168 | LONG newWidth = newRectSize->right - newRectSize->left; 169 | LONG newHeight = newRectSize->bottom - newRectSize->top; 170 | 171 | SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, 172 | newHeight, SWP_NOZORDER | SWP_NOACTIVATE); 173 | 174 | return 0; 175 | } 176 | case WM_SIZE: { 177 | RECT rect = GetClientArea(); 178 | if (child_content_ != nullptr) { 179 | // Size and position the child window. 180 | MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, 181 | rect.bottom - rect.top, TRUE); 182 | } 183 | return 0; 184 | } 185 | 186 | case WM_ACTIVATE: 187 | if (child_content_ != nullptr) { 188 | SetFocus(child_content_); 189 | } 190 | return 0; 191 | } 192 | 193 | return DefWindowProc(window_handle_, message, wparam, lparam); 194 | } 195 | 196 | void Win32Window::Destroy() { 197 | OnDestroy(); 198 | 199 | if (window_handle_) { 200 | DestroyWindow(window_handle_); 201 | window_handle_ = nullptr; 202 | } 203 | if (g_active_window_count == 0) { 204 | WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); 205 | } 206 | } 207 | 208 | Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { 209 | return reinterpret_cast( 210 | GetWindowLongPtr(window, GWLP_USERDATA)); 211 | } 212 | 213 | void Win32Window::SetChildContent(HWND content) { 214 | child_content_ = content; 215 | SetParent(content, window_handle_); 216 | RECT frame = GetClientArea(); 217 | 218 | MoveWindow(content, frame.left, frame.top, frame.right - frame.left, 219 | frame.bottom - frame.top, true); 220 | 221 | SetFocus(child_content_); 222 | } 223 | 224 | RECT Win32Window::GetClientArea() { 225 | RECT frame; 226 | GetClientRect(window_handle_, &frame); 227 | return frame; 228 | } 229 | 230 | HWND Win32Window::GetHandle() { 231 | return window_handle_; 232 | } 233 | 234 | void Win32Window::SetQuitOnClose(bool quit_on_close) { 235 | quit_on_close_ = quit_on_close; 236 | } 237 | 238 | bool Win32Window::OnCreate() { 239 | // No-op; provided for subclasses. 240 | return true; 241 | } 242 | 243 | void Win32Window::OnDestroy() { 244 | // No-op; provided for subclasses. 245 | } 246 | -------------------------------------------------------------------------------- /lib/resources/texts/strings.dart: -------------------------------------------------------------------------------- 1 | class Strings { 2 | 3 | // Network and Security 4 | static const String TRANSPORT_PROTOCOL = 'http://'; 5 | static const String WEB_CONNECTOR = '192.168.0.23'; 6 | static const String AUTHENTICATED = 'AUTHENTICATED'; 7 | static const String FINGERPRINT_ENABLED = 'FINGERPRINT_ENABLED'; 8 | static const String BACKEND = 'DevOps_Backend/'; 9 | static const String CONTENT_TYPE = 'Content-Type'; 10 | static const String JSON_HEADER = 'application/json; charset=UTF-8'; 11 | static const String TERMS_CONDITIONS_URL = TRANSPORT_PROTOCOL + WEB_CONNECTOR + BACK_SLASH + BACKEND + 'termsandconditions.html'; 12 | 13 | // Result / Error Messages 14 | static const String SUCCESS = 'Success'; 15 | static const String SYSTEM_ERROR = 'Adding the Data into System Failed'; 16 | static const String REG_SUCCESS = 'Registration Successful'; 17 | static const String DEL_FAILURE = 'Deleting the Data into System Failed'; 18 | static const String UNIQUE_ID = 'UniqueID'; 19 | 20 | // Alert Header 21 | static const String ALERT_HDR_SYSTEM_ERROR = 'System Data Failure'; 22 | static const String ALERT_HDR_DATA_INPUT_MISSING = 'Data Input Missing'; 23 | static const String ALERT_HDR_REG_SUCCESS = 'Registration Successful'; 24 | static const String ALERT_HDR_UPD_SUCCESS = 'Update Successful'; 25 | static const String ALERT_HDR_DEL_SUCCESS = 'Deletion Successful'; 26 | static const String ALERT_HDR_DEL_FAILURE = 'Deletion Failure'; 27 | static const String ALERT_HDR_ARE_YOU_SURE = 'Are you sure ?'; 28 | static const String ALERT_HDR_USR_PRESENT = 'User Name already Present'; 29 | static const String ALERT_HDR_TERMS_NOT_ACCEPTED = 'Terms & Conditions Not Accepted'; 30 | 31 | // Alert Body 32 | static const String ALERT_BDY_SYSTEM_ERROR = 'The data which is provided is wrong. Please correct your data...'; 33 | static const String ALERT_BDY_DATA_INPUT_MISSING = 'Please provide all the required data. Some fields are not filled or selected.'; 34 | static const String ALERT_BDY_ARE_YOU_SURE = 'Do you want to exit an App ?'; 35 | static const String ALERT_BDY_USR_PRESENT = 'Please provide a different User Name'; 36 | static const String ALERT_BDY_TERMS_NOT_ACCEPTED = 'Please Accept the Terms & Conditions by Clicking the Check Box'; 37 | 38 | // Common Items 39 | static const String APP_NAME = 'Devops Demo Update'; 40 | static const String OK = 'OK'; 41 | static const String YES = 'Yes'; 42 | static const String NO = 'No'; 43 | static const String FONT = 'Montserrat'; 44 | static const String EMPTY_STRING = ''; 45 | static const String LINE_BREAK = '\n'; 46 | static const String SPACE = ' '; 47 | static const String DOT = '.'; 48 | static const String HYPHEN = '-'; 49 | static const String PLUS = '+'; 50 | static const String ROLE_USR = 'User'; 51 | static const String CHN_IMG_PATH = 'lib/resources/images/bits.png'; 52 | static const String FOR = 'for'; 53 | static const String BACK_SLASH = '/'; 54 | static const String POST = 'POST'; 55 | 56 | // Page Routes 57 | static const String PG_RT_MM_TAB_USR = '/MainMenuTabUser'; 58 | static const String PG_RT_HM = '/HomeScreen'; 59 | 60 | // JSON DB Objects 61 | static const String DB_USER_NAME = 'UserName'; 62 | static const String DB_FIRST_NAME = 'FirstName'; 63 | static const String DB_LAST_NAME = 'LastName'; 64 | static const String DB_ROLE = 'Role'; 65 | static const String DB_PASSWORD = 'Password'; 66 | static const String DB_PROFILE = 'Profile'; 67 | static const String DB_OPERATION = 'Operation'; 68 | static const String DB_STATUS = 'Status'; 69 | 70 | // Hint Text 71 | static const String HINT_USER_NAME = 'User Name'; 72 | static const String HINT_PASSWORD = 'Password'; 73 | static const String HINT_FIRST_NAME = 'First Name'; 74 | static const String HINT_LAST_NAME = 'Last Name'; 75 | static const String HINT_CREATE_ACCOUNT = 'Create Account'; 76 | static const String HINT_UPDATE_ACCOUNT = 'Update Account'; 77 | static const String HINT_HELLO_USER = 'Hello User'; 78 | static const String HINT_LOGIN_ACCOUNT = 'Login into your Account'; 79 | 80 | // Page Titles 81 | static const String TITLE_DPSR_BOJ_BUY_FOOD_PRDS = 'Sell Food Products'; 82 | static const String TITLE_BOJ_VIEW_BOOK_CATERERS = 'Cooking Instructions'; 83 | static const String TITLE_BOJ_BUY_FOOD_PRDS = 'Buy Food Products'; 84 | static const String TITLE_MMM_MMM_REGISTRATION = 'Family Registration'; 85 | static const String TITLE_MMM_VARAN_VADHU_LIST = 'Family Details'; 86 | static const String TITLE_MMM_VIEW_EDIT_DELETE_PROFILE = 'View/Edit/Delete your Profile'; 87 | static const String TITLE_MMM_LATEST_NEWS = 'Latest News'; 88 | static const String TITLE_OUS_CRT_APPT = 'Create an Appointement to Doctor'; 89 | static const String TITLE_OUS_VW_APPT = 'View Your Appointment'; 90 | static const String TITLE_OUS_REGISTRATION = 'Doctor Registration'; 91 | static const String TITLE_OUS_APPTS = 'Doctor Appointments'; 92 | static const String TITLE_VAT_BUY = 'Buy/For Rent/For Lease Land/House/Office'; 93 | static const String TITLE_VAT_SELL = 'Sell/Rent/Lease Land/House/Office'; 94 | static const String TITLE_VAT_VIEW_EDIT_DELETE_PROFILE = 'View/Edit/Delete your created Profile'; 95 | static const String TITLE_DPSR_ABOUT_US = 'About Us'; 96 | static const String TITLE_DPSR_CONTACT_US = 'Contact Us'; 97 | static const String TITLE_DPSR_OUR_SERVICES = 'Our Services'; 98 | static const String TITLE_DPSR_BE_SPONSER = 'Be a Sponsor'; 99 | static const String TITLE_DPSR_OUR_SPONSERS = 'Our Sponsors'; 100 | static const String TITLE_VID_VIEW_DOWNLOAD_DES = 'View Schools'; 101 | static const String TITLE_VID_VIEW_DOWNLOAD_DIV = 'View Colleges'; 102 | static const String TITLE_FORGOT_PWD_FORGOT_PWD = 'Forgot Password'; 103 | static const String TITLE_KAI_KAINKARYAM = 'Request for Charity'; 104 | static const String TITLE_KAI_VIEW_REQUESTS = 'View List of Requests'; 105 | static const String TITLE_KAI_VIEW_EDIT_DELETE_PROFILE = 'View/Edit/Delete your created Profile'; 106 | static const String TITLE_LGN_LOGIN = 'Login'; 107 | static const String TITLE_MM_TB_MM = 'Family'; 108 | static const String TITLE_MM_TB_VEDKAR = 'Work'; 109 | static const String TITLE_MM_TB_OUS = 'Health'; 110 | static const String TITLE_MM_TB_VID = 'Education'; 111 | static const String TITLE_MM_TB_BOJ = 'Food'; 112 | static const String TITLE_MM_TB_VAT = 'Housing'; 113 | static const String TITLE_MM_TB_SAS = 'Knowledge'; 114 | static const String TITLE_MM_TB_KAI = 'Charity'; 115 | static const String TITLE_MM_TB_DPSR = 'About Us'; 116 | static const String TITLE_MM_TB_ADMOPR = 'Admin Operations'; 117 | static const String TITLE_SAS_40_SAMSKARAM = 'Genres'; 118 | static const String TITLE_VED_SELECT_CITY = 'Please Select the City'; 119 | static const String TITLE_KAR_JOB_CLASSIFIEDS = 'Job Classifieds'; 120 | static const String TITLE_VED_VED_REGISTRATION = 'Job Registration'; 121 | static const String TITLE_VED_PROF_LIST = 'Professionals List'; 122 | static const String TITLE_VED_FRESH_LIST = 'Freshers List'; 123 | static const String TITLE_VED_KAR_JOB_CLASSIFIEDS = 'Job Classifieds'; 124 | static const String TITLE_VED_VIEW_EDIT_DELETE_PROFILE = 'View/Edit your created Profile'; 125 | static const String TITLE_VED_PROFESSIONALS_DETAILS = 'Professionals Details'; 126 | static const String TITLE_VED_FRESHERS_DETAILS = 'Freshers Details'; 127 | static const String TITLE_VAT_PROPERTIES_DETAILS = 'Properties Details'; 128 | static const String TITLE_KAI_KAI_REGISTRATION = 'Service Registration'; 129 | static const String TITLE_SELECT_IMAGE = 'Select Image'; 130 | 131 | // Drop Down Text 132 | static const String DD_HINT_SEL_REASON = 'Please Select your Reason'; 133 | 134 | // Details 135 | static const String DET_MMM_REG_INPUT_REQ_FIELDS = 'Please Input all the required fields...'; 136 | static const String DET_HM_NOT_AUTHORIZED = 'Not Authorized'; 137 | static const String DET_HM_AUTHORIZED = 'Authorized'; 138 | static const String DET_HM_AUTH = 'Authenticating'; 139 | static const String DET_HM_LOGIN_METHOD = 'Login by Fingerprint or Face ID or Iris'; 140 | static const String DET_HM_ERR = 'Error - '; 141 | static const String DET_HM_OS_DETERMINE = 'Let OS determine authentication method'; 142 | static const String DET_LGN_FORGOT_PWD = 'Forget your password ?'; 143 | static const String DET_LGN_REGISTER_PT1 = 'Do not have account ?'; 144 | static const String DET_LGN_REGISTER_PT2 = 'Register Now'; 145 | static const String DET_MM_TB_WEL = 'Welcome '; 146 | static const String DET_MM_TB_GREET_MOR = 'Good Morning'; 147 | static const String DET_MM_TB_GREET_NOON = 'Good Afternoon'; 148 | static const String DET_MM_TB_GREET_EVE = 'Good Evening'; 149 | static const String DET_SIGN_UP_TERMS_CONDITIONS_PT1 = 'I had Read and agreed to the '; 150 | static const String DET_SIGN_UP_TERMS_CONDITIONS_PT2 = 'Terms & Conditions'; 151 | static const String DET_SIGN_UP_ACCOUNT_PRESENT_PT1 = 'Already have an account ?'; 152 | static const String DET_SIGN_UP_ACCOUNT_PRESENT_PT2 = 'Login'; 153 | static const String DET_FORGOT_PWD_YOUR_PASSWORD = 'Your Password is : '; 154 | 155 | // Button Text 156 | static const String BTN_TITLE_REGISTER = 'Register'; 157 | static const String BTN_TITLE_UPDATE = 'Update'; 158 | static const String BTN_TITLE_DELETE = 'Delete'; 159 | static const String BTN_TITLE_GET_PWD = 'Get Password'; 160 | static const String BTN_TITLE_LOGIN = 'Login'; 161 | static const String BTN_TITLE_REGISTER_NOW = 'Register Now'; 162 | static const String BTN_TITLE_LOGIN_NOW = 'Login Now'; 163 | static const String BTN_TITLE_SIGN_UP = 'Sign Up'; 164 | static const String BTN_TITLE_DOB = 'Submit'; 165 | 166 | // Shared Pref Keys 167 | static const String SHARED_PREF_USER_NAME = 'key_username'; 168 | static const String SHARED_PREF_FINGER_PRINT = 'key_fingerprint'; 169 | static const String SHARED_PREF_ROLE = 'key_role'; 170 | 171 | // BE File Name 172 | static const String BE_FILE_USR_EDT_PRF = 'editprofile.php'; 173 | static const String BE_FILE_USR_FORGOT_PWD = 'forgotpassword.php'; 174 | static const String BE_FILE_USR_LOGIN = 'login.php'; 175 | static const String BE_FILE_USR_REG_PRF = 'registerprofile.php'; 176 | static const String BE_FILE_USR_VIEW_PRF = 'viewprofile.php'; 177 | static const String BE_FILE_USR_DEL_PRF = 'deleteprofile.php'; 178 | 179 | // Status Codes 180 | static const int STATUS_CODE_OK = 200; 181 | static const int STATUS_CODE_SUCCESS = 201; 182 | } -------------------------------------------------------------------------------- /lib/ui/widgets/textfield.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/resources/texts/strings.dart'; 3 | import 'package:devops_demo/ui/widgets/styles.dart'; 4 | 5 | TextStyle style = TextStyle(fontFamily: Strings.FONT, fontSize: 14.0); 6 | TextStyle smallStyle = TextStyle(fontFamily: Strings.FONT, fontSize: 12.0); 7 | final emailFieldController = TextEditingController(); 8 | final userNameFieldController = TextEditingController(); 9 | final passwordFieldController = TextEditingController(); 10 | final firstNameFieldController = TextEditingController(); 11 | final lastNameFieldController = TextEditingController(); 12 | final contactNumberFieldController = TextEditingController(); 13 | final contactCountryFieldController = TextEditingController(); 14 | final whatsAppCountryFieldController = TextEditingController(); 15 | final motherNameFieldController = TextEditingController(); 16 | final birthPlaceFieldController = TextEditingController(); 17 | final nativeCityFieldController = TextEditingController(); 18 | final qualificationFieldController = TextEditingController(); 19 | final presentCityFieldController = TextEditingController(); 20 | final occupationFieldController = TextEditingController(); 21 | final salaryFieldController = TextEditingController(); 22 | final siblingsFieldController = TextEditingController(); 23 | final whatsAppNumberFieldController = TextEditingController(); 24 | final expectationFieldController = TextEditingController(); 25 | final heightCmFieldController = TextEditingController(); 26 | final heightFeetFieldController = TextEditingController(); 27 | final heightInchFieldController = TextEditingController(); 28 | final weightFieldController = TextEditingController(); 29 | final rasiFieldController = TextEditingController(); 30 | final dateOfBirthFieldController = TextEditingController(); 31 | final addressFieldController = TextEditingController(); 32 | final ailmentShortDescFieldController = TextEditingController(); 33 | final uniqueIDFieldController = TextEditingController(); 34 | final quarterKGInputFieldController = TextEditingController(); 35 | final halfKGInputFieldController = TextEditingController(); 36 | final oneKGInputFieldController = TextEditingController(); 37 | final detailsFieldController = TextEditingController(); 38 | final fileNameFieldController = TextEditingController(); 39 | 40 | final product1NameFieldController = TextEditingController(); 41 | final product2NameFieldController = TextEditingController(); 42 | final product3NameFieldController = TextEditingController(); 43 | final product1250QuantityPriceFieldController = TextEditingController(); 44 | final product2250QuantityPriceFieldController = TextEditingController(); 45 | final product3250QuantityPriceFieldController = TextEditingController(); 46 | final product1500QuantityPriceFieldController = TextEditingController(); 47 | final product2500QuantityPriceFieldController = TextEditingController(); 48 | final product3500QuantityPriceFieldController = TextEditingController(); 49 | final product11000QuantityPriceFieldController = TextEditingController(); 50 | final product21000QuantityPriceFieldController = TextEditingController(); 51 | final product31000QuantityPriceFieldController = TextEditingController(); 52 | 53 | final userNameField = TextField( 54 | controller: userNameFieldController, 55 | obscureText: false, 56 | maxLength: 16, 57 | keyboardType: TextInputType.text, 58 | style: style, 59 | decoration: inputDecoration(Strings.HINT_USER_NAME), 60 | ); 61 | 62 | final passwordField = TextField( 63 | controller: passwordFieldController, 64 | obscureText: true, 65 | keyboardType: TextInputType.visiblePassword, 66 | maxLength: 20, 67 | style: style, 68 | decoration: inputDecoration(Strings.HINT_PASSWORD), 69 | ); 70 | 71 | final firstNameField = TextField( 72 | controller: firstNameFieldController, 73 | obscureText: false, 74 | keyboardType: TextInputType.text, 75 | maxLength: 50, 76 | style: style, 77 | decoration: inputDecoration(Strings.HINT_FIRST_NAME), 78 | ); 79 | 80 | final lastNameField = TextField( 81 | controller: lastNameFieldController, 82 | obscureText: false, 83 | keyboardType: TextInputType.text, 84 | maxLength: 50, 85 | style: style, 86 | decoration: inputDecoration(Strings.HINT_LAST_NAME), 87 | ); 88 | 89 | final ailmentShortDescField = TextField( 90 | controller: ailmentShortDescFieldController, 91 | obscureText: false, 92 | maxLength: 3000, 93 | keyboardType: TextInputType.text, 94 | style: style, 95 | decoration: inputDecoration(Strings.HINT_AILMENT_SHORT_DESC), 96 | ); 97 | 98 | final motherNameField = TextField( 99 | controller: motherNameFieldController, 100 | obscureText: false, 101 | keyboardType: TextInputType.text, 102 | maxLength: 50, 103 | style: style, 104 | decoration: inputDecoration(Strings.HINT_MOTHER_NAME), 105 | ); 106 | 107 | final maritalStatusField = TextField( 108 | enabled: false, 109 | style: style, 110 | decoration: inputDecoration(Strings.HINT_MARITAL_STATUS), 111 | ); 112 | 113 | final genderField = TextField( 114 | enabled: false, 115 | style: style, 116 | decoration: inputDecoration(Strings.HINT_GENDER), 117 | ); 118 | 119 | final jobStatusField = TextField( 120 | enabled: false, 121 | style: style, 122 | decoration: inputDecoration(Strings.HINT_JOB_STATUS), 123 | ); 124 | 125 | final preferenceField = TextField( 126 | enabled: false, 127 | style: smallStyle, 128 | decoration: inputDecoration(Strings.HINT_PREFERENCE), 129 | ); 130 | 131 | final dateOfBirthField = TextField( 132 | controller: dateOfBirthFieldController, 133 | enabled: false, 134 | obscureText: false, 135 | keyboardType: TextInputType.text, 136 | style: style, 137 | decoration: inputDecoration(Strings.HINT_SYS_CALCULATED_DATE_TIME), 138 | ); 139 | 140 | final uniqueIDField = TextField( 141 | controller: uniqueIDFieldController, 142 | enabled: false, 143 | obscureText: false, 144 | keyboardType: TextInputType.text, 145 | style: style, 146 | decoration: inputDecoration(Strings.HINT_SYS_PROVIDED_UNIQUE_ID), 147 | ); 148 | 149 | final birthPlaceField = TextField( 150 | controller: birthPlaceFieldController, 151 | obscureText: false, 152 | keyboardType: TextInputType.text, 153 | maxLength: 50, 154 | style: style, 155 | decoration: inputDecoration(Strings.HINT_BIRTH_PLACE), 156 | ); 157 | 158 | final nativeCityField = TextField( 159 | controller: nativeCityFieldController, 160 | obscureText: false, 161 | keyboardType: TextInputType.text, 162 | maxLength: 50, 163 | style: style, 164 | decoration: inputDecoration(Strings.HINT_NATIVE_CITY), 165 | ); 166 | 167 | final qualificationField = TextField( 168 | controller: qualificationFieldController, 169 | obscureText: false, 170 | keyboardType: TextInputType.text, 171 | maxLength: 50, 172 | style: style, 173 | decoration: inputDecoration(Strings.HINT_QUALIFICATION), 174 | ); 175 | 176 | final addressField = TextField( 177 | controller: addressFieldController, 178 | obscureText: false, 179 | maxLength: 1000, 180 | keyboardType: TextInputType.text, 181 | style: style, 182 | decoration: inputDecoration(Strings.HINT_ADDRESS), 183 | ); 184 | 185 | final detailsField = TextField( 186 | controller: detailsFieldController, 187 | obscureText: false, 188 | maxLength: 1000, 189 | keyboardType: TextInputType.text, 190 | style: style, 191 | decoration: inputDecoration(Strings.HINT_PROPERTY_DETAILS), 192 | ); 193 | 194 | final fileNameField = TextField( 195 | enabled: false, 196 | controller: fileNameFieldController, 197 | obscureText: false, 198 | maxLength: 1000, 199 | keyboardType: TextInputType.text, 200 | style: style, 201 | decoration: inputDecoration(Strings.HINT_PHOTO_PATH), 202 | ); 203 | 204 | final presentCityField = TextField( 205 | controller: presentCityFieldController, 206 | obscureText: false, 207 | keyboardType: TextInputType.text, 208 | maxLength: 50, 209 | style: style, 210 | decoration: inputDecoration(Strings.HINT_PRESENT_CITY), 211 | ); 212 | 213 | final rasiField = TextField( 214 | controller: rasiFieldController, 215 | enabled: false, 216 | obscureText: false, 217 | keyboardType: TextInputType.text, 218 | maxLength: 50, 219 | style: style, 220 | decoration: inputDecoration(Strings.HINT_RASI), 221 | ); 222 | 223 | final weightField = TextField( 224 | controller: weightFieldController, 225 | obscureText: false, 226 | keyboardType: TextInputType.number, 227 | maxLength: 3, 228 | style: style, 229 | decoration: inputDecoration(Strings.HINT_WEIGHT_KGS), 230 | ); 231 | 232 | final heightCmField = TextField( 233 | controller: heightCmFieldController, 234 | enabled: false, 235 | obscureText: false, 236 | keyboardType: TextInputType.number, 237 | maxLength: 3, 238 | style: style, 239 | decoration: inputDecoration(Strings.HINT_CMS), 240 | ); 241 | 242 | final heightFeetField = TextField( 243 | controller: heightFeetFieldController, 244 | obscureText: false, 245 | keyboardType: TextInputType.number, 246 | maxLength: 1, 247 | style: style, 248 | decoration: inputDecoration(Strings.HINT_FEET), 249 | ); 250 | 251 | final heightInchField = TextField( 252 | controller: heightInchFieldController, 253 | obscureText: false, 254 | keyboardType: TextInputType.number, 255 | maxLength: 2, 256 | style: style, 257 | decoration: inputDecoration(Strings.HINT_INCH), 258 | ); 259 | 260 | final occupationField = TextField( 261 | controller: occupationFieldController, 262 | obscureText: false, 263 | keyboardType: TextInputType.text, 264 | maxLength: 50, 265 | style: style, 266 | decoration: inputDecoration(Strings.HINT_OCCUPATION), 267 | ); 268 | 269 | final salaryField = TextField( 270 | controller: salaryFieldController, 271 | obscureText: false, 272 | keyboardType: TextInputType.text, 273 | maxLength: 50, 274 | style: style, 275 | decoration: inputDecoration(Strings.HINT_SALARY), 276 | ); 277 | 278 | final siblingsField = TextField( 279 | controller: siblingsFieldController, 280 | obscureText: false, 281 | keyboardType: TextInputType.text, 282 | maxLength: 100, 283 | style: style, 284 | decoration: inputDecoration(Strings.HINT_SIBLINGS), 285 | ); 286 | 287 | final contactNumberField = TextField( 288 | controller: contactNumberFieldController, 289 | obscureText: false, 290 | keyboardType: TextInputType.number, 291 | maxLength: 10, 292 | style: style, 293 | decoration: inputDecoration(Strings.HINT_CONTACT_NUMBER), 294 | ); 295 | 296 | final whatsappNumberField = TextField( 297 | controller: whatsAppNumberFieldController, 298 | obscureText: false, 299 | keyboardType: TextInputType.number, 300 | maxLength: 10, 301 | style: style, 302 | decoration: inputDecoration(Strings.HINT_WHATSAPP_NUMBER), 303 | ); 304 | 305 | final expectationField = TextField( 306 | controller: expectationFieldController, 307 | obscureText: false, 308 | keyboardType: TextInputType.text, 309 | maxLength: 3000, 310 | style: style, 311 | decoration: inputDecoration(Strings.HINT_EXPECTATION), 312 | ); 313 | 314 | final contactCountryField = TextField( 315 | controller: contactCountryFieldController, 316 | enabled: false, 317 | obscureText: false, 318 | keyboardType: TextInputType.text, 319 | maxLength: 7, 320 | style: style, 321 | decoration: inputDecoration(Strings.HINT_COUNTRY_CODE), 322 | ); 323 | 324 | final whatsappCountryField = TextField( 325 | controller: whatsAppCountryFieldController, 326 | enabled: false, 327 | obscureText: false, 328 | keyboardType: TextInputType.text, 329 | maxLength: 7, 330 | style: style, 331 | decoration: inputDecoration(Strings.HINT_COUNTRY_CODE), 332 | ); 333 | 334 | final quarterKGField = TextField( 335 | enabled: false, 336 | obscureText: false, 337 | keyboardType: TextInputType.text, 338 | style: style, 339 | decoration: inputDecoration(Strings.HINT_250_GMS), 340 | ); 341 | 342 | final halfKGField = TextField( 343 | enabled: false, 344 | obscureText: false, 345 | keyboardType: TextInputType.text, 346 | style: style, 347 | decoration: inputDecoration(Strings.HINT_500_GMS), 348 | ); 349 | 350 | final oneKGField = TextField( 351 | enabled: false, 352 | obscureText: false, 353 | keyboardType: TextInputType.text, 354 | style: style, 355 | decoration: inputDecoration(Strings.HINT_1_KGS), 356 | ); 357 | 358 | final createAccountField = Text(Strings.HINT_CREATE_ACCOUNT, 359 | style: TextStyle( 360 | fontSize: 20, color: Colors.black, fontWeight: FontWeight.bold)); 361 | 362 | final viewPropertyField = Text(Strings.HINT_VIEW_PROPERTIES, 363 | style: TextStyle( 364 | fontSize: 20, color: Colors.black, fontWeight: FontWeight.bold)); 365 | 366 | final updateAccountField = Text(Strings.HINT_UPDATE_ACCOUNT, 367 | style: TextStyle( 368 | fontSize: 20, color: Colors.black, fontWeight: FontWeight.bold)); 369 | 370 | final buyFoodProductsField = Text(Strings.HINT_BUY_FOOD_PRODUCTS, 371 | style: TextStyle( 372 | fontSize: 20, color: Colors.black, fontWeight: FontWeight.bold)); 373 | 374 | final helloField = Text(Strings.HINT_HELLO_USER, 375 | style: TextStyle( 376 | fontSize: 24, color: Colors.black, fontWeight: FontWeight.bold)); 377 | 378 | final loginIntoField = Text(Strings.HINT_LOGIN_ACCOUNT, 379 | style: TextStyle( 380 | fontSize: 20, color: Colors.black, fontWeight: FontWeight.bold)); 381 | 382 | void clearInput() { 383 | emailFieldController.clear(); 384 | userNameFieldController.clear(); 385 | passwordFieldController.clear(); 386 | firstNameFieldController.clear(); 387 | lastNameFieldController.clear(); 388 | contactNumberFieldController.clear(); 389 | contactCountryFieldController.clear(); 390 | whatsAppCountryFieldController.clear(); 391 | motherNameFieldController.clear(); 392 | birthPlaceFieldController.clear(); 393 | nativeCityFieldController.clear(); 394 | qualificationFieldController.clear(); 395 | presentCityFieldController.clear(); 396 | occupationFieldController.clear(); 397 | salaryFieldController.clear(); 398 | siblingsFieldController.clear(); 399 | whatsAppNumberFieldController.clear(); 400 | expectationFieldController.clear(); 401 | heightCmFieldController.clear(); 402 | heightFeetFieldController.clear(); 403 | heightInchFieldController.clear(); 404 | weightFieldController.clear(); 405 | rasiFieldController.clear(); 406 | dateOfBirthFieldController.clear(); 407 | addressFieldController.clear(); 408 | detailsFieldController.clear(); 409 | fileNameFieldController.clear(); 410 | } 411 | 412 | final product1NameField = TextField( 413 | controller: product1NameFieldController, 414 | enabled: false, 415 | obscureText: false, 416 | keyboardType: TextInputType.text, 417 | style: style, 418 | decoration: inputDecoration(Strings.EMPTY_STRING), 419 | ); 420 | 421 | final product1250QuantityPriceField = TextField( 422 | controller: product1250QuantityPriceFieldController, 423 | enabled: false, 424 | obscureText: false, 425 | keyboardType: TextInputType.text, 426 | style: style, 427 | decoration: inputDecoration(Strings.EMPTY_STRING), 428 | ); 429 | 430 | final product1500QuantityPriceField = TextField( 431 | controller: product1500QuantityPriceFieldController, 432 | enabled: false, 433 | obscureText: false, 434 | keyboardType: TextInputType.text, 435 | style: style, 436 | decoration: inputDecoration(Strings.EMPTY_STRING), 437 | ); 438 | 439 | final product11000QuantityPriceField = TextField( 440 | controller: product11000QuantityPriceFieldController, 441 | enabled: false, 442 | obscureText: false, 443 | keyboardType: TextInputType.text, 444 | style: style, 445 | decoration: inputDecoration(Strings.EMPTY_STRING), 446 | ); 447 | 448 | final product2NameField = TextField( 449 | controller: product2NameFieldController, 450 | enabled: false, 451 | obscureText: false, 452 | keyboardType: TextInputType.text, 453 | style: style, 454 | decoration: inputDecoration(Strings.EMPTY_STRING), 455 | ); 456 | 457 | final product2250QuantityPriceField = TextField( 458 | controller: product2250QuantityPriceFieldController, 459 | enabled: false, 460 | obscureText: false, 461 | keyboardType: TextInputType.text, 462 | style: style, 463 | decoration: inputDecoration(Strings.EMPTY_STRING), 464 | ); 465 | 466 | final product2500QuantityPriceField = TextField( 467 | controller: product2500QuantityPriceFieldController, 468 | enabled: false, 469 | obscureText: false, 470 | keyboardType: TextInputType.text, 471 | style: style, 472 | decoration: inputDecoration(Strings.EMPTY_STRING), 473 | ); 474 | 475 | final product21000QuantityPriceField = TextField( 476 | controller: product21000QuantityPriceFieldController, 477 | enabled: false, 478 | obscureText: false, 479 | keyboardType: TextInputType.text, 480 | style: style, 481 | decoration: inputDecoration(Strings.EMPTY_STRING), 482 | ); 483 | 484 | final product3NameField = TextField( 485 | controller: product3NameFieldController, 486 | enabled: false, 487 | obscureText: false, 488 | keyboardType: TextInputType.text, 489 | style: style, 490 | decoration: inputDecoration(Strings.EMPTY_STRING), 491 | ); 492 | 493 | final product3250QuantityPriceField = TextField( 494 | controller: product3250QuantityPriceFieldController, 495 | enabled: false, 496 | obscureText: false, 497 | keyboardType: TextInputType.text, 498 | style: style, 499 | decoration: inputDecoration(Strings.EMPTY_STRING), 500 | ); 501 | 502 | final product3500QuantityPriceField = TextField( 503 | controller: product3500QuantityPriceFieldController, 504 | enabled: false, 505 | obscureText: false, 506 | keyboardType: TextInputType.text, 507 | style: style, 508 | decoration: inputDecoration(Strings.EMPTY_STRING), 509 | ); 510 | 511 | final product31000QuantityPriceField = TextField( 512 | controller: product31000QuantityPriceFieldController, 513 | enabled: false, 514 | obscureText: false, 515 | keyboardType: TextInputType.text, 516 | style: style, 517 | decoration: inputDecoration(Strings.EMPTY_STRING), 518 | ); 519 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.devopsDemo; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.devopsDemo; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.devopsDemo; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } 472 | --------------------------------------------------------------------------------