├── .gitignore ├── .metadata ├── Arduino Code └── Home_Automation │ └── Home_Automation.ino ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── home_automation01 │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── 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 │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── images ├── DP.jpeg ├── IMG_0391.JPEG ├── bullet-point.png ├── desk-lamp-on.png ├── desk-lamp.png ├── door-close.png ├── door-open.png ├── door-open1.png ├── energy01.png ├── energy02.png ├── humidity.png ├── lamp-off.png ├── lamp-on.png ├── lightoff.png ├── lighton.png ├── not-sleeping.png ├── sleep.png ├── temprature.png ├── tlamp-off.png ├── wi-fi.png └── wifi.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings ├── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── 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-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h └── RunnerTests │ └── RunnerTests.swift ├── lib ├── Models │ ├── bottom_nav_bar.dart │ ├── top_card.dart │ └── widget.dart ├── Pages │ ├── about_us.dart │ ├── home_screen.dart │ └── main_page.dart ├── Providers │ └── theme_provider.dart ├── Theme │ ├── dark_theme.dart │ └── light_theme.dart └── main.dart ├── linux ├── .gitignore ├── CMakeLists.txt ├── flutter │ ├── CMakeLists.txt │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ └── generated_plugins.cmake ├── main.cc ├── my_application.cc └── my_application.h ├── macos ├── .gitignore ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ └── app_icon_64.png │ ├── Base.lproj │ │ └── MainMenu.xib │ ├── Configs │ │ ├── AppInfo.xcconfig │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── Warnings.xcconfig │ ├── DebugProfile.entitlements │ ├── Info.plist │ ├── MainFlutterWindow.swift │ └── Release.entitlements └── RunnerTests │ └── RunnerTests.swift ├── pubspec.lock ├── pubspec.yaml ├── test └── widget_test.dart └── web ├── favicon.png ├── icons ├── Icon-192.png ├── Icon-512.png ├── Icon-maskable-192.png └── Icon-maskable-512.png ├── index.html └── manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Symbolication related 35 | app.*.symbols 36 | 37 | # Obfuscation related 38 | app.*.map.json 39 | 40 | # Android Studio will place build artifacts here 41 | /android/app/debug 42 | /android/app/profile 43 | /android/app/release 44 | -------------------------------------------------------------------------------- /.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: "603104015dd692ea3403755b55d07813d5cf8965" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 603104015dd692ea3403755b55d07813d5cf8965 17 | base_revision: 603104015dd692ea3403755b55d07813d5cf8965 18 | - platform: android 19 | create_revision: 603104015dd692ea3403755b55d07813d5cf8965 20 | base_revision: 603104015dd692ea3403755b55d07813d5cf8965 21 | - platform: ios 22 | create_revision: 603104015dd692ea3403755b55d07813d5cf8965 23 | base_revision: 603104015dd692ea3403755b55d07813d5cf8965 24 | - platform: linux 25 | create_revision: 603104015dd692ea3403755b55d07813d5cf8965 26 | base_revision: 603104015dd692ea3403755b55d07813d5cf8965 27 | - platform: macos 28 | create_revision: 603104015dd692ea3403755b55d07813d5cf8965 29 | base_revision: 603104015dd692ea3403755b55d07813d5cf8965 30 | - platform: web 31 | create_revision: 603104015dd692ea3403755b55d07813d5cf8965 32 | base_revision: 603104015dd692ea3403755b55d07813d5cf8965 33 | 34 | # User provided section 35 | 36 | # List of Local paths (relative to this file) that should be 37 | # ignored by the migrate tool. 38 | # 39 | # Files that are not part of the templates will be ignored by default. 40 | unmanaged_files: 41 | - 'lib/main.dart' 42 | - 'ios/Runner.xcodeproj/project.pbxproj' 43 | -------------------------------------------------------------------------------- /Arduino Code/Home_Automation/Home_Automation.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | // Pin Definitions 6 | #define IR_PIN D1 7 | #define PIR_PIN D2 8 | #define LED_WHITE D4 // white 9 | #define LED_WHITE2 D5 // white 10 | #define LED_BLUE D6 // blue 11 | #define LED_BLUE2 D7 // blue 12 | #define LED_ORANGE D8 // orange 13 | 14 | Servo motor; 15 | 16 | // Network Credentials 17 | const char* ssid = "WiFi - SSID"; //Replace with your Connection Name (SSID) 18 | const char* password = "WiFi - Password"; //Replace with your Connection Password 19 | 20 | // Web server instance 21 | ESP8266WebServer server(80); 22 | 23 | // State Variables 24 | bool doorOpen = false; // Door state 25 | int prevSensorState = 0; // Previous IR sensor state 26 | unsigned long previousMillis = 0; // Last motion detection time 27 | const long interval = 5000; // Delay for lights 28 | bool pirControlEnabled = true; // Enable/disable PIR-based control 29 | bool whiteLightOn = false; // White light state 30 | 31 | 32 | 33 | void setup() { 34 | motor.attach(D0); 35 | 36 | pinMode(IR_PIN, INPUT); 37 | pinMode(PIR_PIN, INPUT); 38 | pinMode(LED_WHITE, OUTPUT); 39 | pinMode(LED_WHITE2, OUTPUT); 40 | pinMode(LED_BLUE, OUTPUT); 41 | pinMode(LED_BLUE2, OUTPUT); 42 | pinMode(LED_ORANGE, OUTPUT); 43 | 44 | digitalWrite(LED_WHITE, LOW); 45 | digitalWrite(LED_WHITE2, LOW); 46 | digitalWrite(LED_BLUE, LOW); 47 | digitalWrite(LED_BLUE2, LOW); 48 | digitalWrite(LED_ORANGE, LOW); 49 | 50 | // Setup Wi-Fi 51 | Serial.begin(115200); 52 | WiFi.begin(ssid, password); 53 | 54 | while (WiFi.status() != WL_CONNECTED) { 55 | delay(1000); 56 | Serial.println("Connecting to Wi-Fi..."); 57 | } 58 | Serial.println("Connected!"); 59 | Serial.println(WiFi.localIP()); 60 | 61 | // Define HTTP routes 62 | server.on("/led_white/on", []() { 63 | whiteLightOn = true; // Mark white light as ON 64 | pirControlEnabled = false; // Disable PIR control 65 | digitalWrite(LED_WHITE, HIGH); 66 | digitalWrite(LED_WHITE2, HIGH); 67 | server.send(200, "text/plain", "White LEDs ON"); 68 | }); 69 | 70 | server.on("/led_white/off", []() { 71 | whiteLightOn = false; // Mark white light as OFF 72 | pirControlEnabled = true; // Enable PIR control 73 | digitalWrite(LED_WHITE, LOW); 74 | digitalWrite(LED_WHITE2, LOW); 75 | server.send(200, "text/plain", "White LEDs OFF"); 76 | }); 77 | 78 | server.on("/led_blue/on", []() { 79 | digitalWrite(LED_BLUE, HIGH); 80 | digitalWrite(LED_BLUE2, HIGH); 81 | server.send(200, "text/plain", "Blue LEDs ON"); 82 | }); 83 | 84 | server.on("/led_blue/off", []() { 85 | digitalWrite(LED_BLUE, LOW); 86 | digitalWrite(LED_BLUE2, LOW); 87 | server.send(200, "text/plain", "Blue LEDs OFF"); 88 | }); 89 | 90 | server.on("/led_orange/on", []() { 91 | digitalWrite(LED_ORANGE, HIGH); 92 | server.send(200, "text/plain", "Orange LED ON"); 93 | }); 94 | 95 | server.on("/led_orange/off", []() { 96 | digitalWrite(LED_ORANGE, LOW); 97 | server.send(200, "text/plain", "Orange LED OFF"); 98 | }); 99 | 100 | server.on("/door/open", []() { 101 | if (!doorOpen) { 102 | for (int pos = 0; pos <= 160; pos++) { 103 | motor.write(pos); 104 | delay(5); 105 | } 106 | doorOpen = true; 107 | server.send(200, "text/plain", "Door Opened"); 108 | } else { 109 | server.send(200, "text/plain", "Door is already open"); 110 | } 111 | }); 112 | 113 | server.on("/door/close", []() { 114 | if (doorOpen) { 115 | for (int pos = 160; pos >= 0; pos--) { 116 | motor.write(pos); 117 | delay(5); 118 | } 119 | doorOpen = false; 120 | server.send(200, "text/plain", "Door Closed"); 121 | } else { 122 | server.send(200, "text/plain", "Door is already closed"); 123 | } 124 | }); 125 | 126 | server.begin(); 127 | Serial.println("HTTP server started"); 128 | } 129 | 130 | void loop() { 131 | server.handleClient(); 132 | 133 | // IR Sensor - Servo Motor Controll 134 | int ir_Sensor = digitalRead(IR_PIN); 135 | 136 | if (ir_Sensor == HIGH && prevSensorState == LOW) { 137 | for (int pos = 160; pos >= 0; pos--) { 138 | motor.write(pos); 139 | delay(5); 140 | } 141 | } else if (ir_Sensor == LOW && prevSensorState == HIGH) { 142 | for (int pos = 0; pos <= 160; pos++) { 143 | motor.write(pos); 144 | delay(5); 145 | } 146 | delay(3000); 147 | } 148 | 149 | prevSensorState = ir_Sensor; 150 | 151 | // PIR Sensor - Turn lights on/off based on motion 152 | if (pirControlEnabled && !whiteLightOn) { // Only process PIR logic if enabled 153 | int pir_Sensor = digitalRead(PIR_PIN); 154 | unsigned long currentMillis = millis(); 155 | 156 | if (pir_Sensor == HIGH) { 157 | digitalWrite(LED_WHITE, HIGH); 158 | digitalWrite(LED_WHITE2, HIGH); 159 | previousMillis = currentMillis; 160 | } 161 | 162 | if (currentMillis - previousMillis >= interval) { 163 | digitalWrite(LED_WHITE, LOW); 164 | digitalWrite(LED_WHITE2, LOW); 165 | } 166 | } 167 | 168 | 169 | } 170 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Home Automation System 2 | 3 | A smart home automation system developed using **Arduino** and **Flutter**, designed to enhance lighting control and improve user convenience. 4 | 5 | ## Features 6 | - Automatic light activation and deactivation based on room entry and exit. 7 | - Mobile application control built with **Flutter**. 8 | - Integration with **Arduino** for seamless hardware-software interaction. 9 | - Support for mood-based and customizable lighting colors. 10 | - Energy-efficient design for sustainable usage. 11 | 12 | ## Technologies Used 13 | - **Flutter**: This is for developing the mobile application interface. 14 | - **Arduino**: For hardware implementation and communication. 15 | - **Wi-Fi (ESP8266/ESP32)**: For wireless communication between devices. 16 | 17 | ## Getting Started 18 | 19 | ### Prerequisites 20 | - **Arduino IDE** installed on your computer. 21 | - **Flutter SDK** set up for mobile app development. 22 | - ESP8266/ESP32 Wi-Fi module. 23 | 24 | ### Installation 25 | 26 | 1. Clone the repository: 27 | ```bash 28 | git clone https://github.com/kavindualwis/home-automation.git 29 | ``` 30 | 31 | 2. Open the **Arduino** folder and upload the code to your board using Arduino IDE. 32 | 33 | 3. Navigate to the **Flutter** folder, install dependencies, and run the app: 34 | ```bash 35 | cd FlutterApp 36 | flutter pub get 37 | flutter run 38 | ``` 39 | 40 | ## Usage 41 | - Install the app on your mobile device. 42 | - Connect the hardware to Wi-Fi using the provided configuration settings. 43 | - Use the mobile app to control lights, customize colors, and monitor system status. 44 | - Adjust settings for energy efficiency and mood-based lighting directly from the app. 45 | 46 | ## Project Structure 47 | - **/Arduino**: The Arduino source code for hardware control. 48 | - **/FlutterApp**: Contains the Flutter project for the mobile application. 49 | 50 | ## Future Enhancements 51 | - Add voice control capabilities. 52 | - Extend automation features to other appliances. 53 | - Implement machine learning for predictive lighting control based on user behavior. 54 | 55 | ## License 56 | This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. 57 | 58 | ## Acknowledgments 59 | - Inspiration from IoT smart home technologies. 60 | - Support from the developer community. 61 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /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/to/reference-keystore 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. 5 | id "dev.flutter.flutter-gradle-plugin" 6 | } 7 | 8 | android { 9 | namespace = "com.example.home_automation01" 10 | compileSdk = flutter.compileSdkVersion 11 | ndkVersion = flutter.ndkVersion 12 | 13 | compileOptions { 14 | sourceCompatibility = JavaVersion.VERSION_1_8 15 | targetCompatibility = JavaVersion.VERSION_1_8 16 | } 17 | 18 | kotlinOptions { 19 | jvmTarget = JavaVersion.VERSION_1_8 20 | } 21 | 22 | defaultConfig { 23 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 24 | applicationId = "com.example.home_automation01" 25 | // You can update the following values to match your application needs. 26 | // For more information, see: https://flutter.dev/to/review-gradle-config. 27 | minSdk = flutter.minSdkVersion 28 | targetSdk = flutter.targetSdkVersion 29 | versionCode = flutter.versionCode 30 | versionName = flutter.versionName 31 | } 32 | 33 | buildTypes { 34 | release { 35 | // TODO: Add your own signing config for the release build. 36 | // Signing with the debug keys for now, so `flutter run --release` works. 37 | signingConfig = signingConfigs.debug 38 | } 39 | } 40 | } 41 | 42 | flutter { 43 | source = "../.." 44 | } 45 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/home_automation01/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.home_automation01 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.buildDir = "../build" 9 | subprojects { 10 | project.buildDir = "${rootProject.buildDir}/${project.name}" 11 | } 12 | subprojects { 13 | project.evaluationDependsOn(":app") 14 | } 15 | 16 | tasks.register("clean", Delete) { 17 | delete rootProject.buildDir 18 | } 19 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | }() 9 | 10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") 11 | 12 | repositories { 13 | google() 14 | mavenCentral() 15 | gradlePluginPortal() 16 | } 17 | } 18 | 19 | plugins { 20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 21 | id "com.android.application" version "8.1.0" apply false 22 | id "org.jetbrains.kotlin.android" version "1.8.22" apply false 23 | } 24 | 25 | include ":app" 26 | -------------------------------------------------------------------------------- /images/DP.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/DP.jpeg -------------------------------------------------------------------------------- /images/IMG_0391.JPEG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/IMG_0391.JPEG -------------------------------------------------------------------------------- /images/bullet-point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/bullet-point.png -------------------------------------------------------------------------------- /images/desk-lamp-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/desk-lamp-on.png -------------------------------------------------------------------------------- /images/desk-lamp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/desk-lamp.png -------------------------------------------------------------------------------- /images/door-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/door-close.png -------------------------------------------------------------------------------- /images/door-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/door-open.png -------------------------------------------------------------------------------- /images/door-open1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/door-open1.png -------------------------------------------------------------------------------- /images/energy01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/energy01.png -------------------------------------------------------------------------------- /images/energy02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/energy02.png -------------------------------------------------------------------------------- /images/humidity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/humidity.png -------------------------------------------------------------------------------- /images/lamp-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/lamp-off.png -------------------------------------------------------------------------------- /images/lamp-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/lamp-on.png -------------------------------------------------------------------------------- /images/lightoff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/lightoff.png -------------------------------------------------------------------------------- /images/lighton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/lighton.png -------------------------------------------------------------------------------- /images/not-sleeping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/not-sleeping.png -------------------------------------------------------------------------------- /images/sleep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/sleep.png -------------------------------------------------------------------------------- /images/temprature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/temprature.png -------------------------------------------------------------------------------- /images/tlamp-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/tlamp-off.png -------------------------------------------------------------------------------- /images/wi-fi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/wi-fi.png -------------------------------------------------------------------------------- /images/wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/images/wifi.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /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 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 25 | remoteInfo = Runner; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXCopyFilesBuildPhase section */ 30 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 31 | isa = PBXCopyFilesBuildPhase; 32 | buildActionMask = 2147483647; 33 | dstPath = ""; 34 | dstSubfolderSpec = 10; 35 | files = ( 36 | ); 37 | name = "Embed Frameworks"; 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 45 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 46 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 48 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 49 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 50 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 51 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 52 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 75 | ); 76 | path = RunnerTests; 77 | sourceTree = ""; 78 | }; 79 | 9740EEB11CF90186004384FC /* Flutter */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 83 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 84 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 85 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 86 | ); 87 | name = Flutter; 88 | sourceTree = ""; 89 | }; 90 | 97C146E51CF9000F007C117D = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9740EEB11CF90186004384FC /* Flutter */, 94 | 97C146F01CF9000F007C117D /* Runner */, 95 | 97C146EF1CF9000F007C117D /* Products */, 96 | 331C8082294A63A400263BE5 /* RunnerTests */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | 97C146EF1CF9000F007C117D /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 97C146EE1CF9000F007C117D /* Runner.app */, 104 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | 97C146F01CF9000F007C117D /* Runner */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 113 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 114 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 115 | 97C147021CF9000F007C117D /* Info.plist */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 119 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 120 | ); 121 | path = Runner; 122 | sourceTree = ""; 123 | }; 124 | /* End PBXGroup section */ 125 | 126 | /* Begin PBXNativeTarget section */ 127 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 130 | buildPhases = ( 131 | 331C807D294A63A400263BE5 /* Sources */, 132 | 331C807F294A63A400263BE5 /* Resources */, 133 | ); 134 | buildRules = ( 135 | ); 136 | dependencies = ( 137 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 138 | ); 139 | name = RunnerTests; 140 | productName = RunnerTests; 141 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 142 | productType = "com.apple.product-type.bundle.unit-test"; 143 | }; 144 | 97C146ED1CF9000F007C117D /* Runner */ = { 145 | isa = PBXNativeTarget; 146 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 147 | buildPhases = ( 148 | 9740EEB61CF901F6004384FC /* Run Script */, 149 | 97C146EA1CF9000F007C117D /* Sources */, 150 | 97C146EB1CF9000F007C117D /* Frameworks */, 151 | 97C146EC1CF9000F007C117D /* Resources */, 152 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 153 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 154 | ); 155 | buildRules = ( 156 | ); 157 | dependencies = ( 158 | ); 159 | name = Runner; 160 | productName = Runner; 161 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 162 | productType = "com.apple.product-type.application"; 163 | }; 164 | /* End PBXNativeTarget section */ 165 | 166 | /* Begin PBXProject section */ 167 | 97C146E61CF9000F007C117D /* Project object */ = { 168 | isa = PBXProject; 169 | attributes = { 170 | BuildIndependentTargetsInParallel = YES; 171 | LastUpgradeCheck = 1510; 172 | ORGANIZATIONNAME = ""; 173 | TargetAttributes = { 174 | 331C8080294A63A400263BE5 = { 175 | CreatedOnToolsVersion = 14.0; 176 | TestTargetID = 97C146ED1CF9000F007C117D; 177 | }; 178 | 97C146ED1CF9000F007C117D = { 179 | CreatedOnToolsVersion = 7.3.1; 180 | LastSwiftMigration = 1100; 181 | }; 182 | }; 183 | }; 184 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 185 | compatibilityVersion = "Xcode 9.3"; 186 | developmentRegion = en; 187 | hasScannedForEncodings = 0; 188 | knownRegions = ( 189 | en, 190 | Base, 191 | ); 192 | mainGroup = 97C146E51CF9000F007C117D; 193 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 194 | projectDirPath = ""; 195 | projectRoot = ""; 196 | targets = ( 197 | 97C146ED1CF9000F007C117D /* Runner */, 198 | 331C8080294A63A400263BE5 /* RunnerTests */, 199 | ); 200 | }; 201 | /* End PBXProject section */ 202 | 203 | /* Begin PBXResourcesBuildPhase section */ 204 | 331C807F294A63A400263BE5 /* Resources */ = { 205 | isa = PBXResourcesBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | 97C146EC1CF9000F007C117D /* Resources */ = { 212 | isa = PBXResourcesBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 216 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXShellScriptBuildPhase section */ 225 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 226 | isa = PBXShellScriptBuildPhase; 227 | alwaysOutOfDate = 1; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | ); 231 | inputPaths = ( 232 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 233 | ); 234 | name = "Thin Binary"; 235 | outputPaths = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | shellPath = /bin/sh; 239 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 240 | }; 241 | 9740EEB61CF901F6004384FC /* Run Script */ = { 242 | isa = PBXShellScriptBuildPhase; 243 | alwaysOutOfDate = 1; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | inputPaths = ( 248 | ); 249 | name = "Run Script"; 250 | outputPaths = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 255 | }; 256 | /* End PBXShellScriptBuildPhase section */ 257 | 258 | /* Begin PBXSourcesBuildPhase section */ 259 | 331C807D294A63A400263BE5 /* Sources */ = { 260 | isa = PBXSourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | 97C146EA1CF9000F007C117D /* Sources */ = { 268 | isa = PBXSourcesBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 272 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXSourcesBuildPhase section */ 277 | 278 | /* Begin PBXTargetDependency section */ 279 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 280 | isa = PBXTargetDependency; 281 | target = 97C146ED1CF9000F007C117D /* Runner */; 282 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 283 | }; 284 | /* End PBXTargetDependency section */ 285 | 286 | /* Begin PBXVariantGroup section */ 287 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 288 | isa = PBXVariantGroup; 289 | children = ( 290 | 97C146FB1CF9000F007C117D /* Base */, 291 | ); 292 | name = Main.storyboard; 293 | sourceTree = ""; 294 | }; 295 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 296 | isa = PBXVariantGroup; 297 | children = ( 298 | 97C147001CF9000F007C117D /* Base */, 299 | ); 300 | name = LaunchScreen.storyboard; 301 | sourceTree = ""; 302 | }; 303 | /* End PBXVariantGroup section */ 304 | 305 | /* Begin XCBuildConfiguration section */ 306 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 307 | isa = XCBuildConfiguration; 308 | buildSettings = { 309 | ALWAYS_SEARCH_USER_PATHS = NO; 310 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 311 | CLANG_ANALYZER_NONNULL = YES; 312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 313 | CLANG_CXX_LIBRARY = "libc++"; 314 | CLANG_ENABLE_MODULES = YES; 315 | CLANG_ENABLE_OBJC_ARC = YES; 316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 317 | CLANG_WARN_BOOL_CONVERSION = YES; 318 | CLANG_WARN_COMMA = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_EMPTY_BODY = YES; 323 | CLANG_WARN_ENUM_CONVERSION = YES; 324 | CLANG_WARN_INFINITE_RECURSION = YES; 325 | CLANG_WARN_INT_CONVERSION = YES; 326 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 328 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 330 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 331 | CLANG_WARN_STRICT_PROTOTYPES = YES; 332 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 333 | CLANG_WARN_UNREACHABLE_CODE = YES; 334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 336 | COPY_PHASE_STRIP = NO; 337 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 338 | ENABLE_NS_ASSERTIONS = NO; 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 341 | GCC_C_LANGUAGE_STANDARD = gnu99; 342 | GCC_NO_COMMON_BLOCKS = YES; 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 = 12.0; 350 | MTL_ENABLE_DEBUG_INFO = NO; 351 | SDKROOT = iphoneos; 352 | SUPPORTED_PLATFORMS = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | VALIDATE_PRODUCT = YES; 355 | }; 356 | name = Profile; 357 | }; 358 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 359 | isa = XCBuildConfiguration; 360 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 361 | buildSettings = { 362 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 | CLANG_ENABLE_MODULES = YES; 364 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 365 | ENABLE_BITCODE = NO; 366 | INFOPLIST_FILE = Runner/Info.plist; 367 | LD_RUNPATH_SEARCH_PATHS = ( 368 | "$(inherited)", 369 | "@executable_path/Frameworks", 370 | ); 371 | PRODUCT_BUNDLE_IDENTIFIER = com.example.homeAutomation01; 372 | PRODUCT_NAME = "$(TARGET_NAME)"; 373 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 374 | SWIFT_VERSION = 5.0; 375 | VERSIONING_SYSTEM = "apple-generic"; 376 | }; 377 | name = Profile; 378 | }; 379 | 331C8088294A63A400263BE5 /* Debug */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | BUNDLE_LOADER = "$(TEST_HOST)"; 383 | CODE_SIGN_STYLE = Automatic; 384 | CURRENT_PROJECT_VERSION = 1; 385 | GENERATE_INFOPLIST_FILE = YES; 386 | MARKETING_VERSION = 1.0; 387 | PRODUCT_BUNDLE_IDENTIFIER = com.example.homeAutomation01.RunnerTests; 388 | PRODUCT_NAME = "$(TARGET_NAME)"; 389 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 390 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 391 | SWIFT_VERSION = 5.0; 392 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 393 | }; 394 | name = Debug; 395 | }; 396 | 331C8089294A63A400263BE5 /* Release */ = { 397 | isa = XCBuildConfiguration; 398 | buildSettings = { 399 | BUNDLE_LOADER = "$(TEST_HOST)"; 400 | CODE_SIGN_STYLE = Automatic; 401 | CURRENT_PROJECT_VERSION = 1; 402 | GENERATE_INFOPLIST_FILE = YES; 403 | MARKETING_VERSION = 1.0; 404 | PRODUCT_BUNDLE_IDENTIFIER = com.example.homeAutomation01.RunnerTests; 405 | PRODUCT_NAME = "$(TARGET_NAME)"; 406 | SWIFT_VERSION = 5.0; 407 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 408 | }; 409 | name = Release; 410 | }; 411 | 331C808A294A63A400263BE5 /* Profile */ = { 412 | isa = XCBuildConfiguration; 413 | buildSettings = { 414 | BUNDLE_LOADER = "$(TEST_HOST)"; 415 | CODE_SIGN_STYLE = Automatic; 416 | CURRENT_PROJECT_VERSION = 1; 417 | GENERATE_INFOPLIST_FILE = YES; 418 | MARKETING_VERSION = 1.0; 419 | PRODUCT_BUNDLE_IDENTIFIER = com.example.homeAutomation01.RunnerTests; 420 | PRODUCT_NAME = "$(TARGET_NAME)"; 421 | SWIFT_VERSION = 5.0; 422 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 423 | }; 424 | name = Profile; 425 | }; 426 | 97C147031CF9000F007C117D /* Debug */ = { 427 | isa = XCBuildConfiguration; 428 | buildSettings = { 429 | ALWAYS_SEARCH_USER_PATHS = NO; 430 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 431 | CLANG_ANALYZER_NONNULL = YES; 432 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 433 | CLANG_CXX_LIBRARY = "libc++"; 434 | CLANG_ENABLE_MODULES = YES; 435 | CLANG_ENABLE_OBJC_ARC = YES; 436 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 437 | CLANG_WARN_BOOL_CONVERSION = YES; 438 | CLANG_WARN_COMMA = YES; 439 | CLANG_WARN_CONSTANT_CONVERSION = YES; 440 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 441 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 442 | CLANG_WARN_EMPTY_BODY = YES; 443 | CLANG_WARN_ENUM_CONVERSION = YES; 444 | CLANG_WARN_INFINITE_RECURSION = YES; 445 | CLANG_WARN_INT_CONVERSION = YES; 446 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 448 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 450 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 451 | CLANG_WARN_STRICT_PROTOTYPES = YES; 452 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 453 | CLANG_WARN_UNREACHABLE_CODE = YES; 454 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 455 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 456 | COPY_PHASE_STRIP = NO; 457 | DEBUG_INFORMATION_FORMAT = dwarf; 458 | ENABLE_STRICT_OBJC_MSGSEND = YES; 459 | ENABLE_TESTABILITY = YES; 460 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 461 | GCC_C_LANGUAGE_STANDARD = gnu99; 462 | GCC_DYNAMIC_NO_PIC = NO; 463 | GCC_NO_COMMON_BLOCKS = YES; 464 | GCC_OPTIMIZATION_LEVEL = 0; 465 | GCC_PREPROCESSOR_DEFINITIONS = ( 466 | "DEBUG=1", 467 | "$(inherited)", 468 | ); 469 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 470 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 471 | GCC_WARN_UNDECLARED_SELECTOR = YES; 472 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 473 | GCC_WARN_UNUSED_FUNCTION = YES; 474 | GCC_WARN_UNUSED_VARIABLE = YES; 475 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 476 | MTL_ENABLE_DEBUG_INFO = YES; 477 | ONLY_ACTIVE_ARCH = YES; 478 | SDKROOT = iphoneos; 479 | TARGETED_DEVICE_FAMILY = "1,2"; 480 | }; 481 | name = Debug; 482 | }; 483 | 97C147041CF9000F007C117D /* Release */ = { 484 | isa = XCBuildConfiguration; 485 | buildSettings = { 486 | ALWAYS_SEARCH_USER_PATHS = NO; 487 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; 488 | CLANG_ANALYZER_NONNULL = YES; 489 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 490 | CLANG_CXX_LIBRARY = "libc++"; 491 | CLANG_ENABLE_MODULES = YES; 492 | CLANG_ENABLE_OBJC_ARC = YES; 493 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 494 | CLANG_WARN_BOOL_CONVERSION = YES; 495 | CLANG_WARN_COMMA = YES; 496 | CLANG_WARN_CONSTANT_CONVERSION = YES; 497 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 498 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 499 | CLANG_WARN_EMPTY_BODY = YES; 500 | CLANG_WARN_ENUM_CONVERSION = YES; 501 | CLANG_WARN_INFINITE_RECURSION = YES; 502 | CLANG_WARN_INT_CONVERSION = YES; 503 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 504 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 505 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 506 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 507 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 508 | CLANG_WARN_STRICT_PROTOTYPES = YES; 509 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 510 | CLANG_WARN_UNREACHABLE_CODE = YES; 511 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 512 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 513 | COPY_PHASE_STRIP = NO; 514 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 515 | ENABLE_NS_ASSERTIONS = NO; 516 | ENABLE_STRICT_OBJC_MSGSEND = YES; 517 | ENABLE_USER_SCRIPT_SANDBOXING = NO; 518 | GCC_C_LANGUAGE_STANDARD = gnu99; 519 | GCC_NO_COMMON_BLOCKS = YES; 520 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 521 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 522 | GCC_WARN_UNDECLARED_SELECTOR = YES; 523 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 524 | GCC_WARN_UNUSED_FUNCTION = YES; 525 | GCC_WARN_UNUSED_VARIABLE = YES; 526 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 527 | MTL_ENABLE_DEBUG_INFO = NO; 528 | SDKROOT = iphoneos; 529 | SUPPORTED_PLATFORMS = iphoneos; 530 | SWIFT_COMPILATION_MODE = wholemodule; 531 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 532 | TARGETED_DEVICE_FAMILY = "1,2"; 533 | VALIDATE_PRODUCT = YES; 534 | }; 535 | name = Release; 536 | }; 537 | 97C147061CF9000F007C117D /* Debug */ = { 538 | isa = XCBuildConfiguration; 539 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 540 | buildSettings = { 541 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 542 | CLANG_ENABLE_MODULES = YES; 543 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 544 | ENABLE_BITCODE = NO; 545 | INFOPLIST_FILE = Runner/Info.plist; 546 | LD_RUNPATH_SEARCH_PATHS = ( 547 | "$(inherited)", 548 | "@executable_path/Frameworks", 549 | ); 550 | PRODUCT_BUNDLE_IDENTIFIER = com.example.homeAutomation01; 551 | PRODUCT_NAME = "$(TARGET_NAME)"; 552 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 553 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 554 | SWIFT_VERSION = 5.0; 555 | VERSIONING_SYSTEM = "apple-generic"; 556 | }; 557 | name = Debug; 558 | }; 559 | 97C147071CF9000F007C117D /* Release */ = { 560 | isa = XCBuildConfiguration; 561 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 562 | buildSettings = { 563 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 564 | CLANG_ENABLE_MODULES = YES; 565 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 566 | ENABLE_BITCODE = NO; 567 | INFOPLIST_FILE = Runner/Info.plist; 568 | LD_RUNPATH_SEARCH_PATHS = ( 569 | "$(inherited)", 570 | "@executable_path/Frameworks", 571 | ); 572 | PRODUCT_BUNDLE_IDENTIFIER = com.example.homeAutomation01; 573 | PRODUCT_NAME = "$(TARGET_NAME)"; 574 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 575 | SWIFT_VERSION = 5.0; 576 | VERSIONING_SYSTEM = "apple-generic"; 577 | }; 578 | name = Release; 579 | }; 580 | /* End XCBuildConfiguration section */ 581 | 582 | /* Begin XCConfigurationList section */ 583 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 331C8088294A63A400263BE5 /* Debug */, 587 | 331C8089294A63A400263BE5 /* Release */, 588 | 331C808A294A63A400263BE5 /* Profile */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 594 | isa = XCConfigurationList; 595 | buildConfigurations = ( 596 | 97C147031CF9000F007C117D /* Debug */, 597 | 97C147041CF9000F007C117D /* Release */, 598 | 249021D3217E4FDB00AE95B9 /* Profile */, 599 | ); 600 | defaultConfigurationIsVisible = 0; 601 | defaultConfigurationName = Release; 602 | }; 603 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 604 | isa = XCConfigurationList; 605 | buildConfigurations = ( 606 | 97C147061CF9000F007C117D /* Debug */, 607 | 97C147071CF9000F007C117D /* Release */, 608 | 249021D4217E4FDB00AE95B9 /* Profile */, 609 | ); 610 | defaultConfigurationIsVisible = 0; 611 | defaultConfigurationName = Release; 612 | }; 613 | /* End XCConfigurationList section */ 614 | }; 615 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 616 | } 617 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | @main 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/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/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | CFBundleDisplayName 8 | Home Automation01 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | home_automation01 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /lib/Models/bottom_nav_bar.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: avoid_unnecessary_containers, must_be_immutable 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:google_fonts/google_fonts.dart'; 5 | import 'package:google_nav_bar/google_nav_bar.dart'; 6 | 7 | class MyBottomNavBar extends StatelessWidget { 8 | void Function(int)? onTabChange; 9 | MyBottomNavBar({ 10 | super.key, 11 | required this.onTabChange, 12 | }); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Container( 17 | padding: const EdgeInsets.symmetric(vertical: 10), 18 | child: GNav( 19 | color: Colors.grey[600], 20 | activeColor: Colors.white, 21 | //tabActiveBorder: Border.all(color: Colors.white), 22 | tabBackgroundColor: Theme.of(context).colorScheme.secondary, 23 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 24 | tabBorderRadius: 14, 25 | curve: Curves.easeIn, 26 | duration: Durations.medium1, 27 | onTabChange: (value) => onTabChange!(value), 28 | tabs: [ 29 | GButton( 30 | gap: 10, 31 | icon: Icons.home_filled, 32 | text: 'Home', 33 | textStyle: GoogleFonts.poppins( 34 | fontSize: 18, 35 | color: Colors.white, 36 | fontWeight: FontWeight.w500, 37 | ), 38 | ), 39 | GButton( 40 | gap: 10, 41 | icon: Icons.info_rounded, 42 | text: 'About us', 43 | textStyle: GoogleFonts.poppins( 44 | fontSize: 18, 45 | color: Colors.white, 46 | fontWeight: FontWeight.w500, 47 | ), 48 | ), 49 | ], 50 | ), 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/Models/top_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | class TopCard extends StatelessWidget { 5 | const TopCard({super.key}); 6 | 7 | @override 8 | Widget build(BuildContext context) { 9 | return Container( 10 | width: MediaQuery.of(context).size.width / 0.2, 11 | height: MediaQuery.of(context).size.height * 0.08, 12 | decoration: BoxDecoration( 13 | color: Theme.of(context).colorScheme.primary, 14 | borderRadius: const BorderRadius.all(Radius.circular(20)), 15 | ), 16 | child: Padding( 17 | padding: const EdgeInsets.all(12.0), 18 | 19 | //Card 20 | child: Row( 21 | mainAxisAlignment: MainAxisAlignment.spaceAround, 22 | children: [ 23 | Row( 24 | children: [ 25 | Image.asset( 26 | "images/humidity.png", 27 | width: 30, 28 | height: 30, 29 | ), 30 | const SizedBox(width: 10), 31 | Column( 32 | mainAxisAlignment: MainAxisAlignment.center, 33 | children: [ 34 | Text( 35 | "Humidity", 36 | style: GoogleFonts.poppins( 37 | fontWeight: FontWeight.w500, 38 | ), 39 | ), 40 | Text( 41 | "75%", 42 | style: GoogleFonts.poppins( 43 | fontWeight: FontWeight.bold, 44 | ), 45 | ) 46 | ], 47 | ), 48 | ], 49 | ), 50 | const VerticalDivider( 51 | color: Color.fromARGB(255, 190, 190, 190), 52 | thickness: 0.5, 53 | width: 1, 54 | ), 55 | Row( 56 | children: [ 57 | Image.asset( 58 | "images/energy01.png", 59 | width: 30, 60 | height: 30, 61 | ), 62 | const SizedBox(width: 10), 63 | Column( 64 | mainAxisAlignment: MainAxisAlignment.center, 65 | children: [ 66 | Text( 67 | "Energy", 68 | style: GoogleFonts.poppins( 69 | fontWeight: FontWeight.w500, 70 | ), 71 | ), 72 | Text( 73 | "60kwh", 74 | style: GoogleFonts.poppins( 75 | fontWeight: FontWeight.bold, 76 | ), 77 | ) 78 | ], 79 | ), 80 | ], 81 | ), 82 | const VerticalDivider( 83 | color: Color.fromARGB(255, 190, 190, 190), 84 | thickness: 0.5, 85 | width: 1, 86 | ), 87 | Row( 88 | children: [ 89 | Image.asset( 90 | "images/temprature.png", 91 | width: 30, 92 | height: 30, 93 | ), 94 | const SizedBox(width: 3), 95 | Column( 96 | mainAxisAlignment: MainAxisAlignment.center, 97 | children: [ 98 | Text( 99 | "Temp", 100 | style: GoogleFonts.poppins( 101 | fontWeight: FontWeight.w500, 102 | ), 103 | ), 104 | Text( 105 | "24 C", 106 | style: GoogleFonts.poppins( 107 | fontWeight: FontWeight.bold, 108 | ), 109 | ), 110 | ], 111 | ), 112 | ], 113 | ), 114 | ], 115 | ), 116 | ), 117 | ); 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /lib/Models/widget.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: must_be_immutable 2 | 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:google_fonts/google_fonts.dart'; 6 | 7 | class MainWidget extends StatelessWidget { 8 | void Function(bool)? onChanged; 9 | final String imagePath; 10 | final String secondImagePath; 11 | final String mainText; 12 | final String secondaryText; 13 | final Color color; 14 | final bool isOn; 15 | final String text; 16 | 17 | MainWidget({ 18 | super.key, 19 | required this.mainText, 20 | required this.secondaryText, 21 | required this.imagePath, 22 | required this.onChanged, 23 | required this.secondImagePath, 24 | required this.color, 25 | required this.isOn, 26 | required this.text, 27 | }); 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | return AnimatedContainer( 32 | duration: const Duration(milliseconds: 900), 33 | curve: Curves.decelerate, 34 | width: MediaQuery.of(context).size.width * 0.44, 35 | height: MediaQuery.of(context).size.width * 0.6, 36 | decoration: BoxDecoration( 37 | color: color, 38 | borderRadius: const BorderRadius.all( 39 | Radius.circular(20), 40 | ), 41 | gradient: isOn 42 | ? LinearGradient( 43 | colors: [ 44 | color, 45 | color.withOpacity(0.6), 46 | ], 47 | begin: Alignment.topLeft, 48 | end: Alignment.bottomRight, 49 | ) 50 | : LinearGradient( 51 | colors: [ 52 | color, 53 | color.withOpacity(0.8), 54 | ], 55 | begin: Alignment.bottomRight, 56 | end: Alignment.topLeft, 57 | ), 58 | ), 59 | child: Padding( 60 | padding: const EdgeInsets.all(15.0), 61 | child: Column( 62 | crossAxisAlignment: CrossAxisAlignment.start, 63 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 64 | children: [ 65 | Row( 66 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 67 | children: [ 68 | Image.asset( 69 | imagePath, 70 | width: 40, 71 | height: 40, 72 | color: Colors.white, 73 | ), 74 | Image.asset( 75 | secondImagePath, 76 | width: 40, 77 | height: 40, 78 | color: Colors.white, 79 | ), 80 | ], 81 | ), 82 | Text( 83 | mainText, 84 | style: GoogleFonts.poppins( 85 | color: Colors.white, 86 | fontWeight: FontWeight.bold, 87 | fontSize: 20, 88 | ), 89 | ), 90 | Text( 91 | secondaryText, 92 | style: GoogleFonts.poppins( 93 | color: Colors.white, 94 | fontWeight: FontWeight.w400, 95 | fontSize: 15, 96 | ), 97 | ), 98 | const Divider( 99 | color: Color.fromARGB(255, 190, 190, 190), 100 | thickness: 1, 101 | ), 102 | Row( 103 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 104 | children: [ 105 | Text( 106 | isOn ? text : text, 107 | style: GoogleFonts.poppins( 108 | color: Colors.white, 109 | fontWeight: FontWeight.bold, 110 | fontSize: 20, 111 | ), 112 | ), 113 | CupertinoSwitch( 114 | value: isOn, 115 | onChanged: onChanged, 116 | activeColor: Colors.green, 117 | trackColor: Colors.grey, 118 | ), 119 | ], 120 | ), 121 | ], 122 | ), 123 | ), 124 | ); 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /lib/Pages/about_us.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: must_be_immutable 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:google_fonts/google_fonts.dart'; 5 | 6 | class SettingsPage extends StatelessWidget { 7 | SettingsPage({super.key}); 8 | 9 | String introduction = 10 | "Our Home Automation System uses IoT to optimize lighting and door control, offering energy-efficient, customizable, and accessible solutions. Designed for the elderly and disabled, it enhances safety and convenience. Users can control lights, doors, and fans via a mobile app for a smarter, more independent living experience."; 11 | 12 | String aim = 13 | "To develop a cutting-edge smart home automation system that automates door & lighting based on occupancy, environmental factors, and user preferences, controlled through a seamless mobile application."; 14 | 15 | String objectives = 16 | "+ Automated Door Entry \n+ Automated Entry/Exit Lighting\n+ Mood-Based Lighting\n+ Eldercare\n+ Application Control"; 17 | 18 | String tools = 19 | "+ IR Sensor\n+ Servo Motors\n+ PIR Sensors\n+ ESP 8266 WiFi Module\n+ Flutter Mobile Application\n+ Lighting System"; 20 | 21 | String methodology = 22 | "+ Person Detection and Door Operation\n+ Room Occupancy Detection\n+ Lighting Control\n+ Mobile Application\n"; 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return Scaffold( 27 | body: SingleChildScrollView( 28 | child: Container( 29 | padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 20), 30 | child: Column( 31 | children: [ 32 | ClipRRect( 33 | borderRadius: BorderRadius.circular(15), 34 | child: ExpansionTile( 35 | tilePadding: const EdgeInsets.all(10), 36 | childrenPadding: 37 | const EdgeInsets.symmetric(horizontal: 15, vertical: 10), 38 | collapsedBackgroundColor: Colors.deepPurple, 39 | expandedCrossAxisAlignment: CrossAxisAlignment.stretch, 40 | collapsedIconColor: Colors.white, 41 | backgroundColor: Colors.deepPurple, 42 | shape: LinearBorder.none, 43 | title: Text( 44 | "Introduction", 45 | style: GoogleFonts.poppins( 46 | fontSize: 18, 47 | color: Colors.white, 48 | fontWeight: FontWeight.bold, 49 | ), 50 | ), 51 | children: [ 52 | Image.asset( 53 | "images/IMG_0391.JPEG", 54 | width: 500, 55 | height: 280, 56 | fit: BoxFit.fill, 57 | ), 58 | const SizedBox(height: 10), 59 | Text( 60 | introduction, 61 | style: const TextStyle( 62 | color: Colors.white, 63 | fontSize: 15, 64 | ), 65 | ) 66 | ], 67 | ), 68 | ), 69 | 70 | //Aims and Objectives 71 | const SizedBox(height: 15), 72 | ClipRRect( 73 | borderRadius: BorderRadius.circular(15), 74 | child: ExpansionTile( 75 | tilePadding: const EdgeInsets.all(10), 76 | childrenPadding: 77 | const EdgeInsets.symmetric(horizontal: 15, vertical: 10), 78 | expandedAlignment: Alignment.centerLeft, 79 | expandedCrossAxisAlignment: CrossAxisAlignment.start, 80 | collapsedBackgroundColor: Colors.deepPurple, 81 | collapsedIconColor: Colors.white, 82 | backgroundColor: Colors.blue, 83 | shape: LinearBorder.none, 84 | title: Text( 85 | "Aim and objectives", 86 | style: GoogleFonts.poppins( 87 | fontSize: 18, 88 | color: Colors.white, 89 | fontWeight: FontWeight.bold, 90 | ), 91 | ), 92 | children: [ 93 | Row( 94 | children: [ 95 | Image.asset( 96 | "images/bullet-point.png", 97 | width: 20, 98 | height: 20, 99 | color: Colors.white, 100 | ), 101 | Text( 102 | " Aim", 103 | style: GoogleFonts.poppins( 104 | fontSize: 16, 105 | color: Colors.white, 106 | fontWeight: FontWeight.bold, 107 | ), 108 | ), 109 | ], 110 | ), 111 | Text( 112 | aim, 113 | style: GoogleFonts.poppins( 114 | fontSize: 15, 115 | color: Colors.white, 116 | ), 117 | ), 118 | const SizedBox(height: 10), 119 | Row( 120 | children: [ 121 | Image.asset( 122 | "images/bullet-point.png", 123 | width: 20, 124 | height: 20, 125 | color: Colors.white, 126 | ), 127 | Text( 128 | " Objectives", 129 | style: GoogleFonts.poppins( 130 | fontSize: 16, 131 | color: Colors.white, 132 | fontWeight: FontWeight.bold, 133 | ), 134 | ), 135 | ], 136 | ), 137 | Text( 138 | objectives, 139 | style: GoogleFonts.poppins( 140 | fontSize: 15, 141 | color: Colors.white, 142 | ), 143 | ), 144 | ], 145 | ), 146 | ), 147 | 148 | //Tools and Technologies 149 | const SizedBox(height: 15), 150 | ClipRRect( 151 | borderRadius: BorderRadius.circular(15), 152 | child: ExpansionTile( 153 | tilePadding: const EdgeInsets.all(10), 154 | childrenPadding: 155 | const EdgeInsets.symmetric(horizontal: 15, vertical: 10), 156 | expandedAlignment: Alignment.centerLeft, 157 | expandedCrossAxisAlignment: CrossAxisAlignment.start, 158 | collapsedBackgroundColor: Colors.deepPurple, 159 | collapsedIconColor: Colors.white, 160 | backgroundColor: const Color.fromARGB(255, 243, 114, 33), 161 | shape: LinearBorder.none, 162 | title: Text( 163 | "Tools and Technologies", 164 | style: GoogleFonts.poppins( 165 | fontSize: 18, 166 | color: Colors.white, 167 | fontWeight: FontWeight.bold, 168 | ), 169 | ), 170 | children: [ 171 | Text( 172 | tools, 173 | style: GoogleFonts.poppins( 174 | fontSize: 15, 175 | color: Colors.white, 176 | ), 177 | ), 178 | ], 179 | ), 180 | ), 181 | 182 | //Methodology 183 | const SizedBox(height: 15), 184 | ClipRRect( 185 | borderRadius: BorderRadius.circular(15), 186 | child: ExpansionTile( 187 | tilePadding: const EdgeInsets.all(10), 188 | childrenPadding: 189 | const EdgeInsets.symmetric(horizontal: 15, vertical: 10), 190 | expandedAlignment: Alignment.centerLeft, 191 | expandedCrossAxisAlignment: CrossAxisAlignment.start, 192 | collapsedBackgroundColor: Colors.deepPurple, 193 | collapsedIconColor: Colors.white, 194 | backgroundColor: const Color.fromARGB(255, 67, 46, 247), 195 | shape: LinearBorder.none, 196 | title: Text( 197 | "Methodology", 198 | style: GoogleFonts.poppins( 199 | fontSize: 18, 200 | color: Colors.white, 201 | fontWeight: FontWeight.bold, 202 | ), 203 | ), 204 | children: [ 205 | Text( 206 | methodology, 207 | style: GoogleFonts.poppins( 208 | fontSize: 15, 209 | color: Colors.white, 210 | ), 211 | ), 212 | ], 213 | ), 214 | ), 215 | ], 216 | ), 217 | ), 218 | ), 219 | ); 220 | } 221 | } 222 | -------------------------------------------------------------------------------- /lib/Pages/home_screen.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: avoid_print, must_be_immutable 2 | 3 | import 'package:delightful_toast/delight_toast.dart'; 4 | import 'package:delightful_toast/toast/components/toast_card.dart'; 5 | import 'package:delightful_toast/toast/utils/enums.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:google_fonts/google_fonts.dart'; 8 | import 'package:home_automation01/Models/top_card.dart'; 9 | import 'package:home_automation01/Models/widget.dart'; 10 | import 'package:home_automation01/Providers/theme_provider.dart'; 11 | import 'package:http/http.dart' as http; 12 | import 'package:provider/provider.dart'; 13 | 14 | class ControlPage extends StatefulWidget { 15 | const ControlPage({super.key}); 16 | 17 | @override 18 | State createState() => _ControlPageState(); 19 | } 20 | 21 | class _ControlPageState extends State { 22 | final String espIp = "192.168.xx.xx"; //Replace your ESP Board IP addresses 23 | 24 | bool mainLight = false; //Main light 25 | 26 | bool tableLamp = false; //Table lamp 27 | 28 | bool isDoorOpen = false; //Door 29 | 30 | bool isSleep = false; //Blue light 31 | 32 | bool themeToggle = true; //Theme toggle 33 | 34 | //Module IP assign 35 | Future sendRequest(String endpoint) async { 36 | final url = Uri.parse("http://$espIp$endpoint"); 37 | try { 38 | final response = await http.get(url); 39 | if (response.statusCode == 200) { 40 | print("Success: ${response.body}"); 41 | } else { 42 | print("Failed with status: ${response.statusCode}"); 43 | } 44 | } catch (e) { 45 | print("Request error: $e"); 46 | } 47 | } 48 | 49 | //Toast Message 50 | void showToast(String message, String image, Color color) { 51 | DelightToastBar( 52 | position: DelightSnackbarPosition.top, 53 | autoDismiss: true, 54 | snackbarDuration: const Duration(milliseconds: 1200), 55 | animationDuration: const Duration(milliseconds: 500), 56 | builder: (context) => ToastCard( 57 | color: color, 58 | leading: Image.asset( 59 | image, 60 | width: 40, 61 | height: 40, 62 | ), 63 | title: Text( 64 | message, 65 | style: const TextStyle( 66 | fontWeight: FontWeight.w700, 67 | fontSize: 14, 68 | color: Colors.white, 69 | ), 70 | ), 71 | ), 72 | // Animation will take 300 ms 73 | ).show(context); 74 | } 75 | 76 | //Main Light Controll 77 | void mainLightControll(bool value) { 78 | setState(() { 79 | mainLight = value; 80 | }); 81 | sendRequest(value ? "/led_white/on" : "/led_white/off"); 82 | showToast( 83 | value ? "Main Light Turned On" : "Main Light Turned Off", 84 | value ? "images/lighton.png" : "images/lightoff.png", 85 | Colors.teal.withOpacity(0.9), 86 | ); 87 | } 88 | 89 | //Table Lamp Controll 90 | void tableLampControll(bool value) { 91 | setState(() { 92 | tableLamp = value; 93 | }); 94 | sendRequest(value ? "/led_orange/on" : "/led_orange/off"); 95 | showToast( 96 | value ? "Study Lamp Turned On" : "Study Light Turned Off", 97 | value ? "images/lighton.png" : "images/lightoff.png", 98 | const Color.fromARGB(255, 246, 190, 38).withOpacity(0.9), 99 | ); 100 | } 101 | 102 | //Sleeping Light Controll 103 | void sleepingLightControll(bool value) { 104 | setState(() { 105 | isSleep = value; 106 | }); 107 | sendRequest(value ? "/led_blue/on" : "/led_blue/off"); 108 | showToast( 109 | value ? "Sleeping Light Turned On" : "Sleeping Light Turned Off", 110 | value ? "images/lighton.png" : "images/lightoff.png", 111 | const Color.fromARGB(255, 2, 88, 159).withOpacity(0.9), 112 | ); 113 | } 114 | 115 | //Door Controll 116 | void doorControll(bool value) { 117 | setState(() { 118 | isDoorOpen = value; 119 | }); 120 | sendRequest(value ? "/door/open" : "/door/close"); 121 | showToast( 122 | value ? "Door Opened" : "Door Closed", 123 | value ? "images/door-open1.png" : "images/door-close.png", 124 | Colors.deepPurple.withOpacity(0.9), 125 | ); 126 | } 127 | 128 | //Datetime 129 | String getGreetingMessage() { 130 | final hour = DateTime.now().hour; 131 | if (hour < 12) { 132 | return "Good Morning"; 133 | } else if (hour < 18) { 134 | return "Good Afternoon"; 135 | } else { 136 | return "Good Evening"; 137 | } 138 | } 139 | 140 | @override 141 | Widget build(BuildContext context) { 142 | return Scaffold( 143 | backgroundColor: Theme.of(context).colorScheme.surface, 144 | body: SingleChildScrollView( 145 | child: SafeArea( 146 | child: Center( 147 | child: Container( 148 | padding: const EdgeInsets.all(15), 149 | child: Column( 150 | mainAxisAlignment: MainAxisAlignment.start, 151 | children: [ 152 | //Status Bar/Greeting 153 | Row( 154 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 155 | children: [ 156 | Column( 157 | crossAxisAlignment: CrossAxisAlignment.start, 158 | children: [ 159 | Text( 160 | getGreetingMessage(), 161 | style: GoogleFonts.poppins( 162 | color: Theme.of(context).colorScheme.onPrimary, 163 | fontSize: 18, 164 | ), 165 | ), 166 | Row( 167 | children: [ 168 | Text( 169 | "Hey,", 170 | style: GoogleFonts.poppins( 171 | color: Theme.of(context) 172 | .colorScheme 173 | .onPrimaryFixed, 174 | fontSize: 22, 175 | fontWeight: FontWeight.w500, 176 | ), 177 | ), 178 | Text( 179 | " Alwis👋", 180 | style: GoogleFonts.poppins( 181 | color: Theme.of(context) 182 | .colorScheme 183 | .onPrimaryFixed, 184 | fontSize: 22, 185 | fontWeight: FontWeight.bold, 186 | ), 187 | ), 188 | ], 189 | ), 190 | ], 191 | ), 192 | GestureDetector( 193 | onTap: () { 194 | Provider.of(context, listen: false) 195 | .toggleTheme(); 196 | }, 197 | child: CircleAvatar( 198 | radius: 28, 199 | child: Icon( 200 | Provider.of(context).isDarkMode 201 | ? Icons.nightlight 202 | : Icons.sunny, 203 | size: 35, 204 | color: 205 | Provider.of(context).isDarkMode 206 | ? Colors.deepPurple 207 | : Colors.yellow, 208 | ), 209 | ), 210 | ), 211 | ], 212 | ), 213 | 214 | const SizedBox(height: 20), 215 | 216 | const TopCard(), 217 | 218 | const SizedBox(height: 20), 219 | 220 | Column( 221 | children: [ 222 | Row( 223 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 224 | children: [ 225 | //White Light Widget 226 | MainWidget( 227 | mainText: "Smart Lighting", 228 | secondaryText: "Bedroom", 229 | imagePath: mainLight 230 | ? "images/lamp-on.png" 231 | : "images/lamp-off.png", 232 | secondImagePath: "images/wifi.png", 233 | color: Colors.teal, 234 | onChanged: mainLightControll, 235 | isOn: mainLight, 236 | text: mainLight ? "On" : "Off", 237 | ), 238 | 239 | //Table Lamp Light Widget 240 | MainWidget( 241 | mainText: "Study Mode", 242 | secondaryText: "Study, Music", 243 | imagePath: tableLamp 244 | ? "images/desk-lamp-on.png" 245 | : "images/tlamp-off.png", 246 | secondImagePath: "images/wifi.png", 247 | color: const Color.fromARGB(255, 245, 186, 25), 248 | onChanged: tableLampControll, 249 | isOn: tableLamp, 250 | text: tableLamp ? "On" : "Off", 251 | ), 252 | ], 253 | ), 254 | const SizedBox(height: 20), 255 | Row( 256 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 257 | children: [ 258 | //Sleeping Light Widget 259 | MainWidget( 260 | mainText: "Sleeping Mode", 261 | secondaryText: "Sleeping Light", 262 | imagePath: isSleep 263 | ? "images/sleep.png" 264 | : "images/not-sleeping.png", 265 | secondImagePath: "images/wifi.png", 266 | color: const Color.fromARGB(255, 2, 88, 159), 267 | onChanged: sleepingLightControll, 268 | isOn: isSleep, 269 | text: isSleep ? "On" : "Off", 270 | ), 271 | 272 | //Door Controll Widget 273 | MainWidget( 274 | mainText: "Door Control", 275 | secondaryText: "Smart Door", 276 | imagePath: isDoorOpen 277 | ? "images/door-open.png" 278 | : "images/door-close.png", 279 | secondImagePath: "images/wifi.png", 280 | color: Colors.deepPurple, 281 | onChanged: doorControll, 282 | isOn: isDoorOpen, 283 | text: isDoorOpen ? "Opened" : "Closed", 284 | ), 285 | ], 286 | ), 287 | ], 288 | ), 289 | ], 290 | ), 291 | ), 292 | ), 293 | ), 294 | ), 295 | ); 296 | } 297 | } 298 | -------------------------------------------------------------------------------- /lib/Pages/main_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:home_automation01/Models/bottom_nav_bar.dart'; 3 | import 'package:home_automation01/Pages/home_screen.dart'; 4 | import 'package:home_automation01/Pages/about_us.dart'; 5 | 6 | class MainPage extends StatefulWidget { 7 | const MainPage({super.key}); 8 | 9 | @override 10 | State createState() => _MainPageState(); 11 | } 12 | 13 | class _MainPageState extends State { 14 | // this selected index is to control the bottom nav bar 15 | int _selectedIndex = 0; 16 | 17 | // this method will update our selected index 18 | void navigateBottomBar(int index) { 19 | setState(() { 20 | _selectedIndex = index; 21 | }); 22 | } 23 | 24 | //pages to display 25 | final List _pages = [ 26 | const ControlPage(), 27 | SettingsPage(), 28 | ]; 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | return Scaffold( 33 | bottomNavigationBar: MyBottomNavBar( 34 | onTabChange: (index) => navigateBottomBar(index), 35 | ), 36 | body: SafeArea(child: _pages[_selectedIndex]), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/Providers/theme_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:home_automation01/Theme/dark_theme.dart'; 3 | import 'package:home_automation01/Theme/light_theme.dart'; 4 | 5 | class ThemeProvider with ChangeNotifier { 6 | ThemeData _themeData = lightMode; 7 | 8 | ThemeData get themeData => _themeData; 9 | 10 | bool get isDarkMode => _themeData == darkMode; 11 | 12 | set themeData(ThemeData themeData) { 13 | _themeData = themeData; 14 | notifyListeners(); 15 | } 16 | 17 | void toggleTheme() { 18 | if (_themeData == lightMode) { 19 | themeData = darkMode; 20 | } else { 21 | themeData = lightMode; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/Theme/dark_theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | ThemeData darkMode = ThemeData( 4 | colorScheme: const ColorScheme.dark( 5 | surface: Color.fromARGB(100, 20, 20, 75), 6 | primary: Color.fromARGB(255, 164, 164, 164), 7 | secondary: Color.fromARGB(255, 0, 125, 150), 8 | onPrimary: Colors.white, 9 | onPrimaryFixed: Colors.white, 10 | ), 11 | ); 12 | -------------------------------------------------------------------------------- /lib/Theme/light_theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | ThemeData lightMode = ThemeData( 4 | colorScheme: const ColorScheme.light( 5 | surface: Color.fromARGB(200, 244, 250, 251), 6 | primary: Colors.white, 7 | secondary: Colors.teal, 8 | onPrimary: Color.fromARGB(255, 124, 124, 124), 9 | onPrimaryFixed: Colors.black, 10 | ), 11 | ); 12 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:home_automation01/Pages/main_page.dart'; 3 | import 'package:home_automation01/Providers/theme_provider.dart'; 4 | import 'package:provider/provider.dart'; 5 | 6 | void main() { 7 | runApp( 8 | ChangeNotifierProvider( 9 | create: (context) => ThemeProvider(), 10 | child: const MyApp(), 11 | ), 12 | ); 13 | } 14 | 15 | class MyApp extends StatelessWidget { 16 | const MyApp({super.key}); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return MaterialApp( 21 | debugShowCheckedModeBanner: false, 22 | theme: Provider.of(context).themeData, 23 | home: const MainPage(), 24 | ); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /linux/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Project-level configuration. 2 | cmake_minimum_required(VERSION 3.10) 3 | project(runner LANGUAGES CXX) 4 | 5 | # The name of the executable created for the application. Change this to change 6 | # the on-disk name of your application. 7 | set(BINARY_NAME "home_automation01") 8 | # The unique GTK application identifier for this application. See: 9 | # https://wiki.gnome.org/HowDoI/ChooseApplicationID 10 | set(APPLICATION_ID "com.example.home_automation01") 11 | 12 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent 13 | # versions of CMake. 14 | cmake_policy(SET CMP0063 NEW) 15 | 16 | # Load bundled libraries from the lib/ directory relative to the binary. 17 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") 18 | 19 | # Root filesystem for cross-building. 20 | if(FLUTTER_TARGET_PLATFORM_SYSROOT) 21 | set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) 22 | set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) 23 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 24 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 25 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 26 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 27 | endif() 28 | 29 | # Define build configuration options. 30 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 31 | set(CMAKE_BUILD_TYPE "Debug" CACHE 32 | STRING "Flutter build mode" FORCE) 33 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 34 | "Debug" "Profile" "Release") 35 | endif() 36 | 37 | # Compilation settings that should be applied to most targets. 38 | # 39 | # Be cautious about adding new options here, as plugins use this function by 40 | # default. In most cases, you should add new options to specific targets instead 41 | # of modifying this function. 42 | function(APPLY_STANDARD_SETTINGS TARGET) 43 | target_compile_features(${TARGET} PUBLIC cxx_std_14) 44 | target_compile_options(${TARGET} PRIVATE -Wall -Werror) 45 | target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") 46 | target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") 47 | endfunction() 48 | 49 | # Flutter library and tool build rules. 50 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 51 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 52 | 53 | # System-level dependencies. 54 | find_package(PkgConfig REQUIRED) 55 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 56 | 57 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") 58 | 59 | # Define the application target. To change its name, change BINARY_NAME above, 60 | # not the value here, or `flutter run` will no longer work. 61 | # 62 | # Any new source files that you add to the application should be added here. 63 | add_executable(${BINARY_NAME} 64 | "main.cc" 65 | "my_application.cc" 66 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 67 | ) 68 | 69 | # Apply the standard set of build settings. This can be removed for applications 70 | # that need different build settings. 71 | apply_standard_settings(${BINARY_NAME}) 72 | 73 | # Add dependency libraries. Add any application-specific dependencies here. 74 | target_link_libraries(${BINARY_NAME} PRIVATE flutter) 75 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) 76 | 77 | # Run the Flutter tool portions of the build. This must not be removed. 78 | add_dependencies(${BINARY_NAME} flutter_assemble) 79 | 80 | # Only the install-generated bundle's copy of the executable will launch 81 | # correctly, since the resources must in the right relative locations. To avoid 82 | # people trying to run the unbundled copy, put it in a subdirectory instead of 83 | # the default top-level location. 84 | set_target_properties(${BINARY_NAME} 85 | PROPERTIES 86 | RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" 87 | ) 88 | 89 | 90 | # Generated plugin build rules, which manage building the plugins and adding 91 | # them to the application. 92 | include(flutter/generated_plugins.cmake) 93 | 94 | 95 | # === Installation === 96 | # By default, "installing" just makes a relocatable bundle in the build 97 | # directory. 98 | set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") 99 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 100 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 101 | endif() 102 | 103 | # Start with a clean build bundle directory every time. 104 | install(CODE " 105 | file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") 106 | " COMPONENT Runtime) 107 | 108 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 109 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") 110 | 111 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 112 | COMPONENT Runtime) 113 | 114 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 115 | COMPONENT Runtime) 116 | 117 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 118 | COMPONENT Runtime) 119 | 120 | foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) 121 | install(FILES "${bundled_library}" 122 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 123 | COMPONENT Runtime) 124 | endforeach(bundled_library) 125 | 126 | # Copy the native assets provided by the build.dart from all packages. 127 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") 128 | install(DIRECTORY "${NATIVE_ASSETS_DIR}" 129 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 130 | COMPONENT Runtime) 131 | 132 | # Fully re-copy the assets directory on each build to avoid having stale files 133 | # from a previous install. 134 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 135 | install(CODE " 136 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 137 | " COMPONENT Runtime) 138 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 139 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 140 | 141 | # Install the AOT library on non-Debug builds only. 142 | if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") 143 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 144 | COMPONENT Runtime) 145 | endif() 146 | -------------------------------------------------------------------------------- /linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | 10 | void fl_register_plugins(FlPluginRegistry* registry) { 11 | } 12 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | ) 7 | 8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 9 | ) 10 | 11 | set(PLUGIN_BUNDLED_LIBRARIES) 12 | 13 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 18 | endforeach(plugin) 19 | 20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 23 | endforeach(ffi_plugin) 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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, "home_automation01"); 44 | gtk_header_bar_set_show_close_button(header_bar, TRUE); 45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); 46 | } else { 47 | gtk_window_set_title(window, "home_automation01"); 48 | } 49 | 50 | gtk_window_set_default_size(window, 1280, 720); 51 | gtk_widget_show(GTK_WIDGET(window)); 52 | 53 | g_autoptr(FlDartProject) project = fl_dart_project_new(); 54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); 55 | 56 | FlView* view = fl_view_new(project); 57 | gtk_widget_show(GTK_WIDGET(view)); 58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); 59 | 60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view)); 61 | 62 | gtk_widget_grab_focus(GTK_WIDGET(view)); 63 | } 64 | 65 | // Implements GApplication::local_command_line. 66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { 67 | MyApplication* self = MY_APPLICATION(application); 68 | // Strip out the first argument as it is the binary name. 69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); 70 | 71 | g_autoptr(GError) error = nullptr; 72 | if (!g_application_register(application, nullptr, &error)) { 73 | g_warning("Failed to register: %s", error->message); 74 | *exit_status = 1; 75 | return TRUE; 76 | } 77 | 78 | g_application_activate(application); 79 | *exit_status = 0; 80 | 81 | return TRUE; 82 | } 83 | 84 | // Implements GApplication::startup. 85 | static void my_application_startup(GApplication* application) { 86 | //MyApplication* self = MY_APPLICATION(object); 87 | 88 | // Perform any actions required at application startup. 89 | 90 | G_APPLICATION_CLASS(my_application_parent_class)->startup(application); 91 | } 92 | 93 | // Implements GApplication::shutdown. 94 | static void my_application_shutdown(GApplication* application) { 95 | //MyApplication* self = MY_APPLICATION(object); 96 | 97 | // Perform any actions required at application shutdown. 98 | 99 | G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); 100 | } 101 | 102 | // Implements GObject::dispose. 103 | static void my_application_dispose(GObject* object) { 104 | MyApplication* self = MY_APPLICATION(object); 105 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); 106 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object); 107 | } 108 | 109 | static void my_application_class_init(MyApplicationClass* klass) { 110 | G_APPLICATION_CLASS(klass)->activate = my_application_activate; 111 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; 112 | G_APPLICATION_CLASS(klass)->startup = my_application_startup; 113 | G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; 114 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose; 115 | } 116 | 117 | static void my_application_init(MyApplication* self) {} 118 | 119 | MyApplication* my_application_new() { 120 | return MY_APPLICATION(g_object_new(my_application_get_type(), 121 | "application-id", APPLICATION_ID, 122 | "flags", G_APPLICATION_NON_UNIQUE, 123 | nullptr)); 124 | } 125 | -------------------------------------------------------------------------------- /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/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import path_provider_foundation 9 | 10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 11 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 12 | } 13 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @main 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /macos/Runner/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 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 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | -------------------------------------------------------------------------------- /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 = home_automation01 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.homeAutomation01 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController() 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 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /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 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "2.11.0" 12 | boolean_selector: 13 | dependency: transitive 14 | description: 15 | name: boolean_selector 16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.1.1" 20 | characters: 21 | dependency: transitive 22 | description: 23 | name: characters 24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "1.3.0" 28 | clock: 29 | dependency: transitive 30 | description: 31 | name: clock 32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "1.1.1" 36 | collection: 37 | dependency: transitive 38 | description: 39 | name: collection 40 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.18.0" 44 | crypto: 45 | dependency: transitive 46 | description: 47 | name: crypto 48 | sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "3.0.6" 52 | cupertino_icons: 53 | dependency: "direct main" 54 | description: 55 | name: cupertino_icons 56 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.0.8" 60 | delightful_toast: 61 | dependency: "direct main" 62 | description: 63 | name: delightful_toast 64 | sha256: "93d0b9e89a65947e42daa8aafe552596487dbedc15f68d0480654e789e94bc5b" 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "1.1.0" 68 | fake_async: 69 | dependency: transitive 70 | description: 71 | name: fake_async 72 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "1.3.1" 76 | ffi: 77 | dependency: transitive 78 | description: 79 | name: ffi 80 | sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "2.1.3" 84 | flutter: 85 | dependency: "direct main" 86 | description: flutter 87 | source: sdk 88 | version: "0.0.0" 89 | flutter_animate: 90 | dependency: transitive 91 | description: 92 | name: flutter_animate 93 | sha256: "7befe2d3252728afb77aecaaea1dec88a89d35b9b1d2eea6d04479e8af9117b5" 94 | url: "https://pub.dev" 95 | source: hosted 96 | version: "4.5.2" 97 | flutter_lints: 98 | dependency: "direct dev" 99 | description: 100 | name: flutter_lints 101 | sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" 102 | url: "https://pub.dev" 103 | source: hosted 104 | version: "4.0.0" 105 | flutter_shaders: 106 | dependency: transitive 107 | description: 108 | name: flutter_shaders 109 | sha256: "34794acadd8275d971e02df03afee3dee0f98dbfb8c4837082ad0034f612a3e2" 110 | url: "https://pub.dev" 111 | source: hosted 112 | version: "0.1.3" 113 | flutter_test: 114 | dependency: "direct dev" 115 | description: flutter 116 | source: sdk 117 | version: "0.0.0" 118 | google_fonts: 119 | dependency: "direct main" 120 | description: 121 | name: google_fonts 122 | sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82 123 | url: "https://pub.dev" 124 | source: hosted 125 | version: "6.2.1" 126 | google_nav_bar: 127 | dependency: "direct main" 128 | description: 129 | name: google_nav_bar 130 | sha256: bb12dd21514ee1b041ab3127673e2fd85e693337df308f7f2b75cd1e8e92eaf4 131 | url: "https://pub.dev" 132 | source: hosted 133 | version: "5.0.7" 134 | http: 135 | dependency: "direct main" 136 | description: 137 | name: http 138 | sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 139 | url: "https://pub.dev" 140 | source: hosted 141 | version: "1.2.2" 142 | http_parser: 143 | dependency: transitive 144 | description: 145 | name: http_parser 146 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 147 | url: "https://pub.dev" 148 | source: hosted 149 | version: "4.0.2" 150 | leak_tracker: 151 | dependency: transitive 152 | description: 153 | name: leak_tracker 154 | sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" 155 | url: "https://pub.dev" 156 | source: hosted 157 | version: "10.0.5" 158 | leak_tracker_flutter_testing: 159 | dependency: transitive 160 | description: 161 | name: leak_tracker_flutter_testing 162 | sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" 163 | url: "https://pub.dev" 164 | source: hosted 165 | version: "3.0.5" 166 | leak_tracker_testing: 167 | dependency: transitive 168 | description: 169 | name: leak_tracker_testing 170 | sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" 171 | url: "https://pub.dev" 172 | source: hosted 173 | version: "3.0.1" 174 | lints: 175 | dependency: transitive 176 | description: 177 | name: lints 178 | sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" 179 | url: "https://pub.dev" 180 | source: hosted 181 | version: "4.0.0" 182 | matcher: 183 | dependency: transitive 184 | description: 185 | name: matcher 186 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb 187 | url: "https://pub.dev" 188 | source: hosted 189 | version: "0.12.16+1" 190 | material_color_utilities: 191 | dependency: transitive 192 | description: 193 | name: material_color_utilities 194 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec 195 | url: "https://pub.dev" 196 | source: hosted 197 | version: "0.11.1" 198 | meta: 199 | dependency: transitive 200 | description: 201 | name: meta 202 | sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 203 | url: "https://pub.dev" 204 | source: hosted 205 | version: "1.15.0" 206 | nested: 207 | dependency: transitive 208 | description: 209 | name: nested 210 | sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" 211 | url: "https://pub.dev" 212 | source: hosted 213 | version: "1.0.0" 214 | path: 215 | dependency: transitive 216 | description: 217 | name: path 218 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" 219 | url: "https://pub.dev" 220 | source: hosted 221 | version: "1.9.0" 222 | path_provider: 223 | dependency: transitive 224 | description: 225 | name: path_provider 226 | sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" 227 | url: "https://pub.dev" 228 | source: hosted 229 | version: "2.1.5" 230 | path_provider_android: 231 | dependency: transitive 232 | description: 233 | name: path_provider_android 234 | sha256: "8c4967f8b7cb46dc914e178daa29813d83ae502e0529d7b0478330616a691ef7" 235 | url: "https://pub.dev" 236 | source: hosted 237 | version: "2.2.14" 238 | path_provider_foundation: 239 | dependency: transitive 240 | description: 241 | name: path_provider_foundation 242 | sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 243 | url: "https://pub.dev" 244 | source: hosted 245 | version: "2.4.0" 246 | path_provider_linux: 247 | dependency: transitive 248 | description: 249 | name: path_provider_linux 250 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 251 | url: "https://pub.dev" 252 | source: hosted 253 | version: "2.2.1" 254 | path_provider_platform_interface: 255 | dependency: transitive 256 | description: 257 | name: path_provider_platform_interface 258 | sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" 259 | url: "https://pub.dev" 260 | source: hosted 261 | version: "2.1.2" 262 | path_provider_windows: 263 | dependency: transitive 264 | description: 265 | name: path_provider_windows 266 | sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 267 | url: "https://pub.dev" 268 | source: hosted 269 | version: "2.3.0" 270 | platform: 271 | dependency: transitive 272 | description: 273 | name: platform 274 | sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" 275 | url: "https://pub.dev" 276 | source: hosted 277 | version: "3.1.6" 278 | plugin_platform_interface: 279 | dependency: transitive 280 | description: 281 | name: plugin_platform_interface 282 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" 283 | url: "https://pub.dev" 284 | source: hosted 285 | version: "2.1.8" 286 | provider: 287 | dependency: "direct main" 288 | description: 289 | name: provider 290 | sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c 291 | url: "https://pub.dev" 292 | source: hosted 293 | version: "6.1.2" 294 | sky_engine: 295 | dependency: transitive 296 | description: flutter 297 | source: sdk 298 | version: "0.0.99" 299 | source_span: 300 | dependency: transitive 301 | description: 302 | name: source_span 303 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 304 | url: "https://pub.dev" 305 | source: hosted 306 | version: "1.10.0" 307 | stack_trace: 308 | dependency: transitive 309 | description: 310 | name: stack_trace 311 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" 312 | url: "https://pub.dev" 313 | source: hosted 314 | version: "1.11.1" 315 | stream_channel: 316 | dependency: transitive 317 | description: 318 | name: stream_channel 319 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 320 | url: "https://pub.dev" 321 | source: hosted 322 | version: "2.1.2" 323 | string_scanner: 324 | dependency: transitive 325 | description: 326 | name: string_scanner 327 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 328 | url: "https://pub.dev" 329 | source: hosted 330 | version: "1.2.0" 331 | term_glyph: 332 | dependency: transitive 333 | description: 334 | name: term_glyph 335 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 336 | url: "https://pub.dev" 337 | source: hosted 338 | version: "1.2.1" 339 | test_api: 340 | dependency: transitive 341 | description: 342 | name: test_api 343 | sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" 344 | url: "https://pub.dev" 345 | source: hosted 346 | version: "0.7.2" 347 | typed_data: 348 | dependency: transitive 349 | description: 350 | name: typed_data 351 | sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 352 | url: "https://pub.dev" 353 | source: hosted 354 | version: "1.4.0" 355 | vector_math: 356 | dependency: transitive 357 | description: 358 | name: vector_math 359 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 360 | url: "https://pub.dev" 361 | source: hosted 362 | version: "2.1.4" 363 | vm_service: 364 | dependency: transitive 365 | description: 366 | name: vm_service 367 | sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" 368 | url: "https://pub.dev" 369 | source: hosted 370 | version: "14.2.5" 371 | web: 372 | dependency: transitive 373 | description: 374 | name: web 375 | sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb 376 | url: "https://pub.dev" 377 | source: hosted 378 | version: "1.1.0" 379 | xdg_directories: 380 | dependency: transitive 381 | description: 382 | name: xdg_directories 383 | sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" 384 | url: "https://pub.dev" 385 | source: hosted 386 | version: "1.1.0" 387 | sdks: 388 | dart: ">=3.5.4 <4.0.0" 389 | flutter: ">=3.24.0" 390 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: home_automation01 2 | description: "A new Flutter project." 3 | # The following line prevents the package from being accidentally published to 4 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 5 | publish_to: "none" # Remove this line if you wish to publish to pub.dev 6 | 7 | # The following defines the version and build number for your application. 8 | # A version number is three numbers separated by dots, like 1.2.43 9 | # followed by an optional build number separated by a +. 10 | # Both the version and the builder number may be overridden in flutter 11 | # build by specifying --build-name and --build-number, respectively. 12 | # In Android, build-name is used as versionName while build-number used as versionCode. 13 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 14 | # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. 15 | # Read more about iOS versioning at 16 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 17 | # In Windows, build-name is used as the major, minor, and patch parts 18 | # of the product and file versions while build-number is used as the build suffix. 19 | version: 1.0.0+1 20 | 21 | environment: 22 | sdk: ^3.5.4 23 | 24 | # Dependencies specify other packages that your package needs in order to work. 25 | # To automatically upgrade your package dependencies to the latest versions 26 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 27 | # dependencies can be manually updated by changing the version numbers below to 28 | # the latest version available on pub.dev. To see which dependencies have newer 29 | # versions available, run `flutter pub outdated` 30 | dependencies: 31 | flutter: 32 | sdk: flutter 33 | 34 | # The following adds the Cupertino Icons font to your application. 35 | # Use with the CupertinoIcons class for iOS style icons. 36 | cupertino_icons: ^1.0.8 37 | http: ^1.2.2 38 | google_fonts: ^6.2.1 39 | delightful_toast: ^1.1.0 40 | google_nav_bar: ^5.0.7 41 | provider: ^6.1.2 42 | 43 | dev_dependencies: 44 | flutter_test: 45 | sdk: flutter 46 | 47 | # The "flutter_lints" package below contains a set of recommended lints to 48 | # encourage good coding practices. The lint set provided by the package is 49 | # activated in the `analysis_options.yaml` file located at the root of your 50 | # package. See that file for information about deactivating specific lint 51 | # rules and activating additional ones. 52 | flutter_lints: ^4.0.0 53 | 54 | # For information on the generic Dart part of this file, see thes 55 | # following page: https://dart.dev/tools/pub/pubspec 56 | 57 | # The following section is specific to Flutter packages. 58 | flutter: 59 | # The following line ensures that the Material Icons font is 60 | # included with your application, so that you can use the icons in 61 | # the material Icons class. 62 | uses-material-design: true 63 | 64 | # To add assets to your application, add an assets section, like this: 65 | assets: 66 | - images/ 67 | 68 | # An image asset can refer to one or more resolution-specific "variants", see 69 | # https://flutter.dev/to/resolution-aware-images 70 | 71 | # For details regarding adding assets from package dependencies, see 72 | # https://flutter.dev/to/asset-from-package 73 | 74 | # To add custom fonts to your application, add a fonts section here, 75 | # in this "flutter" section. Each entry in this list should have a 76 | # "family" key with the font family name, and a "fonts" key with a 77 | # list giving the asset and other descriptors for the font. For 78 | # example: 79 | # fonts: 80 | # - family: Schyler 81 | # fonts: 82 | # - asset: fonts/Schyler-Regular.ttf 83 | # - asset: fonts/Schyler-Italic.ttf 84 | # style: italic 85 | # - family: Trajan Pro 86 | # fonts: 87 | # - asset: fonts/TrajanPro.ttf 88 | # - asset: fonts/TrajanPro_Bold.ttf 89 | # weight: 700 90 | # 91 | # For details regarding fonts from package dependencies, 92 | # see https://flutter.dev/to/font-from-package 93 | -------------------------------------------------------------------------------- /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 in the flutter_test package. 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 | import 'package:home_automation01/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kavindualwis/Home-Automation-System-Using-Arduino-Flutter-Mobile-App/fa903758c19fb44152d90d53feb3df9e358e36e9/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | home_automation01 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "home_automation01", 3 | "short_name": "home_automation01", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | --------------------------------------------------------------------------------