├── .github ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yaml └── workflows │ └── main.yaml ├── .gitignore ├── .idea └── runConfigurations │ ├── development.xml │ ├── production.xml │ └── staging.xml ├── .metadata ├── .vscode ├── extensions.json └── launch.json ├── 1.png ├── LICENSE ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── development │ │ ├── ic_launcher-playstore.png │ │ └── res │ │ │ ├── drawable │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ └── ic_launcher_background.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── ic_launcher-playstore.png │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── verygoodcore │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ ├── ic_launch_image.xml │ │ │ ├── ic_launcher_foreground.xml │ │ │ └── launch_background.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ ├── ic_launcher_background.xml │ │ │ └── styles.xml │ │ ├── profile │ │ └── AndroidManifest.xml │ │ └── staging │ │ ├── ic_launcher-playstore.png │ │ └── res │ │ ├── drawable │ │ └── ic_launcher_foreground.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ └── ic_launcher_background.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── coverage_badge.svg ├── 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 │ │ ├── development.xcscheme │ │ ├── production.xcscheme │ │ └── staging.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon-dev.appiconset │ │ ├── 100.png │ │ ├── 1024.png │ │ ├── 114.png │ │ ├── 120.png │ │ ├── 128.png │ │ ├── 144.png │ │ ├── 152.png │ │ ├── 16.png │ │ ├── 167.png │ │ ├── 172.png │ │ ├── 180.png │ │ ├── 196.png │ │ ├── 20.png │ │ ├── 216.png │ │ ├── 256.png │ │ ├── 29.png │ │ ├── 32.png │ │ ├── 40.png │ │ ├── 48.png │ │ ├── 50.png │ │ ├── 512.png │ │ ├── 55.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 60.png │ │ ├── 64.png │ │ ├── 72.png │ │ ├── 76.png │ │ ├── 80.png │ │ ├── 87.png │ │ ├── 88.png │ │ └── Contents.json │ ├── AppIcon-stg.appiconset │ │ ├── 100.png │ │ ├── 1024.png │ │ ├── 114.png │ │ ├── 120.png │ │ ├── 128.png │ │ ├── 144.png │ │ ├── 152.png │ │ ├── 16.png │ │ ├── 167.png │ │ ├── 172.png │ │ ├── 180.png │ │ ├── 196.png │ │ ├── 20.png │ │ ├── 216.png │ │ ├── 256.png │ │ ├── 29.png │ │ ├── 32.png │ │ ├── 40.png │ │ ├── 48.png │ │ ├── 50.png │ │ ├── 512.png │ │ ├── 55.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 60.png │ │ ├── 64.png │ │ ├── 72.png │ │ ├── 76.png │ │ ├── 80.png │ │ ├── 87.png │ │ ├── 88.png │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ ├── 100.png │ │ ├── 1024.png │ │ ├── 114.png │ │ ├── 120.png │ │ ├── 128.png │ │ ├── 144.png │ │ ├── 152.png │ │ ├── 16.png │ │ ├── 167.png │ │ ├── 172.png │ │ ├── 180.png │ │ ├── 196.png │ │ ├── 20.png │ │ ├── 216.png │ │ ├── 256.png │ │ ├── 29.png │ │ ├── 32.png │ │ ├── 40.png │ │ ├── 48.png │ │ ├── 50.png │ │ ├── 512.png │ │ ├── 55.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 60.png │ │ ├── 64.png │ │ ├── 72.png │ │ ├── 76.png │ │ ├── 80.png │ │ ├── 87.png │ │ ├── 88.png │ │ └── Contents.json │ ├── Contents.json │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage@1x.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── l10n.yaml ├── lib ├── app │ ├── app.dart │ └── view │ │ └── app.dart ├── bootstrap.dart ├── clock │ ├── clock.dart │ ├── models │ │ ├── clock_tab_item.dart │ │ └── models.dart │ ├── test.dart │ ├── view │ │ └── clock_page.dart │ └── widgets │ │ ├── clock_face.dart │ │ ├── clock_tab.dart │ │ ├── horizontal_calendar.dart │ │ └── widgets.dart ├── l10n │ ├── arb │ │ ├── app_en.arb │ │ └── app_es.arb │ └── l10n.dart ├── main_development.dart ├── main_production.dart └── main_staging.dart ├── pubspec.lock ├── pubspec.yaml ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ └── favicon.png ├── index.html └── manifest.json └── windows ├── .gitignore ├── CMakeLists.txt ├── flutter ├── CMakeLists.txt ├── generated_plugin_registrant.cc ├── generated_plugin_registrant.h └── generated_plugins.cmake └── runner ├── CMakeLists.txt ├── Runner.rc ├── flutter_window.cpp ├── flutter_window.h ├── main.cpp ├── resource.h ├── resources └── app_icon.ico ├── runner.exe.manifest ├── utils.cpp ├── utils.h ├── win32_window.cpp └── win32_window.h /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | ## Description 10 | 11 | 12 | 13 | ## Type of Change 14 | 15 | 16 | 17 | - [ ] ✨ New feature (non-breaking change which adds functionality) 18 | - [ ] 🛠️ Bug fix (non-breaking change which fixes an issue) 19 | - [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change) 20 | - [ ] 🧹 Code refactor 21 | - [ ] ✅ Build configuration change 22 | - [ ] 📝 Documentation 23 | - [ ] 🗑️ Chore 24 | -------------------------------------------------------------------------------- /.github/dependabot.yaml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "github-actions" 4 | directory: "/" 5 | schedule: 6 | interval: "daily" 7 | - package-ecosystem: "pub" 8 | directory: "/" 9 | schedule: 10 | interval: "daily" 11 | -------------------------------------------------------------------------------- /.github/workflows/main.yaml: -------------------------------------------------------------------------------- 1 | name: painter_shape 2 | 3 | on: [pull_request, push] 4 | 5 | jobs: 6 | semantic-pull-request: 7 | uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 8 | 9 | build: 10 | uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 11 | with: 12 | flutter_channel: stable 13 | flutter_version: 3.3.7 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/* 18 | 19 | # Visual Studio Code related 20 | .classpath 21 | .project 22 | .settings/ 23 | .vscode/* 24 | 25 | # Flutter repo-specific 26 | /bin/cache/ 27 | /bin/mingit/ 28 | /dev/benchmarks/mega_gallery/ 29 | /dev/bots/.recipe_deps 30 | /dev/bots/android_tools/ 31 | /dev/docs/doc/ 32 | /dev/docs/flutter.docs.zip 33 | /dev/docs/lib/ 34 | /dev/docs/pubspec.yaml 35 | /dev/integration_tests/**/xcuserdata 36 | /dev/integration_tests/**/Pods 37 | /packages/flutter/coverage/ 38 | version 39 | 40 | # packages file containing multi-root paths 41 | .packages.generated 42 | 43 | # Flutter/Dart/Pub related 44 | **/doc/api/ 45 | **/ios/Flutter/.last_build_id 46 | .dart_tool/ 47 | .flutter-plugins 48 | .flutter-plugins-dependencies 49 | .packages 50 | .pub-cache/ 51 | .pub/ 52 | build/ 53 | flutter_*.png 54 | linked_*.ds 55 | unlinked.ds 56 | unlinked_spec.ds 57 | .fvm/ 58 | 59 | # Android related 60 | **/android/**/gradle-wrapper.jar 61 | **/android/.gradle 62 | **/android/captures/ 63 | **/android/gradlew 64 | **/android/gradlew.bat 65 | **/android/local.properties 66 | **/android/**/GeneratedPluginRegistrant.java 67 | **/android/key.properties 68 | **/android/.idea/ 69 | *.jks 70 | 71 | # iOS/XCode related 72 | **/ios/**/*.mode1v3 73 | **/ios/**/*.mode2v3 74 | **/ios/**/*.moved-aside 75 | **/ios/**/*.pbxuser 76 | **/ios/**/*.perspectivev3 77 | **/ios/**/*sync/ 78 | **/ios/**/.sconsign.dblite 79 | **/ios/**/.tags* 80 | **/ios/**/.vagrant/ 81 | **/ios/**/DerivedData/ 82 | **/ios/**/Icon? 83 | **/ios/**/Pods/ 84 | **/ios/**/.symlinks/ 85 | **/ios/**/profile 86 | **/ios/**/xcuserdata 87 | **/ios/.generated/ 88 | **/ios/Flutter/App.framework 89 | **/ios/Flutter/Flutter.framework 90 | **/ios/Flutter/Flutter.podspec 91 | **/ios/Flutter/Generated.xcconfig 92 | **/ios/Flutter/app.flx 93 | **/ios/Flutter/app.zip 94 | **/ios/Flutter/.last_build_id 95 | **/ios/Flutter/flutter_assets/ 96 | **/ios/Flutter/flutter_export_environment.sh 97 | **/ios/ServiceDefinitions.json 98 | **/ios/Runner/GeneratedPluginRegistrant.* 99 | 100 | # Coverage 101 | coverage/ 102 | 103 | # Submodules 104 | !pubspec.lock 105 | packages/**/pubspec.lock 106 | 107 | # Web related 108 | lib/generated_plugin_registrant.dart 109 | 110 | # Symbolication related 111 | app.*.symbols 112 | 113 | # Obfuscation related 114 | app.*.map.json 115 | 116 | # Exceptions to the above rules. 117 | !**/ios/**/default.mode1v3 118 | !**/ios/**/default.mode2v3 119 | !**/ios/**/default.pbxuser 120 | !**/ios/**/default.perspectivev3 121 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 122 | !/dev/ci/**/Gemfile.lock 123 | !.vscode/extensions.json 124 | !.vscode/launch.json 125 | !.idea/codeStyles/ 126 | !.idea/dictionaries/ 127 | !.idea/runConfigurations/ 128 | -------------------------------------------------------------------------------- /.idea/runConfigurations/development.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/runConfigurations/production.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/runConfigurations/staging.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /.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: 9b2d32b605630f28625709ebd9d78ab3016b2bf6 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "dart-code.dart-code", 6 | "dart-code.flutter", 7 | "felixangelov.bloc" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Launch development", 9 | "request": "launch", 10 | "type": "dart", 11 | "program": "lib/main_development.dart", 12 | "args": [ 13 | "--flavor", 14 | "development", 15 | "--target", 16 | "lib/main_development.dart" 17 | ] 18 | }, 19 | { 20 | "name": "Launch staging", 21 | "request": "launch", 22 | "type": "dart", 23 | "program": "lib/main_staging.dart", 24 | "args": ["--flavor", "staging", "--target", "lib/main_staging.dart"] 25 | }, 26 | { 27 | "name": "Launch production", 28 | "request": "launch", 29 | "type": "dart", 30 | "program": "lib/main_production.dart", 31 | "args": ["--flavor", "production", "--target", "lib/main_production.dart"] 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/1.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Very Good Ventures 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Clock Painter 2 | 3 | [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] 4 | [![License: MIT][license_badge]][license_link] 5 | 6 | Generated by the [Very Good CLI][very_good_cli_link] 🤖 7 | 8 | 9 | --- 10 | 11 | ## Getting Started 🚀 12 | 13 | This project contains 3 flavors: 14 | 15 | - development 16 | - staging 17 | - production 18 | 19 | To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands: 20 | 21 | ```sh 22 | # Development 23 | $ flutter run --flavor development --target lib/main_development.dart 24 | 25 | # Staging 26 | $ flutter run --flavor staging --target lib/main_staging.dart 27 | 28 | # Production 29 | $ flutter run --flavor production --target lib/main_production.dart 30 | ``` 31 | ## Screenshot 32 | 33 | 34 | [coverage_badge]: coverage_badge.svg 35 | [flutter_localizations_link]: https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html 36 | [internationalization_link]: https://flutter.dev/docs/development/accessibility-and-localization/internationalization 37 | [license_badge]: https://img.shields.io/badge/license-MIT-blue.svg 38 | [license_link]: https://opensource.org/licenses/MIT 39 | [very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg 40 | [very_good_analysis_link]: https://pub.dev/packages/very_good_analysis 41 | [very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli 42 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:very_good_analysis/analysis_options.3.1.0.yaml 2 | linter: 3 | rules: 4 | public_member_api_docs: false 5 | avoid_relative_lib_imports: false 6 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | def keystoreProperties = new Properties() 25 | def keystorePropertiesFile = rootProject.file('key.properties') 26 | if (keystorePropertiesFile.exists()) { 27 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 28 | } 29 | 30 | apply plugin: 'com.android.application' 31 | apply plugin: 'kotlin-android' 32 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 33 | 34 | android { 35 | compileSdkVersion flutter.compileSdkVersion 36 | 37 | compileOptions { 38 | sourceCompatibility JavaVersion.VERSION_1_8 39 | targetCompatibility JavaVersion.VERSION_1_8 40 | } 41 | 42 | kotlinOptions { 43 | jvmTarget = '1.8' 44 | } 45 | 46 | sourceSets { 47 | main.java.srcDirs += 'src/main/kotlin' 48 | } 49 | 50 | defaultConfig { 51 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 52 | applicationId "com.example.verygoodcore.painter_shape" 53 | minSdkVersion flutter.minSdkVersion 54 | targetSdkVersion flutter.targetSdkVersion 55 | versionCode flutterVersionCode.toInteger() 56 | versionName flutterVersionName 57 | } 58 | 59 | signingConfigs { 60 | if (System.getenv("ANDROID_KEYSTORE_PATH")) { 61 | release { 62 | storeFile file(System.getenv("ANDROID_KEYSTORE_PATH")) 63 | keyAlias System.getenv("ANDROID_KEYSTORE_ALIAS") 64 | keyPassword System.getenv("ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD") 65 | storePassword System.getenv("ANDROID_KEYSTORE_PASSWORD") 66 | } 67 | } else { 68 | release { 69 | keyAlias keystoreProperties['keyAlias'] 70 | keyPassword keystoreProperties['keyPassword'] 71 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null 72 | storePassword keystoreProperties['storePassword'] 73 | } 74 | } 75 | } 76 | 77 | flavorDimensions "default" 78 | productFlavors { 79 | production { 80 | dimension "default" 81 | applicationIdSuffix "" 82 | manifestPlaceholders = [appName: "Painter Shape"] 83 | } 84 | staging { 85 | dimension "default" 86 | applicationIdSuffix ".stg" 87 | manifestPlaceholders = [appName: "[STG] Painter Shape"] 88 | } 89 | development { 90 | dimension "default" 91 | applicationIdSuffix ".dev" 92 | manifestPlaceholders = [appName: "[DEV] Painter Shape"] 93 | } 94 | } 95 | 96 | buildTypes { 97 | release { 98 | signingConfig signingConfigs.release 99 | minifyEnabled true 100 | proguardFiles getDefaultProguardFile('proguard-android.txt') 101 | } 102 | debug { 103 | signingConfig signingConfigs.debug 104 | } 105 | } 106 | } 107 | 108 | flutter { 109 | source '../..' 110 | } 111 | 112 | dependencies { 113 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 114 | } 115 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/development/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/ic_launcher-playstore.png -------------------------------------------------------------------------------- /android/app/src/development/res/drawable/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 6 | 10 | 11 | 13 | 16 | 19 | 22 | 25 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/development/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/verygoodcore/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.verygoodcore.painter_shape 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_launch_image.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 6 | 10 | 13 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/staging/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/ic_launcher-playstore.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/staging/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /coverage_badge.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | coverage 16 | coverage 17 | 100% 18 | 100% 19 | 20 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | 11.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.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 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/development.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /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 UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/100.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/1024.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/114.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/120.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/128.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/144.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/152.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/16.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/167.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/172.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/172.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/180.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/196.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/196.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/20.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/216.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/216.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/256.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/29.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/32.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/40.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/48.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/50.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/512.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/55.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/57.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/58.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/60.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/64.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/72.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/76.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/80.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/87.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/88.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "40.png", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "60.png", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "29.png", 17 | "idiom" : "iphone", 18 | "scale" : "1x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "58.png", 23 | "idiom" : "iphone", 24 | "scale" : "2x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "87.png", 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "29x29" 32 | }, 33 | { 34 | "filename" : "80.png", 35 | "idiom" : "iphone", 36 | "scale" : "2x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "120.png", 41 | "idiom" : "iphone", 42 | "scale" : "3x", 43 | "size" : "40x40" 44 | }, 45 | { 46 | "filename" : "57.png", 47 | "idiom" : "iphone", 48 | "scale" : "1x", 49 | "size" : "57x57" 50 | }, 51 | { 52 | "filename" : "114.png", 53 | "idiom" : "iphone", 54 | "scale" : "2x", 55 | "size" : "57x57" 56 | }, 57 | { 58 | "filename" : "120.png", 59 | "idiom" : "iphone", 60 | "scale" : "2x", 61 | "size" : "60x60" 62 | }, 63 | { 64 | "filename" : "180.png", 65 | "idiom" : "iphone", 66 | "scale" : "3x", 67 | "size" : "60x60" 68 | }, 69 | { 70 | "filename" : "20.png", 71 | "idiom" : "ipad", 72 | "scale" : "1x", 73 | "size" : "20x20" 74 | }, 75 | { 76 | "filename" : "40.png", 77 | "idiom" : "ipad", 78 | "scale" : "2x", 79 | "size" : "20x20" 80 | }, 81 | { 82 | "filename" : "29.png", 83 | "idiom" : "ipad", 84 | "scale" : "1x", 85 | "size" : "29x29" 86 | }, 87 | { 88 | "filename" : "58.png", 89 | "idiom" : "ipad", 90 | "scale" : "2x", 91 | "size" : "29x29" 92 | }, 93 | { 94 | "filename" : "40.png", 95 | "idiom" : "ipad", 96 | "scale" : "1x", 97 | "size" : "40x40" 98 | }, 99 | { 100 | "filename" : "80.png", 101 | "idiom" : "ipad", 102 | "scale" : "2x", 103 | "size" : "40x40" 104 | }, 105 | { 106 | "filename" : "50.png", 107 | "idiom" : "ipad", 108 | "scale" : "1x", 109 | "size" : "50x50" 110 | }, 111 | { 112 | "filename" : "100.png", 113 | "idiom" : "ipad", 114 | "scale" : "2x", 115 | "size" : "50x50" 116 | }, 117 | { 118 | "filename" : "72.png", 119 | "idiom" : "ipad", 120 | "scale" : "1x", 121 | "size" : "72x72" 122 | }, 123 | { 124 | "filename" : "144.png", 125 | "idiom" : "ipad", 126 | "scale" : "2x", 127 | "size" : "72x72" 128 | }, 129 | { 130 | "filename" : "76.png", 131 | "idiom" : "ipad", 132 | "scale" : "1x", 133 | "size" : "76x76" 134 | }, 135 | { 136 | "filename" : "152.png", 137 | "idiom" : "ipad", 138 | "scale" : "2x", 139 | "size" : "76x76" 140 | }, 141 | { 142 | "filename" : "167.png", 143 | "idiom" : "ipad", 144 | "scale" : "2x", 145 | "size" : "83.5x83.5" 146 | }, 147 | { 148 | "filename" : "1024.png", 149 | "idiom" : "ios-marketing", 150 | "scale" : "1x", 151 | "size" : "1024x1024" 152 | }, 153 | { 154 | "filename" : "48.png", 155 | "idiom" : "watch", 156 | "role" : "notificationCenter", 157 | "scale" : "2x", 158 | "size" : "24x24", 159 | "subtype" : "38mm" 160 | }, 161 | { 162 | "filename" : "55.png", 163 | "idiom" : "watch", 164 | "role" : "notificationCenter", 165 | "scale" : "2x", 166 | "size" : "27.5x27.5", 167 | "subtype" : "42mm" 168 | }, 169 | { 170 | "filename" : "58.png", 171 | "idiom" : "watch", 172 | "role" : "companionSettings", 173 | "scale" : "2x", 174 | "size" : "29x29" 175 | }, 176 | { 177 | "filename" : "87.png", 178 | "idiom" : "watch", 179 | "role" : "companionSettings", 180 | "scale" : "3x", 181 | "size" : "29x29" 182 | }, 183 | { 184 | "idiom" : "watch", 185 | "role" : "notificationCenter", 186 | "scale" : "2x", 187 | "size" : "33x33", 188 | "subtype" : "45mm" 189 | }, 190 | { 191 | "filename" : "80.png", 192 | "idiom" : "watch", 193 | "role" : "appLauncher", 194 | "scale" : "2x", 195 | "size" : "40x40", 196 | "subtype" : "38mm" 197 | }, 198 | { 199 | "filename" : "88.png", 200 | "idiom" : "watch", 201 | "role" : "appLauncher", 202 | "scale" : "2x", 203 | "size" : "44x44", 204 | "subtype" : "40mm" 205 | }, 206 | { 207 | "idiom" : "watch", 208 | "role" : "appLauncher", 209 | "scale" : "2x", 210 | "size" : "46x46", 211 | "subtype" : "41mm" 212 | }, 213 | { 214 | "filename" : "100.png", 215 | "idiom" : "watch", 216 | "role" : "appLauncher", 217 | "scale" : "2x", 218 | "size" : "50x50", 219 | "subtype" : "44mm" 220 | }, 221 | { 222 | "idiom" : "watch", 223 | "role" : "appLauncher", 224 | "scale" : "2x", 225 | "size" : "51x51", 226 | "subtype" : "45mm" 227 | }, 228 | { 229 | "filename" : "172.png", 230 | "idiom" : "watch", 231 | "role" : "quickLook", 232 | "scale" : "2x", 233 | "size" : "86x86", 234 | "subtype" : "38mm" 235 | }, 236 | { 237 | "filename" : "196.png", 238 | "idiom" : "watch", 239 | "role" : "quickLook", 240 | "scale" : "2x", 241 | "size" : "98x98", 242 | "subtype" : "42mm" 243 | }, 244 | { 245 | "filename" : "216.png", 246 | "idiom" : "watch", 247 | "role" : "quickLook", 248 | "scale" : "2x", 249 | "size" : "108x108", 250 | "subtype" : "44mm" 251 | }, 252 | { 253 | "idiom" : "watch", 254 | "role" : "quickLook", 255 | "scale" : "2x", 256 | "size" : "117x117", 257 | "subtype" : "45mm" 258 | }, 259 | { 260 | "filename" : "1024.png", 261 | "idiom" : "watch-marketing", 262 | "scale" : "1x", 263 | "size" : "1024x1024" 264 | }, 265 | { 266 | "filename" : "16.png", 267 | "idiom" : "mac", 268 | "scale" : "1x", 269 | "size" : "16x16" 270 | }, 271 | { 272 | "filename" : "32.png", 273 | "idiom" : "mac", 274 | "scale" : "2x", 275 | "size" : "16x16" 276 | }, 277 | { 278 | "filename" : "32.png", 279 | "idiom" : "mac", 280 | "scale" : "1x", 281 | "size" : "32x32" 282 | }, 283 | { 284 | "filename" : "64.png", 285 | "idiom" : "mac", 286 | "scale" : "2x", 287 | "size" : "32x32" 288 | }, 289 | { 290 | "filename" : "128.png", 291 | "idiom" : "mac", 292 | "scale" : "1x", 293 | "size" : "128x128" 294 | }, 295 | { 296 | "filename" : "256.png", 297 | "idiom" : "mac", 298 | "scale" : "2x", 299 | "size" : "128x128" 300 | }, 301 | { 302 | "filename" : "256.png", 303 | "idiom" : "mac", 304 | "scale" : "1x", 305 | "size" : "256x256" 306 | }, 307 | { 308 | "filename" : "512.png", 309 | "idiom" : "mac", 310 | "scale" : "2x", 311 | "size" : "256x256" 312 | }, 313 | { 314 | "filename" : "512.png", 315 | "idiom" : "mac", 316 | "scale" : "1x", 317 | "size" : "512x512" 318 | }, 319 | { 320 | "filename" : "1024.png", 321 | "idiom" : "mac", 322 | "scale" : "2x", 323 | "size" : "512x512" 324 | } 325 | ], 326 | "info" : { 327 | "author" : "xcode", 328 | "version" : 1 329 | } 330 | } 331 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/100.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/1024.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/114.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/120.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/128.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/144.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/152.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/16.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/167.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/172.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/172.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/180.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/196.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/196.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/20.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/216.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/216.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/256.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/29.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/32.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/40.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/48.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/50.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/512.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/55.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/57.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/58.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/60.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/64.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/72.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/76.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/80.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/87.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/88.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "40.png", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "60.png", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "29.png", 17 | "idiom" : "iphone", 18 | "scale" : "1x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "58.png", 23 | "idiom" : "iphone", 24 | "scale" : "2x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "87.png", 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "29x29" 32 | }, 33 | { 34 | "filename" : "80.png", 35 | "idiom" : "iphone", 36 | "scale" : "2x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "120.png", 41 | "idiom" : "iphone", 42 | "scale" : "3x", 43 | "size" : "40x40" 44 | }, 45 | { 46 | "filename" : "57.png", 47 | "idiom" : "iphone", 48 | "scale" : "1x", 49 | "size" : "57x57" 50 | }, 51 | { 52 | "filename" : "114.png", 53 | "idiom" : "iphone", 54 | "scale" : "2x", 55 | "size" : "57x57" 56 | }, 57 | { 58 | "filename" : "120.png", 59 | "idiom" : "iphone", 60 | "scale" : "2x", 61 | "size" : "60x60" 62 | }, 63 | { 64 | "filename" : "180.png", 65 | "idiom" : "iphone", 66 | "scale" : "3x", 67 | "size" : "60x60" 68 | }, 69 | { 70 | "filename" : "20.png", 71 | "idiom" : "ipad", 72 | "scale" : "1x", 73 | "size" : "20x20" 74 | }, 75 | { 76 | "filename" : "40.png", 77 | "idiom" : "ipad", 78 | "scale" : "2x", 79 | "size" : "20x20" 80 | }, 81 | { 82 | "filename" : "29.png", 83 | "idiom" : "ipad", 84 | "scale" : "1x", 85 | "size" : "29x29" 86 | }, 87 | { 88 | "filename" : "58.png", 89 | "idiom" : "ipad", 90 | "scale" : "2x", 91 | "size" : "29x29" 92 | }, 93 | { 94 | "filename" : "40.png", 95 | "idiom" : "ipad", 96 | "scale" : "1x", 97 | "size" : "40x40" 98 | }, 99 | { 100 | "filename" : "80.png", 101 | "idiom" : "ipad", 102 | "scale" : "2x", 103 | "size" : "40x40" 104 | }, 105 | { 106 | "filename" : "50.png", 107 | "idiom" : "ipad", 108 | "scale" : "1x", 109 | "size" : "50x50" 110 | }, 111 | { 112 | "filename" : "100.png", 113 | "idiom" : "ipad", 114 | "scale" : "2x", 115 | "size" : "50x50" 116 | }, 117 | { 118 | "filename" : "72.png", 119 | "idiom" : "ipad", 120 | "scale" : "1x", 121 | "size" : "72x72" 122 | }, 123 | { 124 | "filename" : "144.png", 125 | "idiom" : "ipad", 126 | "scale" : "2x", 127 | "size" : "72x72" 128 | }, 129 | { 130 | "filename" : "76.png", 131 | "idiom" : "ipad", 132 | "scale" : "1x", 133 | "size" : "76x76" 134 | }, 135 | { 136 | "filename" : "152.png", 137 | "idiom" : "ipad", 138 | "scale" : "2x", 139 | "size" : "76x76" 140 | }, 141 | { 142 | "filename" : "167.png", 143 | "idiom" : "ipad", 144 | "scale" : "2x", 145 | "size" : "83.5x83.5" 146 | }, 147 | { 148 | "filename" : "1024.png", 149 | "idiom" : "ios-marketing", 150 | "scale" : "1x", 151 | "size" : "1024x1024" 152 | }, 153 | { 154 | "filename" : "48.png", 155 | "idiom" : "watch", 156 | "role" : "notificationCenter", 157 | "scale" : "2x", 158 | "size" : "24x24", 159 | "subtype" : "38mm" 160 | }, 161 | { 162 | "filename" : "55.png", 163 | "idiom" : "watch", 164 | "role" : "notificationCenter", 165 | "scale" : "2x", 166 | "size" : "27.5x27.5", 167 | "subtype" : "42mm" 168 | }, 169 | { 170 | "filename" : "58.png", 171 | "idiom" : "watch", 172 | "role" : "companionSettings", 173 | "scale" : "2x", 174 | "size" : "29x29" 175 | }, 176 | { 177 | "filename" : "87.png", 178 | "idiom" : "watch", 179 | "role" : "companionSettings", 180 | "scale" : "3x", 181 | "size" : "29x29" 182 | }, 183 | { 184 | "idiom" : "watch", 185 | "role" : "notificationCenter", 186 | "scale" : "2x", 187 | "size" : "33x33", 188 | "subtype" : "45mm" 189 | }, 190 | { 191 | "filename" : "80.png", 192 | "idiom" : "watch", 193 | "role" : "appLauncher", 194 | "scale" : "2x", 195 | "size" : "40x40", 196 | "subtype" : "38mm" 197 | }, 198 | { 199 | "filename" : "88.png", 200 | "idiom" : "watch", 201 | "role" : "appLauncher", 202 | "scale" : "2x", 203 | "size" : "44x44", 204 | "subtype" : "40mm" 205 | }, 206 | { 207 | "idiom" : "watch", 208 | "role" : "appLauncher", 209 | "scale" : "2x", 210 | "size" : "46x46", 211 | "subtype" : "41mm" 212 | }, 213 | { 214 | "filename" : "100.png", 215 | "idiom" : "watch", 216 | "role" : "appLauncher", 217 | "scale" : "2x", 218 | "size" : "50x50", 219 | "subtype" : "44mm" 220 | }, 221 | { 222 | "idiom" : "watch", 223 | "role" : "appLauncher", 224 | "scale" : "2x", 225 | "size" : "51x51", 226 | "subtype" : "45mm" 227 | }, 228 | { 229 | "filename" : "172.png", 230 | "idiom" : "watch", 231 | "role" : "quickLook", 232 | "scale" : "2x", 233 | "size" : "86x86", 234 | "subtype" : "38mm" 235 | }, 236 | { 237 | "filename" : "196.png", 238 | "idiom" : "watch", 239 | "role" : "quickLook", 240 | "scale" : "2x", 241 | "size" : "98x98", 242 | "subtype" : "42mm" 243 | }, 244 | { 245 | "filename" : "216.png", 246 | "idiom" : "watch", 247 | "role" : "quickLook", 248 | "scale" : "2x", 249 | "size" : "108x108", 250 | "subtype" : "44mm" 251 | }, 252 | { 253 | "idiom" : "watch", 254 | "role" : "quickLook", 255 | "scale" : "2x", 256 | "size" : "117x117", 257 | "subtype" : "45mm" 258 | }, 259 | { 260 | "filename" : "1024.png", 261 | "idiom" : "watch-marketing", 262 | "scale" : "1x", 263 | "size" : "1024x1024" 264 | }, 265 | { 266 | "filename" : "16.png", 267 | "idiom" : "mac", 268 | "scale" : "1x", 269 | "size" : "16x16" 270 | }, 271 | { 272 | "filename" : "32.png", 273 | "idiom" : "mac", 274 | "scale" : "2x", 275 | "size" : "16x16" 276 | }, 277 | { 278 | "filename" : "32.png", 279 | "idiom" : "mac", 280 | "scale" : "1x", 281 | "size" : "32x32" 282 | }, 283 | { 284 | "filename" : "64.png", 285 | "idiom" : "mac", 286 | "scale" : "2x", 287 | "size" : "32x32" 288 | }, 289 | { 290 | "filename" : "128.png", 291 | "idiom" : "mac", 292 | "scale" : "1x", 293 | "size" : "128x128" 294 | }, 295 | { 296 | "filename" : "256.png", 297 | "idiom" : "mac", 298 | "scale" : "2x", 299 | "size" : "128x128" 300 | }, 301 | { 302 | "filename" : "256.png", 303 | "idiom" : "mac", 304 | "scale" : "1x", 305 | "size" : "256x256" 306 | }, 307 | { 308 | "filename" : "512.png", 309 | "idiom" : "mac", 310 | "scale" : "2x", 311 | "size" : "256x256" 312 | }, 313 | { 314 | "filename" : "512.png", 315 | "idiom" : "mac", 316 | "scale" : "1x", 317 | "size" : "512x512" 318 | }, 319 | { 320 | "filename" : "1024.png", 321 | "idiom" : "mac", 322 | "scale" : "2x", 323 | "size" : "512x512" 324 | } 325 | ], 326 | "info" : { 327 | "author" : "xcode", 328 | "version" : 1 329 | } 330 | } 331 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/172.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/172.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/196.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/196.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/216.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/216.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/48.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/55.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/AppIcon.appiconset/88.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "40.png", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "60.png", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "29.png", 17 | "idiom" : "iphone", 18 | "scale" : "1x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "58.png", 23 | "idiom" : "iphone", 24 | "scale" : "2x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "87.png", 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "29x29" 32 | }, 33 | { 34 | "filename" : "80.png", 35 | "idiom" : "iphone", 36 | "scale" : "2x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "120.png", 41 | "idiom" : "iphone", 42 | "scale" : "3x", 43 | "size" : "40x40" 44 | }, 45 | { 46 | "filename" : "57.png", 47 | "idiom" : "iphone", 48 | "scale" : "1x", 49 | "size" : "57x57" 50 | }, 51 | { 52 | "filename" : "114.png", 53 | "idiom" : "iphone", 54 | "scale" : "2x", 55 | "size" : "57x57" 56 | }, 57 | { 58 | "filename" : "120.png", 59 | "idiom" : "iphone", 60 | "scale" : "2x", 61 | "size" : "60x60" 62 | }, 63 | { 64 | "filename" : "180.png", 65 | "idiom" : "iphone", 66 | "scale" : "3x", 67 | "size" : "60x60" 68 | }, 69 | { 70 | "filename" : "20.png", 71 | "idiom" : "ipad", 72 | "scale" : "1x", 73 | "size" : "20x20" 74 | }, 75 | { 76 | "filename" : "40.png", 77 | "idiom" : "ipad", 78 | "scale" : "2x", 79 | "size" : "20x20" 80 | }, 81 | { 82 | "filename" : "29.png", 83 | "idiom" : "ipad", 84 | "scale" : "1x", 85 | "size" : "29x29" 86 | }, 87 | { 88 | "filename" : "58.png", 89 | "idiom" : "ipad", 90 | "scale" : "2x", 91 | "size" : "29x29" 92 | }, 93 | { 94 | "filename" : "40.png", 95 | "idiom" : "ipad", 96 | "scale" : "1x", 97 | "size" : "40x40" 98 | }, 99 | { 100 | "filename" : "80.png", 101 | "idiom" : "ipad", 102 | "scale" : "2x", 103 | "size" : "40x40" 104 | }, 105 | { 106 | "filename" : "50.png", 107 | "idiom" : "ipad", 108 | "scale" : "1x", 109 | "size" : "50x50" 110 | }, 111 | { 112 | "filename" : "100.png", 113 | "idiom" : "ipad", 114 | "scale" : "2x", 115 | "size" : "50x50" 116 | }, 117 | { 118 | "filename" : "72.png", 119 | "idiom" : "ipad", 120 | "scale" : "1x", 121 | "size" : "72x72" 122 | }, 123 | { 124 | "filename" : "144.png", 125 | "idiom" : "ipad", 126 | "scale" : "2x", 127 | "size" : "72x72" 128 | }, 129 | { 130 | "filename" : "76.png", 131 | "idiom" : "ipad", 132 | "scale" : "1x", 133 | "size" : "76x76" 134 | }, 135 | { 136 | "filename" : "152.png", 137 | "idiom" : "ipad", 138 | "scale" : "2x", 139 | "size" : "76x76" 140 | }, 141 | { 142 | "filename" : "167.png", 143 | "idiom" : "ipad", 144 | "scale" : "2x", 145 | "size" : "83.5x83.5" 146 | }, 147 | { 148 | "filename" : "1024.png", 149 | "idiom" : "ios-marketing", 150 | "scale" : "1x", 151 | "size" : "1024x1024" 152 | }, 153 | { 154 | "filename" : "48.png", 155 | "idiom" : "watch", 156 | "role" : "notificationCenter", 157 | "scale" : "2x", 158 | "size" : "24x24", 159 | "subtype" : "38mm" 160 | }, 161 | { 162 | "filename" : "55.png", 163 | "idiom" : "watch", 164 | "role" : "notificationCenter", 165 | "scale" : "2x", 166 | "size" : "27.5x27.5", 167 | "subtype" : "42mm" 168 | }, 169 | { 170 | "filename" : "58.png", 171 | "idiom" : "watch", 172 | "role" : "companionSettings", 173 | "scale" : "2x", 174 | "size" : "29x29" 175 | }, 176 | { 177 | "filename" : "87.png", 178 | "idiom" : "watch", 179 | "role" : "companionSettings", 180 | "scale" : "3x", 181 | "size" : "29x29" 182 | }, 183 | { 184 | "idiom" : "watch", 185 | "role" : "notificationCenter", 186 | "scale" : "2x", 187 | "size" : "33x33", 188 | "subtype" : "45mm" 189 | }, 190 | { 191 | "filename" : "80.png", 192 | "idiom" : "watch", 193 | "role" : "appLauncher", 194 | "scale" : "2x", 195 | "size" : "40x40", 196 | "subtype" : "38mm" 197 | }, 198 | { 199 | "filename" : "88.png", 200 | "idiom" : "watch", 201 | "role" : "appLauncher", 202 | "scale" : "2x", 203 | "size" : "44x44", 204 | "subtype" : "40mm" 205 | }, 206 | { 207 | "idiom" : "watch", 208 | "role" : "appLauncher", 209 | "scale" : "2x", 210 | "size" : "46x46", 211 | "subtype" : "41mm" 212 | }, 213 | { 214 | "filename" : "100.png", 215 | "idiom" : "watch", 216 | "role" : "appLauncher", 217 | "scale" : "2x", 218 | "size" : "50x50", 219 | "subtype" : "44mm" 220 | }, 221 | { 222 | "idiom" : "watch", 223 | "role" : "appLauncher", 224 | "scale" : "2x", 225 | "size" : "51x51", 226 | "subtype" : "45mm" 227 | }, 228 | { 229 | "filename" : "172.png", 230 | "idiom" : "watch", 231 | "role" : "quickLook", 232 | "scale" : "2x", 233 | "size" : "86x86", 234 | "subtype" : "38mm" 235 | }, 236 | { 237 | "filename" : "196.png", 238 | "idiom" : "watch", 239 | "role" : "quickLook", 240 | "scale" : "2x", 241 | "size" : "98x98", 242 | "subtype" : "42mm" 243 | }, 244 | { 245 | "filename" : "216.png", 246 | "idiom" : "watch", 247 | "role" : "quickLook", 248 | "scale" : "2x", 249 | "size" : "108x108", 250 | "subtype" : "44mm" 251 | }, 252 | { 253 | "idiom" : "watch", 254 | "role" : "quickLook", 255 | "scale" : "2x", 256 | "size" : "117x117", 257 | "subtype" : "45mm" 258 | }, 259 | { 260 | "filename" : "1024.png", 261 | "idiom" : "watch-marketing", 262 | "scale" : "1x", 263 | "size" : "1024x1024" 264 | }, 265 | { 266 | "filename" : "16.png", 267 | "idiom" : "mac", 268 | "scale" : "1x", 269 | "size" : "16x16" 270 | }, 271 | { 272 | "filename" : "32.png", 273 | "idiom" : "mac", 274 | "scale" : "2x", 275 | "size" : "16x16" 276 | }, 277 | { 278 | "filename" : "32.png", 279 | "idiom" : "mac", 280 | "scale" : "1x", 281 | "size" : "32x32" 282 | }, 283 | { 284 | "filename" : "64.png", 285 | "idiom" : "mac", 286 | "scale" : "2x", 287 | "size" : "32x32" 288 | }, 289 | { 290 | "filename" : "128.png", 291 | "idiom" : "mac", 292 | "scale" : "1x", 293 | "size" : "128x128" 294 | }, 295 | { 296 | "filename" : "256.png", 297 | "idiom" : "mac", 298 | "scale" : "2x", 299 | "size" : "128x128" 300 | }, 301 | { 302 | "filename" : "256.png", 303 | "idiom" : "mac", 304 | "scale" : "1x", 305 | "size" : "256x256" 306 | }, 307 | { 308 | "filename" : "512.png", 309 | "idiom" : "mac", 310 | "scale" : "2x", 311 | "size" : "256x256" 312 | }, 313 | { 314 | "filename" : "512.png", 315 | "idiom" : "mac", 316 | "scale" : "1x", 317 | "size" : "512x512" 318 | }, 319 | { 320 | "filename" : "1024.png", 321 | "idiom" : "mac", 322 | "scale" : "2x", 323 | "size" : "512x512" 324 | } 325 | ], 326 | "info" : { 327 | "author" : "xcode", 328 | "version" : 1 329 | } 330 | } 331 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "LaunchImage@1x.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "LaunchImage@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "LaunchImage@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/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 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /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 | CFBundleLocalizations 6 | 7 | en 8 | es 9 | 10 | CFBundleDevelopmentRegion 11 | $(DEVELOPMENT_LANGUAGE) 12 | CFBundleDisplayName 13 | $(FLAVOR_APP_NAME) 14 | CFBundleExecutable 15 | $(EXECUTABLE_NAME) 16 | CFBundleIdentifier 17 | $(PRODUCT_BUNDLE_IDENTIFIER) 18 | CFBundleInfoDictionaryVersion 19 | 6.0 20 | CFBundleName 21 | Painter Shape 22 | CFBundlePackageType 23 | APPL 24 | CFBundleShortVersionString 25 | $(FLUTTER_BUILD_NAME) 26 | CFBundleSignature 27 | ???? 28 | CFBundleVersion 29 | $(FLUTTER_BUILD_NUMBER) 30 | LSRequiresIPhoneOS 31 | 32 | UILaunchStoryboardName 33 | LaunchScreen 34 | UIMainStoryboardFile 35 | Main 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | UIViewControllerBasedStatusBarAppearance 50 | 51 | CADisableMinimumFrameDurationOnPhone 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /l10n.yaml: -------------------------------------------------------------------------------- 1 | arb-dir: lib/l10n/arb 2 | template-arb-file: app_en.arb 3 | output-localization-file: app_localizations.dart 4 | nullable-getter: false 5 | -------------------------------------------------------------------------------- /lib/app/app.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022, Very Good Ventures 2 | // https://verygood.ventures 3 | // 4 | // Use of this source code is governed by an MIT-style 5 | // license that can be found in the LICENSE file or at 6 | // https://opensource.org/licenses/MIT. 7 | 8 | export 'view/app.dart'; 9 | -------------------------------------------------------------------------------- /lib/app/view/app.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022, Very Good Ventures 2 | // https://verygood.ventures 3 | // 4 | // Use of this source code is governed by an MIT-style 5 | // license that can be found in the LICENSE file or at 6 | // https://opensource.org/licenses/MIT. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:painter_shape/l10n/l10n.dart'; 10 | 11 | import '../../clock/clock.dart'; 12 | 13 | class App extends StatelessWidget { 14 | const App({super.key}); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return MaterialApp( 19 | theme: ThemeData( 20 | appBarTheme: const AppBarTheme(color: Color(0xFF13B9FF)), 21 | colorScheme: ColorScheme.fromSwatch( 22 | accentColor: const Color(0xFF13B9FF), 23 | ), 24 | ), 25 | localizationsDelegates: AppLocalizations.localizationsDelegates, 26 | supportedLocales: AppLocalizations.supportedLocales, 27 | home: const ClockPage(), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/bootstrap.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022, Very Good Ventures 2 | // https://verygood.ventures 3 | // 4 | // Use of this source code is governed by an MIT-style 5 | // license that can be found in the LICENSE file or at 6 | // https://opensource.org/licenses/MIT. 7 | 8 | import 'dart:async'; 9 | import 'dart:developer'; 10 | 11 | import 'package:bloc/bloc.dart'; 12 | import 'package:flutter/widgets.dart'; 13 | 14 | class AppBlocObserver extends BlocObserver { 15 | @override 16 | void onChange(BlocBase bloc, Change change) { 17 | super.onChange(bloc, change); 18 | log('onChange(${bloc.runtimeType}, $change)'); 19 | } 20 | 21 | @override 22 | void onError(BlocBase bloc, Object error, StackTrace stackTrace) { 23 | log('onError(${bloc.runtimeType}, $error, $stackTrace)'); 24 | super.onError(bloc, error, stackTrace); 25 | } 26 | } 27 | 28 | Future bootstrap(FutureOr Function() builder) async { 29 | FlutterError.onError = (details) { 30 | log(details.exceptionAsString(), stackTrace: details.stack); 31 | }; 32 | 33 | Bloc.observer = AppBlocObserver(); 34 | 35 | await runZonedGuarded( 36 | () async => runApp(await builder()), 37 | (error, stackTrace) => log(error.toString(), stackTrace: stackTrace), 38 | ); 39 | } 40 | -------------------------------------------------------------------------------- /lib/clock/clock.dart: -------------------------------------------------------------------------------- 1 | export 'models/models.dart'; 2 | export 'view/clock_page.dart'; 3 | export 'widgets/widgets.dart'; 4 | -------------------------------------------------------------------------------- /lib/clock/models/clock_tab_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:line_icons/line_icons.dart'; 3 | 4 | class ClockTabItem { 5 | const ClockTabItem({required this.icon}); 6 | final IconData icon; 7 | } 8 | 9 | final clockTabs = ValueNotifier>(const [ 10 | ClockTabItem( 11 | icon: Icons.alarm, 12 | ), 13 | ClockTabItem( 14 | icon: LineIcons.clock, 15 | ), 16 | ClockTabItem( 17 | icon: LineIcons.bed, 18 | ), 19 | ClockTabItem( 20 | icon: LineIcons.stopwatch, 21 | ), 22 | ClockTabItem( 23 | icon: Icons.sync, 24 | ) 25 | ]); 26 | -------------------------------------------------------------------------------- /lib/clock/models/models.dart: -------------------------------------------------------------------------------- 1 | export 'clock_tab_item.dart'; 2 | -------------------------------------------------------------------------------- /lib/clock/test.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: cascade_invocations 2 | 3 | import 'dart:math' as math; 4 | 5 | import 'package:flutter/material.dart'; 6 | import 'package:line_icons/line_icons.dart'; 7 | 8 | class ClockFace extends StatefulWidget { 9 | const ClockFace({ 10 | super.key, 11 | }); 12 | 13 | @override 14 | State createState() => _ClockFaceState(); 15 | } 16 | 17 | class _ClockFaceState extends State 18 | with SingleTickerProviderStateMixin { 19 | final location = ValueNotifier(Offset.zero); 20 | final progressRadian = ValueNotifier(5); 21 | Offset previousOffset = Offset.zero; 22 | 23 | late AnimationController animationController; 24 | 25 | @override 26 | void initState() { 27 | super.initState(); 28 | 29 | animationController = AnimationController( 30 | vsync: this, 31 | duration: const Duration(milliseconds: 500), 32 | )..forward(); 33 | } 34 | 35 | @override 36 | void dispose() { 37 | super.dispose(); 38 | 39 | animationController.dispose(); 40 | } 41 | 42 | @override 43 | Widget build(BuildContext context) { 44 | return Expanded( 45 | child: Listener( 46 | onPointerDown: (event) {}, 47 | onPointerUp: (event) {}, 48 | onPointerMove: (PointerMoveEvent event) { 49 | if (progressRadian.value < 360) { 50 | if (previousOffset.dx < event.position.dx || 51 | previousOffset.dy < event.position.dy) { 52 | progressRadian.value += 1; 53 | } else { 54 | if (progressRadian.value < 1) return; 55 | progressRadian.value -= 1; 56 | } 57 | } 58 | 59 | setState(() { 60 | previousOffset = event.position; 61 | }); 62 | }, 63 | child: ValueListenableBuilder( 64 | valueListenable: progressRadian, 65 | builder: (context, value, child) { 66 | return CustomPaint( 67 | painter: ClockFacePainter( 68 | animation: animationController, 69 | startDegree: value, 70 | ), 71 | size: MediaQuery.of(context).size, 72 | ); 73 | }, 74 | ), 75 | ), 76 | ); 77 | } 78 | } 79 | 80 | class ClockFacePainter extends CustomPainter { 81 | ClockFacePainter({ 82 | required this.animation, 83 | required this.startDegree, 84 | }) : super(repaint: animation) { 85 | angleAnimation = Tween(begin: 10, end: 20).animate( 86 | CurvedAnimation(parent: animation, curve: Curves.easeInOut), 87 | ); 88 | 89 | radianAnimation = Tween(begin: 10, end: startDegree).animate( 90 | CurvedAnimation(parent: animation, curve: Curves.easeInOut), 91 | ); 92 | } 93 | 94 | late Animation angleAnimation; 95 | late Animation radianAnimation; 96 | 97 | final double startDegree; 98 | 99 | final AnimationController animation; 100 | @override 101 | void paint(Canvas canvas, Size size) { 102 | final circlePaint = Paint() 103 | ..style = PaintingStyle.stroke 104 | ..color = const Color(0xFF171C26) 105 | ..strokeWidth = 50; 106 | 107 | final arcPaint = Paint() 108 | ..style = PaintingStyle.stroke 109 | ..color = const Color(0xFF00D9F6) 110 | ..strokeCap = StrokeCap.round 111 | ..strokeWidth = 50; 112 | 113 | final tickPaint = Paint() 114 | ..style = PaintingStyle.stroke 115 | ..color = Colors.white 116 | ..strokeWidth = 2; 117 | 118 | final tickPaint2 = Paint() 119 | ..style = PaintingStyle.stroke 120 | ..color = Colors.white12 121 | ..strokeWidth = 1; 122 | 123 | final center = size / 2; 124 | 125 | canvas.drawCircle( 126 | Offset(center.width, center.height), 127 | center.width - 40, 128 | circlePaint, 129 | ); 130 | 131 | final arcRect = Rect.fromCircle( 132 | center: Offset(center.width, center.height), 133 | radius: center.width - 40, 134 | ); 135 | canvas.drawArc( 136 | arcRect, 137 | -90.radians, 138 | (radianAnimation.value * 30).radians, 139 | false, 140 | arcPaint, 141 | ); 142 | 143 | for (var i = 0; i < 360; i += 6) { 144 | final x1 = center.width + (center.height - 115) * math.cos(i.radians); 145 | final y1 = center.height + (center.width - 70) * math.sin(i.radians); 146 | 147 | final x2 = center.width + (center.width - 90) * math.cos(i.radians); 148 | final y2 = center.height + (center.width - 80) * math.sin(i.radians); 149 | 150 | if ((i % 90) == 0) { 151 | final textPainter = TextPainter( 152 | text: TextSpan( 153 | text: ((i + 90) ~/ 30).toString(), 154 | style: const TextStyle( 155 | color: Colors.white, 156 | fontSize: 16, 157 | fontWeight: FontWeight.w700, 158 | fontFamily: 'Arial', 159 | ), 160 | ), 161 | textDirection: TextDirection.ltr, 162 | ); 163 | textPainter.layout(); 164 | 165 | textPainter.paint( 166 | canvas, 167 | Offset( 168 | center.width + 72 * math.cos(i.radians), 169 | center.height + 72 * math.sin(i.radians), 170 | ), 171 | ); 172 | } 173 | 174 | if ((i % 30) == 0) { 175 | canvas.drawLine(Offset(x1, y1), Offset(x2, y2), tickPaint); 176 | } else { 177 | canvas.drawLine(Offset(x1, y1), Offset(x2, y2), tickPaint2); 178 | } 179 | } 180 | 181 | final textPainter = TextPainter( 182 | text: TextSpan( 183 | text: (radianAnimation.value.toInt()).toString().formatText, 184 | style: const TextStyle( 185 | color: Colors.white, 186 | fontSize: 70, 187 | fontWeight: FontWeight.w700, 188 | fontFamily: 'Arial', 189 | ), 190 | ), 191 | textDirection: TextDirection.ltr, 192 | ); 193 | textPainter.layout(); 194 | 195 | textPainter.paint( 196 | canvas, 197 | Offset(center.width - 30, center.height - 40), 198 | ); 199 | 200 | final notificationPaint = Paint() 201 | ..color = const Color(0xFF0E121B) 202 | ..style = PaintingStyle.fill; 203 | //math.cos((radianAnimation.value * 30).radians).abs() 204 | canvas.drawCircle( 205 | Offset( 206 | center.width - 20 + 20, 207 | center.height - 160 + 22, 208 | ), 209 | 20, 210 | notificationPaint, 211 | ); 212 | final iconPainter = TextPainter( 213 | text: TextSpan( 214 | text: String.fromCharCode(LineIcons.powerOff.codePoint), 215 | style: TextStyle( 216 | color: const Color(0xFF00D9F6), 217 | fontSize: 30, 218 | fontFamily: LineIcons.powerOff.fontFamily, 219 | package: LineIcons.powerOff.fontPackage, 220 | ), 221 | ), 222 | textDirection: TextDirection.rtl, 223 | ); 224 | iconPainter.layout(); 225 | 226 | iconPainter.paint( 227 | canvas, 228 | Offset( 229 | center.width - 15, 230 | center.height - 154, 231 | ), 232 | ); 233 | 234 | final bottomPaint = Paint() 235 | ..color = const Color(0xFF0E121B) 236 | ..style = PaintingStyle.fill; 237 | //math.cos((radianAnimation.value * 30).radians).abs() 238 | canvas.drawCircle( 239 | Offset( 240 | center.width + 60 + 10, 241 | center.height + 105 + 12, 242 | ), 243 | 20, 244 | bottomPaint, 245 | ); 246 | 247 | final bottomIconPainter = TextPainter( 248 | text: TextSpan( 249 | text: String.fromCharCode(LineIcons.bell.codePoint), 250 | style: TextStyle( 251 | color: const Color(0xFF00D9F6), 252 | fontSize: 30, 253 | fontFamily: LineIcons.bell.fontFamily, 254 | package: LineIcons.bell.fontPackage, 255 | ), 256 | ), 257 | textDirection: TextDirection.rtl, 258 | ); 259 | bottomIconPainter.layout(); 260 | 261 | bottomIconPainter.paint( 262 | canvas, 263 | Offset(center.width + 55, center.height + 100), 264 | ); 265 | } 266 | 267 | @override 268 | bool shouldRepaint(ClockFacePainter oldDelegate) => 269 | oldDelegate.startDegree != startDegree; 270 | 271 | @override 272 | bool shouldRebuildSemantics(ClockFacePainter oldDelegate) => false; 273 | } 274 | 275 | extension NumX on T { 276 | double get radians => (this * math.pi) / 180.0; 277 | } 278 | 279 | extension StringX on String { 280 | String get formatText => length < 2 ? '0$this' : this; 281 | } 282 | 283 | Offset toPolar(Offset center, double radians, double radius) { 284 | return center + 285 | Offset(radius * math.cos(radians), radius * math.sin(radians)); 286 | } 287 | -------------------------------------------------------------------------------- /lib/clock/view/clock_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:line_icons/line_icons.dart'; 3 | 4 | import '../../clock/clock.dart'; 5 | 6 | class ClockPage extends StatelessWidget { 7 | const ClockPage({super.key}); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Scaffold( 12 | backgroundColor: const Color(0xFF10121A), 13 | body: SafeArea( 14 | child: Padding( 15 | padding: const EdgeInsets.symmetric(horizontal: 20), 16 | child: Column( 17 | crossAxisAlignment: CrossAxisAlignment.start, 18 | children: [ 19 | const ClockTab(), 20 | const SizedBox( 21 | height: 20, 22 | ), 23 | _buildBedTimeTile(), 24 | const SizedBox(height: 10), 25 | const Divider( 26 | color: Colors.white24, 27 | ), 28 | const SizedBox(height: 50), 29 | const HorizontalCalendar(), 30 | const ClockFace(), 31 | _buildBottomTile(), 32 | ], 33 | ), 34 | ), 35 | ), 36 | ); 37 | } 38 | 39 | Widget _buildBedTimeTile() { 40 | return Row( 41 | children: [ 42 | const Expanded( 43 | child: Text( 44 | 'Bedtime Schedule', 45 | style: TextStyle( 46 | color: Colors.white, 47 | // fontSize: 40, 48 | ), 49 | ), 50 | ), 51 | Switch.adaptive( 52 | value: false, 53 | onChanged: (value) {}, 54 | ), 55 | ], 56 | ); 57 | } 58 | 59 | Widget _buildBottomTile() { 60 | return Row( 61 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 62 | children: [ 63 | Column( 64 | children: const [ 65 | Text( 66 | '00:00', 67 | style: TextStyle( 68 | color: Colors.white, 69 | fontSize: 40, 70 | ), 71 | ), 72 | SizedBox(height: 10), 73 | Text( 74 | 'Bedtime', 75 | style: TextStyle( 76 | color: Color(0xFF1BD3F4), 77 | // fontSize: 40, 78 | ), 79 | ), 80 | SizedBox(height: 5), 81 | Icon( 82 | LineIcons.powerOff, 83 | color: Color(0xFF1BD3F4), 84 | size: 40, 85 | ) 86 | ], 87 | ), 88 | Column( 89 | children: const [ 90 | Text( 91 | '00:00', 92 | style: TextStyle( 93 | color: Colors.white, 94 | fontSize: 40, 95 | ), 96 | ), 97 | SizedBox(height: 10), 98 | Text( 99 | 'Wake Up', 100 | style: TextStyle( 101 | color: Color(0xFF1BD3F4), 102 | // fontSize: 40, 103 | ), 104 | ), 105 | SizedBox(height: 5), 106 | Icon( 107 | LineIcons.bell, 108 | color: Color(0xFF1BD3F4), 109 | size: 40, 110 | ), 111 | ], 112 | ), 113 | ], 114 | ); 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /lib/clock/widgets/clock_face.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: cascade_invocations 2 | 3 | import 'dart:math' as math; 4 | 5 | import 'package:flutter/material.dart'; 6 | import 'package:line_icons/line_icons.dart'; 7 | 8 | class ClockFace extends StatefulWidget { 9 | const ClockFace({ 10 | super.key, 11 | }); 12 | 13 | @override 14 | State createState() => _ClockFaceState(); 15 | } 16 | 17 | class _ClockFaceState extends State 18 | with SingleTickerProviderStateMixin { 19 | final location = ValueNotifier(Offset.zero); 20 | final progressRadian = ValueNotifier(5); 21 | Offset previousOffset = Offset.zero; 22 | 23 | late AnimationController animationController; 24 | 25 | @override 26 | void initState() { 27 | super.initState(); 28 | 29 | animationController = AnimationController( 30 | vsync: this, 31 | duration: const Duration(milliseconds: 500), 32 | )..forward(); 33 | } 34 | 35 | @override 36 | void dispose() { 37 | super.dispose(); 38 | 39 | animationController.dispose(); 40 | } 41 | 42 | @override 43 | Widget build(BuildContext context) { 44 | return Expanded( 45 | child: Listener( 46 | onPointerDown: (event) {}, 47 | onPointerUp: (event) {}, 48 | onPointerMove: (PointerMoveEvent event) { 49 | if (progressRadian.value < 360) { 50 | if (previousOffset.dx < event.position.dx || 51 | previousOffset.dy < event.position.dy) { 52 | progressRadian.value += 1; 53 | } else { 54 | if (progressRadian.value < 1) return; 55 | progressRadian.value -= 1; 56 | } 57 | } 58 | 59 | setState(() { 60 | previousOffset = event.position; 61 | }); 62 | }, 63 | child: ValueListenableBuilder( 64 | valueListenable: progressRadian, 65 | builder: (context, value, child) { 66 | return CustomPaint( 67 | painter: ClockFacePainter( 68 | animation: animationController, 69 | startDegree: value, 70 | ), 71 | size: MediaQuery.of(context).size, 72 | ); 73 | }, 74 | ), 75 | ), 76 | ); 77 | } 78 | } 79 | 80 | class ClockFacePainter extends CustomPainter { 81 | ClockFacePainter({ 82 | required this.animation, 83 | required this.startDegree, 84 | }) : super(repaint: animation) { 85 | angleAnimation = Tween(begin: 10, end: 20).animate( 86 | CurvedAnimation(parent: animation, curve: Curves.easeInOut), 87 | ); 88 | 89 | radianAnimation = Tween(begin: 10, end: startDegree).animate( 90 | CurvedAnimation(parent: animation, curve: Curves.easeInOut), 91 | ); 92 | } 93 | 94 | late Animation angleAnimation; 95 | late Animation radianAnimation; 96 | 97 | final double startDegree; 98 | 99 | final AnimationController animation; 100 | @override 101 | void paint(Canvas canvas, Size size) { 102 | final circlePaint = Paint() 103 | ..style = PaintingStyle.stroke 104 | ..color = const Color(0xFF171C26) 105 | ..strokeWidth = 50; 106 | 107 | final arcPaint = Paint() 108 | ..style = PaintingStyle.stroke 109 | ..color = const Color(0xFF00D9F6) 110 | ..strokeCap = StrokeCap.round 111 | ..strokeWidth = 50; 112 | 113 | final tickPaint = Paint() 114 | ..style = PaintingStyle.stroke 115 | ..color = Colors.white 116 | ..strokeWidth = 2; 117 | 118 | final tickPaint2 = Paint() 119 | ..style = PaintingStyle.stroke 120 | ..color = Colors.white12 121 | ..strokeWidth = 1; 122 | 123 | final center = size / 2; 124 | 125 | canvas.drawCircle( 126 | Offset(center.width, center.height), 127 | center.width - 40, 128 | circlePaint, 129 | ); 130 | 131 | final arcRect = Rect.fromCircle( 132 | center: Offset(center.width, center.height), 133 | radius: center.width - 40, 134 | ); 135 | canvas.drawArc( 136 | arcRect, 137 | -90.radians, 138 | (radianAnimation.value * 30).radians, 139 | false, 140 | arcPaint, 141 | ); 142 | 143 | final lineRadius = center.width - 40 - 35; 144 | final centerOffset = Offset(center.width, center.height); 145 | 146 | for (var i = 0; i < 360; i += 6) { 147 | //replaced with toPolar 148 | // final x1 = center.width + (center.height - 115) * math.cos(i.radians); 149 | // final y1 = center.height + (center.width - 70) * math.sin(i.radians); 150 | // 151 | // final x2 = center.width + (center.width - 90) * math.cos(i.radians); 152 | // final y2 = center.height + (center.width - 80) * math.sin(i.radians); 153 | 154 | if ((i % 90) == 0) { 155 | final textPainter = TextPainter( 156 | text: TextSpan( 157 | text: ((i + 90) ~/ 30).toString(), 158 | style: const TextStyle( 159 | color: Colors.white, 160 | fontSize: 16, 161 | fontWeight: FontWeight.w700, 162 | fontFamily: 'Arial', 163 | ), 164 | ), 165 | textDirection: TextDirection.ltr, 166 | ); 167 | textPainter.layout(); 168 | 169 | textPainter.paint( 170 | canvas, 171 | toPolar( 172 | centerOffset, 173 | i.radians, 174 | lineRadius - 16 - 10, 175 | ), 176 | ); 177 | } 178 | 179 | if ((i % 30) == 0) { 180 | canvas.drawLine( 181 | toPolar( 182 | centerOffset, 183 | i.radians, 184 | lineRadius, 185 | ), 186 | toPolar( 187 | centerOffset, 188 | i.radians, 189 | lineRadius - 10, 190 | ), 191 | tickPaint, 192 | ); 193 | } else { 194 | canvas.drawLine( 195 | toPolar( 196 | centerOffset, 197 | i.radians, 198 | lineRadius, 199 | ), 200 | toPolar( 201 | centerOffset, 202 | i.radians, 203 | lineRadius - 10, 204 | ), 205 | tickPaint2, 206 | ); 207 | } 208 | } 209 | 210 | final textPainter = TextPainter( 211 | text: TextSpan( 212 | text: (radianAnimation.value.toInt()).toString().formatText, 213 | style: const TextStyle( 214 | color: Colors.white, 215 | fontSize: 70, 216 | fontWeight: FontWeight.w700, 217 | fontFamily: 'Arial', 218 | ), 219 | ), 220 | textDirection: TextDirection.ltr, 221 | ); 222 | textPainter.layout(); 223 | 224 | textPainter.paint( 225 | canvas, 226 | Offset(center.width - 30, center.height - 40), 227 | ); 228 | 229 | final notificationPaint = Paint() 230 | ..color = const Color(0xFF0E121B) 231 | ..style = PaintingStyle.fill; 232 | //math.cos((radianAnimation.value * 30).radians).abs() 233 | canvas.drawCircle( 234 | Offset( 235 | center.width - 20 + 20, 236 | center.height - 160 + 22, 237 | ), 238 | 20, 239 | notificationPaint, 240 | ); 241 | final iconPainter = TextPainter( 242 | text: TextSpan( 243 | text: String.fromCharCode(LineIcons.powerOff.codePoint), 244 | style: TextStyle( 245 | color: const Color(0xFF00D9F6), 246 | fontSize: 30, 247 | fontFamily: LineIcons.powerOff.fontFamily, 248 | package: LineIcons.powerOff.fontPackage, 249 | ), 250 | ), 251 | textDirection: TextDirection.rtl, 252 | ); 253 | iconPainter.layout(); 254 | 255 | iconPainter.paint( 256 | canvas, 257 | Offset( 258 | center.width - 15, 259 | center.height - 154, 260 | ), 261 | ); 262 | 263 | final bottomPaint = Paint() 264 | ..color = const Color(0xFF0E121B) 265 | ..style = PaintingStyle.fill; 266 | //math.cos((radianAnimation.value * 30).radians).abs() 267 | canvas.drawCircle( 268 | Offset( 269 | center.width + 60 + 10, 270 | center.height + 105 + 12, 271 | ), 272 | 20, 273 | bottomPaint, 274 | ); 275 | 276 | final bottomIconPainter = TextPainter( 277 | text: TextSpan( 278 | text: String.fromCharCode(LineIcons.bell.codePoint), 279 | style: TextStyle( 280 | color: const Color(0xFF00D9F6), 281 | fontSize: 30, 282 | fontFamily: LineIcons.bell.fontFamily, 283 | package: LineIcons.bell.fontPackage, 284 | ), 285 | ), 286 | textDirection: TextDirection.rtl, 287 | ); 288 | bottomIconPainter.layout(); 289 | 290 | bottomIconPainter.paint( 291 | canvas, 292 | Offset(center.width + 55, center.height + 100), 293 | ); 294 | } 295 | 296 | @override 297 | bool shouldRepaint(ClockFacePainter oldDelegate) => 298 | oldDelegate.startDegree != startDegree; 299 | 300 | @override 301 | bool shouldRebuildSemantics(ClockFacePainter oldDelegate) => false; 302 | } 303 | 304 | extension NumX on T { 305 | double get radians => (this * math.pi) / 180.0; 306 | } 307 | 308 | extension StringX on String { 309 | String get formatText => length < 2 ? '0$this' : this; 310 | } 311 | 312 | Offset toPolar(Offset center, double radians, double radius) { 313 | return center + 314 | Offset(radius * math.cos(radians), radius * math.sin(radians)); 315 | } 316 | -------------------------------------------------------------------------------- /lib/clock/widgets/clock_tab.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../../clock/clock.dart'; 4 | 5 | class ClockTab extends StatelessWidget { 6 | const ClockTab({ 7 | super.key, 8 | this.currentIndex = 3, 9 | }); 10 | 11 | final int currentIndex; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return ValueListenableBuilder( 16 | valueListenable: clockTabs, 17 | builder: (context, value, child) { 18 | return Row( 19 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 20 | children: value 21 | .asMap() 22 | .entries 23 | .map( 24 | (e) => Icon( 25 | e.value.icon, 26 | color: e.key == currentIndex 27 | ? const Color(0xFF00D9F6) 28 | : Colors.white54, 29 | size: 30, 30 | ), 31 | ) 32 | .toList(), 33 | ); 34 | }, 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/clock/widgets/horizontal_calendar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CalendarTiile extends StatelessWidget { 4 | const CalendarTiile({ 5 | super.key, 6 | this.active = false, 7 | }); 8 | 9 | final bool active; 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Container( 14 | height: 40, 15 | width: 40, 16 | decoration: BoxDecoration( 17 | color: active ? const Color(0xFF1BD3F4) : const Color(0xFF171C26), 18 | shape: BoxShape.circle, 19 | ), 20 | alignment: Alignment.center, 21 | child: Text( 22 | 'M', 23 | style: TextStyle( 24 | fontSize: 20, 25 | color: active ? Colors.black : Colors.white54, 26 | ), 27 | ), 28 | ); 29 | } 30 | } 31 | 32 | class HorizontalCalendar extends StatelessWidget { 33 | const HorizontalCalendar({super.key}); 34 | 35 | @override 36 | Widget build(BuildContext context) { 37 | return SizedBox( 38 | height: 40, 39 | child: ListView.separated( 40 | itemCount: 10, 41 | shrinkWrap: true, 42 | scrollDirection: Axis.horizontal, 43 | separatorBuilder: (BuildContext context, int index) => 44 | const SizedBox(width: 20), 45 | itemBuilder: (BuildContext context, int index) { 46 | return CalendarTiile( 47 | active: index.isEven, 48 | ); 49 | }, 50 | ), 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/clock/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'clock_face.dart'; 2 | export 'clock_tab.dart'; 3 | export 'horizontal_calendar.dart'; 4 | -------------------------------------------------------------------------------- /lib/l10n/arb/app_en.arb: -------------------------------------------------------------------------------- 1 | { 2 | "@@locale": "en", 3 | "counterAppBarTitle": "Counter", 4 | "@counterAppBarTitle": { 5 | "description": "Text shown in the AppBar of the Counter Page" 6 | } 7 | } -------------------------------------------------------------------------------- /lib/l10n/arb/app_es.arb: -------------------------------------------------------------------------------- 1 | { 2 | "@@locale": "es", 3 | "counterAppBarTitle": "Contador", 4 | "@counterAppBarTitle": { 5 | "description": "Texto mostrado en la AppBar de la página del contador" 6 | } 7 | } -------------------------------------------------------------------------------- /lib/l10n/l10n.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022, Very Good Ventures 2 | // https://verygood.ventures 3 | // 4 | // Use of this source code is governed by an MIT-style 5 | // license that can be found in the LICENSE file or at 6 | // https://opensource.org/licenses/MIT. 7 | 8 | import 'package:flutter/widgets.dart'; 9 | import 'package:flutter_gen/gen_l10n/app_localizations.dart'; 10 | 11 | export 'package:flutter_gen/gen_l10n/app_localizations.dart'; 12 | 13 | extension AppLocalizationsX on BuildContext { 14 | AppLocalizations get l10n => AppLocalizations.of(this); 15 | } 16 | -------------------------------------------------------------------------------- /lib/main_development.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022, Very Good Ventures 2 | // https://verygood.ventures 3 | // 4 | // Use of this source code is governed by an MIT-style 5 | // license that can be found in the LICENSE file or at 6 | // https://opensource.org/licenses/MIT. 7 | 8 | import 'package:painter_shape/app/app.dart'; 9 | import 'package:painter_shape/bootstrap.dart'; 10 | 11 | void main() { 12 | bootstrap(() => const App()); 13 | } 14 | -------------------------------------------------------------------------------- /lib/main_production.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022, Very Good Ventures 2 | // https://verygood.ventures 3 | // 4 | // Use of this source code is governed by an MIT-style 5 | // license that can be found in the LICENSE file or at 6 | // https://opensource.org/licenses/MIT. 7 | 8 | import 'package:painter_shape/app/app.dart'; 9 | import 'package:painter_shape/bootstrap.dart'; 10 | 11 | void main() { 12 | bootstrap(() => const App()); 13 | } 14 | -------------------------------------------------------------------------------- /lib/main_staging.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2022, Very Good Ventures 2 | // https://verygood.ventures 3 | // 4 | // Use of this source code is governed by an MIT-style 5 | // license that can be found in the LICENSE file or at 6 | // https://opensource.org/licenses/MIT. 7 | 8 | import 'package:painter_shape/app/app.dart'; 9 | import 'package:painter_shape/bootstrap.dart'; 10 | 11 | void main() { 12 | bootstrap(() => const App()); 13 | } 14 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: painter_shape 2 | description: A Very Good Project created by Very Good CLI. 3 | version: 1.0.0+1 4 | publish_to: none 5 | 6 | environment: 7 | sdk: ">=2.18.0 <3.0.0" 8 | flutter: 3.3.7 9 | 10 | dependencies: 11 | bloc: ^8.1.0 12 | flutter: 13 | sdk: flutter 14 | flutter_bloc: ^8.1.1 15 | flutter_localizations: 16 | sdk: flutter 17 | intl: ^0.17.0 18 | line_icons: ^2.0.1 19 | 20 | dev_dependencies: 21 | bloc_test: ^9.1.0 22 | flutter_test: 23 | sdk: flutter 24 | mocktail: ^0.3.0 25 | very_good_analysis: ^3.1.0 26 | 27 | flutter: 28 | uses-material-design: true 29 | generate: true 30 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/icons/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/web/icons/favicon.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | Painter Shape 34 | 35 | 36 | 37 | 38 | 41 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Painter Shape", 3 | "short_name": "Painter Shape", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A Very Good Project created by Very Good CLI.", 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 | } 24 | -------------------------------------------------------------------------------- /windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /windows/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(painter_shape LANGUAGES CXX) 3 | 4 | set(BINARY_NAME "painter_shape") 5 | 6 | cmake_policy(SET CMP0063 NEW) 7 | 8 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") 9 | 10 | # Configure build options. 11 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) 12 | if(IS_MULTICONFIG) 13 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" 14 | CACHE STRING "" FORCE) 15 | else() 16 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 17 | set(CMAKE_BUILD_TYPE "Debug" CACHE 18 | STRING "Flutter build mode" FORCE) 19 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 20 | "Debug" "Profile" "Release") 21 | endif() 22 | endif() 23 | 24 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") 25 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") 26 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") 27 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") 28 | 29 | # Use Unicode for all projects. 30 | add_definitions(-DUNICODE -D_UNICODE) 31 | 32 | # Compilation settings that should be applied to most targets. 33 | function(APPLY_STANDARD_SETTINGS TARGET) 34 | target_compile_features(${TARGET} PUBLIC cxx_std_17) 35 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") 36 | target_compile_options(${TARGET} PRIVATE /EHsc) 37 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") 38 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") 39 | endfunction() 40 | 41 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 42 | 43 | # Flutter library and tool build rules. 44 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 45 | 46 | # Application build 47 | add_subdirectory("runner") 48 | 49 | # Generated plugin build rules, which manage building the plugins and adding 50 | # them to the application. 51 | include(flutter/generated_plugins.cmake) 52 | 53 | 54 | # === Installation === 55 | # Support files are copied into place next to the executable, so that it can 56 | # run in place. This is done instead of making a separate bundle (as on Linux) 57 | # so that building and running from within Visual Studio will work. 58 | set(BUILD_BUNDLE_DIR "$") 59 | # Make the "install" step default, as it's required to run. 60 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) 61 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 62 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 63 | endif() 64 | 65 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 66 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") 67 | 68 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 69 | COMPONENT Runtime) 70 | 71 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 72 | COMPONENT Runtime) 73 | 74 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 75 | COMPONENT Runtime) 76 | 77 | if(PLUGIN_BUNDLED_LIBRARIES) 78 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" 79 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 80 | COMPONENT Runtime) 81 | endif() 82 | 83 | # Fully re-copy the assets directory on each build to avoid having stale files 84 | # from a previous install. 85 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 86 | install(CODE " 87 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 88 | " COMPONENT Runtime) 89 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 90 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 91 | 92 | # Install the AOT library on non-Debug builds only. 93 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 94 | CONFIGURATIONS Profile;Release 95 | COMPONENT Runtime) 96 | -------------------------------------------------------------------------------- /windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | 3 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 4 | 5 | # Configuration provided via flutter tool. 6 | include(${EPHEMERAL_DIR}/generated_config.cmake) 7 | 8 | # TODO: Move the rest of this into files in ephemeral. See 9 | # https://github.com/flutter/flutter/issues/57146. 10 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") 11 | 12 | # === Flutter Library === 13 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") 14 | 15 | # Published to parent scope for install step. 16 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 17 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 18 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 19 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) 20 | 21 | list(APPEND FLUTTER_LIBRARY_HEADERS 22 | "flutter_export.h" 23 | "flutter_windows.h" 24 | "flutter_messenger.h" 25 | "flutter_plugin_registrar.h" 26 | "flutter_texture_registrar.h" 27 | ) 28 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") 29 | add_library(flutter INTERFACE) 30 | target_include_directories(flutter INTERFACE 31 | "${EPHEMERAL_DIR}" 32 | ) 33 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") 34 | add_dependencies(flutter flutter_assemble) 35 | 36 | # === Wrapper === 37 | list(APPEND CPP_WRAPPER_SOURCES_CORE 38 | "core_implementations.cc" 39 | "standard_codec.cc" 40 | ) 41 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") 42 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN 43 | "plugin_registrar.cc" 44 | ) 45 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") 46 | list(APPEND CPP_WRAPPER_SOURCES_APP 47 | "flutter_engine.cc" 48 | "flutter_view_controller.cc" 49 | ) 50 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") 51 | 52 | # Wrapper sources needed for a plugin. 53 | add_library(flutter_wrapper_plugin STATIC 54 | ${CPP_WRAPPER_SOURCES_CORE} 55 | ${CPP_WRAPPER_SOURCES_PLUGIN} 56 | ) 57 | apply_standard_settings(flutter_wrapper_plugin) 58 | set_target_properties(flutter_wrapper_plugin PROPERTIES 59 | POSITION_INDEPENDENT_CODE ON) 60 | set_target_properties(flutter_wrapper_plugin PROPERTIES 61 | CXX_VISIBILITY_PRESET hidden) 62 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) 63 | target_include_directories(flutter_wrapper_plugin PUBLIC 64 | "${WRAPPER_ROOT}/include" 65 | ) 66 | add_dependencies(flutter_wrapper_plugin flutter_assemble) 67 | 68 | # Wrapper sources needed for the runner. 69 | add_library(flutter_wrapper_app STATIC 70 | ${CPP_WRAPPER_SOURCES_CORE} 71 | ${CPP_WRAPPER_SOURCES_APP} 72 | ) 73 | apply_standard_settings(flutter_wrapper_app) 74 | target_link_libraries(flutter_wrapper_app PUBLIC flutter) 75 | target_include_directories(flutter_wrapper_app PUBLIC 76 | "${WRAPPER_ROOT}/include" 77 | ) 78 | add_dependencies(flutter_wrapper_app flutter_assemble) 79 | 80 | # === Flutter tool backend === 81 | # _phony_ is a non-existent file to force this command to run every time, 82 | # since currently there's no way to get a full input/output list from the 83 | # flutter tool. 84 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") 85 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) 86 | add_custom_command( 87 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 88 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} 89 | ${CPP_WRAPPER_SOURCES_APP} 90 | ${PHONY_OUTPUT} 91 | COMMAND ${CMAKE_COMMAND} -E env 92 | ${FLUTTER_TOOL_ENVIRONMENT} 93 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" 94 | windows-x64 $ 95 | VERBATIM 96 | ) 97 | add_custom_target(flutter_assemble DEPENDS 98 | "${FLUTTER_LIBRARY}" 99 | ${FLUTTER_LIBRARY_HEADERS} 100 | ${CPP_WRAPPER_SOURCES_CORE} 101 | ${CPP_WRAPPER_SOURCES_PLUGIN} 102 | ${CPP_WRAPPER_SOURCES_APP} 103 | ) 104 | -------------------------------------------------------------------------------- /windows/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 RegisterPlugins(flutter::PluginRegistry* registry) { 11 | } 12 | -------------------------------------------------------------------------------- /windows/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 RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /windows/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}/windows 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}/windows plugins/${ffi_plugin}) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 23 | endforeach(ffi_plugin) 24 | -------------------------------------------------------------------------------- /windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | add_executable(${BINARY_NAME} WIN32 5 | "flutter_window.cpp" 6 | "main.cpp" 7 | "utils.cpp" 8 | "win32_window.cpp" 9 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 10 | "Runner.rc" 11 | "runner.exe.manifest" 12 | ) 13 | apply_standard_settings(${BINARY_NAME}) 14 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 15 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 16 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 17 | add_dependencies(${BINARY_NAME} flutter_assemble) 18 | -------------------------------------------------------------------------------- /windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #ifdef FLUTTER_BUILD_NUMBER 64 | #define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0 67 | #endif 68 | 69 | #ifdef FLUTTER_BUILD_NAME 70 | #define VERSION_AS_STRING #FLUTTER_BUILD_NAME 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "com.example.verygoodcore.painter-shape" "\0" 93 | VALUE "FileDescription", "painter_shape" "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "painter_shape" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2022 com.example.verygoodcore.painter-shape. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "painter_shape.exe" "\0" 98 | VALUE "ProductName", "Painter Shape" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | return true; 30 | } 31 | 32 | void FlutterWindow::OnDestroy() { 33 | if (flutter_controller_) { 34 | flutter_controller_ = nullptr; 35 | } 36 | 37 | Win32Window::OnDestroy(); 38 | } 39 | 40 | LRESULT 41 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 42 | WPARAM const wparam, 43 | LPARAM const lparam) noexcept { 44 | // Give Flutter, including plugins, an opportunity to handle window messages. 45 | if (flutter_controller_) { 46 | std::optional result = 47 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 48 | lparam); 49 | if (result) { 50 | return *result; 51 | } 52 | } 53 | 54 | switch (message) { 55 | case WM_FONTCHANGE: 56 | flutter_controller_->engine()->ReloadSystemFonts(); 57 | break; 58 | } 59 | 60 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 61 | } 62 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.CreateAndShow(L"Painter Shape", origin, size)) { 31 | return EXIT_FAILURE; 32 | } 33 | window.SetQuitOnClose(true); 34 | 35 | ::MSG msg; 36 | while (::GetMessage(&msg, nullptr, 0, 0)) { 37 | ::TranslateMessage(&msg); 38 | ::DispatchMessage(&msg); 39 | } 40 | 41 | ::CoUninitialize(); 42 | return EXIT_SUCCESS; 43 | } 44 | -------------------------------------------------------------------------------- /windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | // 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cscoderr/flutter_clock_painter/54c4354b3e4a21db5f8adf543978c7cfd289f9fc/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr); 51 | if (target_length == 0) { 52 | return std::string(); 53 | } 54 | std::string utf8_string; 55 | utf8_string.resize(target_length); 56 | int converted_length = ::WideCharToMultiByte( 57 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 58 | -1, utf8_string.data(), 59 | target_length, nullptr, nullptr); 60 | if (converted_length == 0) { 61 | return std::string(); 62 | } 63 | return utf8_string; 64 | } 65 | -------------------------------------------------------------------------------- /windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /windows/runner/win32_window.cpp: -------------------------------------------------------------------------------- 1 | #include "win32_window.h" 2 | 3 | #include 4 | 5 | #include "resource.h" 6 | 7 | namespace { 8 | 9 | constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; 10 | 11 | // The number of Win32Window objects that currently exist. 12 | static int g_active_window_count = 0; 13 | 14 | using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); 15 | 16 | // Scale helper to convert logical scaler values to physical using passed in 17 | // scale factor 18 | int Scale(int source, double scale_factor) { 19 | return static_cast(source * scale_factor); 20 | } 21 | 22 | // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. 23 | // This API is only needed for PerMonitor V1 awareness mode. 24 | void EnableFullDpiSupportIfAvailable(HWND hwnd) { 25 | HMODULE user32_module = LoadLibraryA("User32.dll"); 26 | if (!user32_module) { 27 | return; 28 | } 29 | auto enable_non_client_dpi_scaling = 30 | reinterpret_cast( 31 | GetProcAddress(user32_module, "EnableNonClientDpiScaling")); 32 | if (enable_non_client_dpi_scaling != nullptr) { 33 | enable_non_client_dpi_scaling(hwnd); 34 | FreeLibrary(user32_module); 35 | } 36 | } 37 | 38 | } // namespace 39 | 40 | // Manages the Win32Window's window class registration. 41 | class WindowClassRegistrar { 42 | public: 43 | ~WindowClassRegistrar() = default; 44 | 45 | // Returns the singleton registar instance. 46 | static WindowClassRegistrar* GetInstance() { 47 | if (!instance_) { 48 | instance_ = new WindowClassRegistrar(); 49 | } 50 | return instance_; 51 | } 52 | 53 | // Returns the name of the window class, registering the class if it hasn't 54 | // previously been registered. 55 | const wchar_t* GetWindowClass(); 56 | 57 | // Unregisters the window class. Should only be called if there are no 58 | // instances of the window. 59 | void UnregisterWindowClass(); 60 | 61 | private: 62 | WindowClassRegistrar() = default; 63 | 64 | static WindowClassRegistrar* instance_; 65 | 66 | bool class_registered_ = false; 67 | }; 68 | 69 | WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; 70 | 71 | const wchar_t* WindowClassRegistrar::GetWindowClass() { 72 | if (!class_registered_) { 73 | WNDCLASS window_class{}; 74 | window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); 75 | window_class.lpszClassName = kWindowClassName; 76 | window_class.style = CS_HREDRAW | CS_VREDRAW; 77 | window_class.cbClsExtra = 0; 78 | window_class.cbWndExtra = 0; 79 | window_class.hInstance = GetModuleHandle(nullptr); 80 | window_class.hIcon = 81 | LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); 82 | window_class.hbrBackground = 0; 83 | window_class.lpszMenuName = nullptr; 84 | window_class.lpfnWndProc = Win32Window::WndProc; 85 | RegisterClass(&window_class); 86 | class_registered_ = true; 87 | } 88 | return kWindowClassName; 89 | } 90 | 91 | void WindowClassRegistrar::UnregisterWindowClass() { 92 | UnregisterClass(kWindowClassName, nullptr); 93 | class_registered_ = false; 94 | } 95 | 96 | Win32Window::Win32Window() { 97 | ++g_active_window_count; 98 | } 99 | 100 | Win32Window::~Win32Window() { 101 | --g_active_window_count; 102 | Destroy(); 103 | } 104 | 105 | bool Win32Window::CreateAndShow(const std::wstring& title, 106 | const Point& origin, 107 | const Size& size) { 108 | Destroy(); 109 | 110 | const wchar_t* window_class = 111 | WindowClassRegistrar::GetInstance()->GetWindowClass(); 112 | 113 | const POINT target_point = {static_cast(origin.x), 114 | static_cast(origin.y)}; 115 | HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); 116 | UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); 117 | double scale_factor = dpi / 96.0; 118 | 119 | HWND window = CreateWindow( 120 | window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE, 121 | Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), 122 | Scale(size.width, scale_factor), Scale(size.height, scale_factor), 123 | nullptr, nullptr, GetModuleHandle(nullptr), this); 124 | 125 | if (!window) { 126 | return false; 127 | } 128 | 129 | return OnCreate(); 130 | } 131 | 132 | // static 133 | LRESULT CALLBACK Win32Window::WndProc(HWND const window, 134 | UINT const message, 135 | WPARAM const wparam, 136 | LPARAM const lparam) noexcept { 137 | if (message == WM_NCCREATE) { 138 | auto window_struct = reinterpret_cast(lparam); 139 | SetWindowLongPtr(window, GWLP_USERDATA, 140 | reinterpret_cast(window_struct->lpCreateParams)); 141 | 142 | auto that = static_cast(window_struct->lpCreateParams); 143 | EnableFullDpiSupportIfAvailable(window); 144 | that->window_handle_ = window; 145 | } else if (Win32Window* that = GetThisFromHandle(window)) { 146 | return that->MessageHandler(window, message, wparam, lparam); 147 | } 148 | 149 | return DefWindowProc(window, message, wparam, lparam); 150 | } 151 | 152 | LRESULT 153 | Win32Window::MessageHandler(HWND hwnd, 154 | UINT const message, 155 | WPARAM const wparam, 156 | LPARAM const lparam) noexcept { 157 | switch (message) { 158 | case WM_DESTROY: 159 | window_handle_ = nullptr; 160 | Destroy(); 161 | if (quit_on_close_) { 162 | PostQuitMessage(0); 163 | } 164 | return 0; 165 | 166 | case WM_DPICHANGED: { 167 | auto newRectSize = reinterpret_cast(lparam); 168 | LONG newWidth = newRectSize->right - newRectSize->left; 169 | LONG newHeight = newRectSize->bottom - newRectSize->top; 170 | 171 | SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, 172 | newHeight, SWP_NOZORDER | SWP_NOACTIVATE); 173 | 174 | return 0; 175 | } 176 | case WM_SIZE: { 177 | RECT rect = GetClientArea(); 178 | if (child_content_ != nullptr) { 179 | // Size and position the child window. 180 | MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, 181 | rect.bottom - rect.top, TRUE); 182 | } 183 | return 0; 184 | } 185 | 186 | case WM_ACTIVATE: 187 | if (child_content_ != nullptr) { 188 | SetFocus(child_content_); 189 | } 190 | return 0; 191 | } 192 | 193 | return DefWindowProc(window_handle_, message, wparam, lparam); 194 | } 195 | 196 | void Win32Window::Destroy() { 197 | OnDestroy(); 198 | 199 | if (window_handle_) { 200 | DestroyWindow(window_handle_); 201 | window_handle_ = nullptr; 202 | } 203 | if (g_active_window_count == 0) { 204 | WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); 205 | } 206 | } 207 | 208 | Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { 209 | return reinterpret_cast( 210 | GetWindowLongPtr(window, GWLP_USERDATA)); 211 | } 212 | 213 | void Win32Window::SetChildContent(HWND content) { 214 | child_content_ = content; 215 | SetParent(content, window_handle_); 216 | RECT frame = GetClientArea(); 217 | 218 | MoveWindow(content, frame.left, frame.top, frame.right - frame.left, 219 | frame.bottom - frame.top, true); 220 | 221 | SetFocus(child_content_); 222 | } 223 | 224 | RECT Win32Window::GetClientArea() { 225 | RECT frame; 226 | GetClientRect(window_handle_, &frame); 227 | return frame; 228 | } 229 | 230 | HWND Win32Window::GetHandle() { 231 | return window_handle_; 232 | } 233 | 234 | void Win32Window::SetQuitOnClose(bool quit_on_close) { 235 | quit_on_close_ = quit_on_close; 236 | } 237 | 238 | bool Win32Window::OnCreate() { 239 | // No-op; provided for subclasses. 240 | return true; 241 | } 242 | 243 | void Win32Window::OnDestroy() { 244 | // No-op; provided for subclasses. 245 | } 246 | -------------------------------------------------------------------------------- /windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates and shows a win32 window with |title| and position and size using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size to will treat the width height passed in to this function 35 | // as logical pixels and scale to appropriate for the default monitor. Returns 36 | // true if the window was created successfully. 37 | bool CreateAndShow(const std::wstring& title, 38 | const Point& origin, 39 | const Size& size); 40 | 41 | // Release OS resources associated with window. 42 | void Destroy(); 43 | 44 | // Inserts |content| into the window tree. 45 | void SetChildContent(HWND content); 46 | 47 | // Returns the backing Window handle to enable clients to set icon and other 48 | // window properties. Returns nullptr if the window has been destroyed. 49 | HWND GetHandle(); 50 | 51 | // If true, closing this window will quit the application. 52 | void SetQuitOnClose(bool quit_on_close); 53 | 54 | // Return a RECT representing the bounds of the current client area. 55 | RECT GetClientArea(); 56 | 57 | protected: 58 | // Processes and route salient window messages for mouse handling, 59 | // size change and DPI. Delegates handling of these to member overloads that 60 | // inheriting classes can handle. 61 | virtual LRESULT MessageHandler(HWND window, 62 | UINT const message, 63 | WPARAM const wparam, 64 | LPARAM const lparam) noexcept; 65 | 66 | // Called when CreateAndShow is called, allowing subclass window-related 67 | // setup. Subclasses should return false if setup fails. 68 | virtual bool OnCreate(); 69 | 70 | // Called when Destroy is called. 71 | virtual void OnDestroy(); 72 | 73 | private: 74 | friend class WindowClassRegistrar; 75 | 76 | // OS callback called by message pump. Handles the WM_NCCREATE message which 77 | // is passed when the non-client area is being created and enables automatic 78 | // non-client DPI scaling so that the non-client area automatically 79 | // responsponds to changes in DPI. All other messages are handled by 80 | // MessageHandler. 81 | static LRESULT CALLBACK WndProc(HWND const window, 82 | UINT const message, 83 | WPARAM const wparam, 84 | LPARAM const lparam) noexcept; 85 | 86 | // Retrieves a class instance pointer for |window| 87 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 88 | 89 | bool quit_on_close_ = false; 90 | 91 | // window handle for top level window. 92 | HWND window_handle_ = nullptr; 93 | 94 | // window handle for hosted content. 95 | HWND child_content_ = nullptr; 96 | }; 97 | 98 | #endif // RUNNER_WIN32_WINDOW_H_ 99 | --------------------------------------------------------------------------------