├── .gitignore
├── LICENSE
├── README.md
└── timer_app
├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ ├── google-services.json
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── timer_app
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ ├── clock.png
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── Screen
│ ├── clock.dart
│ └── homeScreen.dart
├── main.dart
├── models
│ ├── alarm.dart
│ └── menu_type.dart
├── providers
│ ├── countdown.dart
│ ├── db_helper.dart
│ ├── firebase.dart
│ └── timer.dart
└── widgets
│ └── clock_paint.dart
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
├── Icon-512.png
├── Icon-maskable-192.png
└── Icon-maskable-512.png
├── index.html
└── manifest.json
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://www.dartlang.org/guides/libraries/private-files
2 |
3 | # Files and directories created by pub
4 | .dart_tool/
5 | .packages
6 | build/
7 | # If you're building an application, you may want to check-in your pubspec.lock
8 | pubspec.lock
9 |
10 | # Directory created by dartdoc
11 | # If you don't generate documentation locally you can remove this line.
12 | doc/api/
13 |
14 | # Avoid committing generated Javascript files:
15 | *.dart.js
16 | *.info.json # Produced by the --dump-info flag.
17 | *.js # When generated by dart2js. Don't specify *.js if your
18 | # project includes source files written in JavaScript.
19 | *.js_
20 | *.js.deps
21 | *.js.map
22 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 navee-ramesh
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.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | >
5 |
6 |
7 | # Clock App
8 |
9 | Mobile application to check the time, set alarm, timer and stop watch with backend support
10 |
11 | ## Technology and tools used 🚀
12 | 1. Frontend -> Flutter
13 | 2. Backend -> Firebase
14 | 3. VS code
15 | 4. Github
16 |
17 | ## Detail functionality 👩💻
18 | - Once you open the app you'll be redirected to Homepage
19 | - In home page you'll be able to set Alarm which will be stored in firebase
20 | - You can navigate to Timer screen to set a timer
21 | - And the last is for stop watch which has the following fucntionality
22 | 1. Start
23 | 2. Stop
24 | 3. Reset
25 | 4. Continue
26 | - Once you set the alarm at the particular time you get the alarm notification.
27 | - You can also cancel the alarm which you had set earlier.
28 | - State management - Provider
29 |
30 | ## Screenshots
31 |
32 | >
33 | >
34 | >
35 | >
36 |
37 |
38 | ## Local Installation 🚩
39 |
40 | 1. Drop a ⭐ on the Github Repository.
41 | 2. Fork the repository
42 | 3. Clone the Repo by going to your local Git Client and pushing in the command:
43 |
44 | ```sh
45 | https://github.com/naveeramesh/clock_app.git
46 | ```
47 | ## Commands to run 🏃♀️🏃♀️
48 |
49 | ```sh
50 | flutter pub get
51 | flutter run
52 | ```
53 |
54 |
55 |
--------------------------------------------------------------------------------
/timer_app/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/timer_app/.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: 18116933e77adc82f80866c928266a5b4f1ed645
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/timer_app/README.md:
--------------------------------------------------------------------------------
1 | # timer_app
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/timer_app/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 |
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/timer_app/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 |
--------------------------------------------------------------------------------
/timer_app/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply plugin: 'com.google.gms.google-services'
27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
28 |
29 | android {
30 | compileSdkVersion 30
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.example.timer_app"
48 | minSdkVersion 27
49 | targetSdkVersion 30
50 | versionCode flutterVersionCode.toInteger()
51 | versionName flutterVersionName
52 | }
53 |
54 | buildTypes {
55 | release {
56 | // TODO: Add your own signing config for the release build.
57 | // Signing with the debug keys for now, so `flutter run --release` works.
58 | signingConfig signingConfigs.debug
59 | }
60 | }
61 | }
62 |
63 | flutter {
64 | source '../..'
65 | }
66 |
67 | dependencies {
68 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
69 | }
70 |
--------------------------------------------------------------------------------
/timer_app/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "454668969398",
4 | "project_id": "clock-bbcb9",
5 | "storage_bucket": "clock-bbcb9.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:454668969398:android:dd6ec8ec6844f4a7384d17",
11 | "android_client_info": {
12 | "package_name": "com.example.timer_app"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "454668969398-2sai4ci3n8ha36pokvqjaj1gm712jcpi.apps.googleusercontent.com",
18 | "client_type": 1,
19 | "android_info": {
20 | "package_name": "com.example.timer_app",
21 | "certificate_hash": "a4ae8f649dc59dab54b36486fcabc55107367959"
22 | }
23 | },
24 | {
25 | "client_id": "454668969398-45qtju31skom5khia4kda8mfh09n7e2a.apps.googleusercontent.com",
26 | "client_type": 3
27 | }
28 | ],
29 | "api_key": [
30 | {
31 | "current_key": "AIzaSyBDFjbZDLbeqDAY4OmKJdo4eeLOhvqLfHo"
32 | }
33 | ],
34 | "services": {
35 | "appinvite_service": {
36 | "other_platform_oauth_client": [
37 | {
38 | "client_id": "454668969398-45qtju31skom5khia4kda8mfh09n7e2a.apps.googleusercontent.com",
39 | "client_type": 3
40 | }
41 | ]
42 | }
43 | }
44 | }
45 | ],
46 | "configuration_version": "1"
47 | }
--------------------------------------------------------------------------------
/timer_app/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/kotlin/com/example/timer_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.timer_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/drawable/clock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/android/app/src/main/res/drawable/clock.png
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/timer_app/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/timer_app/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/timer_app/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath 'com.google.gms:google-services:4.3.10'
11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | mavenCentral()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/timer_app/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/timer_app/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-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/timer_app/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 |
--------------------------------------------------------------------------------
/timer_app/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/timer_app/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/timer_app/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/timer_app/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.timerApp;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.timerApp;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.timerApp;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/timer_app/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 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/timer_app/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.
--------------------------------------------------------------------------------
/timer_app/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 |
--------------------------------------------------------------------------------
/timer_app/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 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | timer_app
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/timer_app/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/timer_app/lib/Screen/clock.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'dart:async';
3 | import 'dart:math';
4 |
5 | import 'package:timer_app/widgets/clock_paint.dart';
6 |
7 | class CLock extends StatefulWidget {
8 | const CLock({Key? key}) : super(key: key);
9 |
10 | @override
11 | _CLockState createState() => _CLockState();
12 | }
13 |
14 | class _CLockState extends State {
15 | @override
16 | void initState() {
17 | Timer.periodic(Duration(seconds: 1), (timer) {
18 | if (mounted) {
19 | setState(() {});
20 | }
21 | });
22 |
23 | super.initState();
24 | }
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | return Container(
29 | height: 220,
30 | width: 220,
31 | child: Transform.rotate(
32 | angle: -pi / 2,
33 | child: CustomPaint(
34 | painter: ClockPainter(),
35 | )),
36 | );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/timer_app/lib/Screen/homeScreen.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:cloud_firestore/cloud_firestore.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:google_fonts/google_fonts.dart';
5 | import 'package:intl/intl.dart';
6 | import 'package:numberpicker/numberpicker.dart';
7 | import 'package:provider/provider.dart';
8 | import 'package:timer_app/Screen/clock.dart';
9 | import 'package:timer_app/models/alarm.dart';
10 | import 'package:timer_app/models/menu_type.dart';
11 | import 'package:timer_app/providers/countdown.dart';
12 | import 'package:timer_app/providers/firebase.dart';
13 | import 'package:timer_app/providers/timer.dart';
14 |
15 | class HomeScreen extends StatefulWidget {
16 | const HomeScreen({Key? key}) : super(key: key);
17 |
18 | @override
19 | _HomeScreenState createState() => _HomeScreenState();
20 | }
21 |
22 | class _HomeScreenState extends State {
23 | TextEditingController titlecontroller = TextEditingController();
24 | TextEditingController descontroller = TextEditingController();
25 |
26 | String currenttime = DateFormat('hh:mm a').format(DateTime.now()).toString();
27 | var date = DateFormat('hh:mm a').format(DateTime.now()).toString();
28 | var day = DateFormat.yMMMd().format(DateTime.now()).toString();
29 |
30 | @override
31 | void initState() {
32 | Timer.periodic(Duration(minutes: 1), (timer) {
33 | if (mounted) {
34 | setState(() {
35 | date = DateFormat('hh:mm a').format(DateTime.now()).toString();
36 | });
37 | }
38 | });
39 |
40 | super.initState();
41 | }
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 | Firebase_App firebase_app = Provider.of(context);
46 | return Scaffold(
47 | floatingActionButton: Consumer(
48 | builder: (context, value, child) => value.title == "Alarm"
49 | ? FloatingActionButton(
50 | onPressed: () {
51 | showModalBottomSheet(
52 | isScrollControlled: true,
53 | context: context,
54 | shape: RoundedRectangleBorder(
55 | borderRadius:
56 | BorderRadius.vertical(top: Radius.circular(25.0)),
57 | ),
58 | builder: (context) {
59 | return Padding(
60 | padding: MediaQuery.of(context).viewInsets,
61 | child: Container(
62 | height: MediaQuery.of(context).size.height / 3,
63 | child: Column(
64 | children: [
65 | Padding(
66 | padding: const EdgeInsets.only(top: 20.0),
67 | child: GestureDetector(
68 | onTap: () async {
69 | TimeOfDay? newTime = await showTimePicker(
70 | context: context,
71 | initialTime: TimeOfDay.now(),
72 | );
73 | if (newTime != null) {
74 | var now = DateTime.now();
75 | var newdateTime = DateTime(
76 | now.year,
77 | now.month,
78 | now.day,
79 | newTime.hour,
80 | newTime.minute,
81 | );
82 | if (mounted) {
83 | setState(() {
84 | currenttime = newdateTime.toString();
85 | });
86 | }
87 | }
88 | },
89 | child: Container(
90 | height: 60,
91 | child: Center(
92 | child: Text(
93 | currenttime,
94 | style: GoogleFonts.nunitoSans(
95 | color: Colors.black,
96 | fontWeight: FontWeight.bold,
97 | fontSize: 25),
98 | ))),
99 | ),
100 | ),
101 | Container(
102 | child: Padding(
103 | padding: const EdgeInsets.only(
104 | left: 30.0, right: 30),
105 | child: TextField(
106 | controller: titlecontroller,
107 | decoration: InputDecoration(
108 | enabledBorder: UnderlineInputBorder(
109 | borderSide: BorderSide(
110 | color: Colors.transparent)),
111 | hintText: "Title",
112 | hintStyle: GoogleFonts.nunitoSans(
113 | color: Colors.black,
114 | fontWeight: FontWeight.normal,
115 | fontSize: 18),
116 | ),
117 | style: GoogleFonts.nunitoSans(
118 | color: Colors.black,
119 | fontWeight: FontWeight.normal,
120 | fontSize: 18),
121 | ),
122 | ),
123 | ),
124 | Container(
125 | child: Padding(
126 | padding: const EdgeInsets.only(
127 | left: 30.0, right: 30),
128 | child: TextField(
129 | controller: descontroller,
130 | decoration: InputDecoration(
131 | enabledBorder: UnderlineInputBorder(
132 | borderSide: BorderSide(
133 | color: Colors.transparent)),
134 | hintText: "Description",
135 | hintStyle: GoogleFonts.nunitoSans(
136 | color: Colors.black,
137 | fontWeight: FontWeight.normal,
138 | fontSize: 18),
139 | ),
140 | style: GoogleFonts.nunitoSans(
141 | color: Colors.black,
142 | fontWeight: FontWeight.normal,
143 | fontSize: 18),
144 | ),
145 | ),
146 | ),
147 | Spacer(),
148 | GestureDetector(
149 | onTap: () async {
150 | var respectsQuery = FirebaseFirestore.instance
151 | .collection('Alarms');
152 | var querySnapshot = await respectsQuery.get();
153 | var totalEquals = querySnapshot.docs.length;
154 |
155 | var alarm = Alarm(
156 | id: totalEquals++,
157 | isactive: 1,
158 | title: titlecontroller.text.toString(),
159 | description:
160 | descontroller.text.toString(),
161 | datatime: DateTime.parse(currenttime));
162 | firebase_app.adddata(alarm);
163 | titlecontroller.clear();
164 | descontroller.clear();
165 |
166 | Navigator.pop(context);
167 | },
168 | child: Container(
169 | height: 50,
170 | width: 100,
171 | decoration: BoxDecoration(
172 | gradient: LinearGradient(
173 | colors: [Colors.pink, Colors.purple]),
174 | borderRadius: BorderRadius.circular(10)),
175 | child: Center(
176 | child: Text(
177 | "Set Alarm",
178 | style: GoogleFonts.nunitoSans(
179 | color: Colors.white,
180 | fontWeight: FontWeight.normal,
181 | ),
182 | ),
183 | ),
184 | ),
185 | ),
186 | SizedBox(
187 | height: 20,
188 | ),
189 | ],
190 | ),
191 | ),
192 | );
193 | },
194 | );
195 | },
196 | child: Icon(Icons.add),
197 | )
198 | : SizedBox(),
199 | ),
200 | appBar: AppBar(
201 | elevation: 0,
202 | centerTitle: true,
203 | backgroundColor: Colors.transparent,
204 | title: Text(
205 | "Clock",
206 | style: GoogleFonts.nunitoSans(
207 | color: Colors.white, fontWeight: FontWeight.bold),
208 | ),
209 | ),
210 | backgroundColor: Colors.black,
211 | body: Column(
212 | children: [
213 | Padding(
214 | padding: const EdgeInsets.only(top: 30.0, left: 10, right: 10),
215 | child: Row(
216 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
217 | children: items
218 | .map((currentmenutype) => Row_Container(currentmenutype))
219 | .toList()),
220 | ),
221 | Padding(
222 | padding: const EdgeInsets.only(top: 50.0, bottom: 20),
223 | child: Container(
224 | color: Colors.transparent,
225 | alignment: Alignment.center,
226 | child: Consumer(
227 | builder: (context, value, child) => value.title == "Alarm"
228 | ? Column(
229 | children: [
230 | CLock(),
231 | SizedBox(height: 20),
232 | Text(
233 | date,
234 | style: GoogleFonts.nunitoSans(
235 | color: Colors.white,
236 | fontWeight: FontWeight.bold,
237 | fontSize: 25),
238 | ),
239 | Text(
240 | day,
241 | style: GoogleFonts.nunitoSans(
242 | color: Colors.grey,
243 | fontWeight: FontWeight.bold,
244 | fontSize: 15),
245 | ),
246 | ],
247 | )
248 | : SizedBox())),
249 | ),
250 | Consumer(
251 | builder: (context, value, child) => value.title == "Alarm"
252 | ? Expanded(
253 | child: Container(
254 | child: StreamBuilder(
255 | stream: FirebaseFirestore.instance
256 | .collection("Alarms")
257 | .where("active", isEqualTo: 1)
258 | .snapshots(),
259 | builder: (context, snapshot) {
260 | if (snapshot.connectionState ==
261 | ConnectionState.waiting) {
262 | return Center(
263 | child: CircularProgressIndicator(
264 | color: Colors.blue,
265 | ),
266 | );
267 | } else {
268 | return ListView.builder(
269 | itemCount: snapshot.data!.docs.length,
270 | itemBuilder: (context, index) {
271 | Timestamp timestamp = snapshot.data!
272 | .docs[index]['alarm_time'] as Timestamp;
273 | final DateTime dateTime =
274 | timestamp.toDate();
275 | final dateString =
276 | DateFormat('hh:mm a').format(dateTime);
277 | final dayString =
278 | DateFormat.yMMMd().format(dateTime);
279 | // final day = DateFormat.yMMMd(dateTime);
280 | return Padding(
281 | padding: const EdgeInsets.only(
282 | left: 30.0, right: 30, top: 30),
283 | child: Container(
284 | decoration: BoxDecoration(
285 | borderRadius:
286 | BorderRadius.circular(20),
287 | gradient: LinearGradient(colors: [
288 | Colors.pink,
289 | Colors.purple
290 | ])),
291 | width: double.infinity,
292 | height: 100,
293 | child: Padding(
294 | padding: const EdgeInsets.only(
295 | left: 8.0, right: 8),
296 | child: Row(
297 | children: [
298 | SizedBox(
299 | width: 20,
300 | ),
301 | Icon(Icons.alarm,
302 | color: Colors.white,
303 | size: 20),
304 | SizedBox(
305 | width: 20,
306 | ),
307 | Column(
308 | mainAxisAlignment:
309 | MainAxisAlignment.center,
310 | crossAxisAlignment:
311 | CrossAxisAlignment.start,
312 | children: [
313 | Text(day,
314 | style: GoogleFonts
315 | .nunitoSans(
316 | color:
317 | Colors.white,
318 | fontSize: 20,
319 | fontWeight:
320 | FontWeight
321 | .bold)),
322 | SizedBox(
323 | width: 5,
324 | ),
325 | Text(dateString,
326 | style: GoogleFonts
327 | .nunitoSans(
328 | color:
329 | Colors.white,
330 | fontSize: 12,
331 | fontWeight:
332 | FontWeight
333 | .bold)),
334 | ],
335 | ),
336 | Spacer(),
337 | IconButton(
338 | onPressed: () {
339 | firebase_app.deletedata(
340 | snapshot.data!
341 | .docs[index]['id']);
342 | },
343 | icon: Icon(
344 | Icons.delete,
345 | color: Colors.white,
346 | ))
347 | ],
348 | ),
349 | ),
350 | ),
351 | );
352 | },
353 | );
354 | }
355 | })))
356 | : SizedBox(),
357 | ),
358 | Consumer(
359 | builder: (context, value, child) => value.title == "Timer"
360 | ? Expanded(child: Container(child: buildTimer()))
361 | : SizedBox()),
362 | Consumer(
363 | builder: (context, value, child) => value.title == "Watch"
364 | ? Expanded(child: Container(child: buildbutton()))
365 | : SizedBox()),
366 | ],
367 | ),
368 | );
369 | }
370 |
371 | Widget buildTimer() {
372 | return Column(children: [
373 | Row(
374 | mainAxisAlignment: MainAxisAlignment.center,
375 | children: [
376 | Column(
377 | children: [
378 | Padding(
379 | padding: EdgeInsets.all(20),
380 | child: Text(
381 | "HH",
382 | style: GoogleFonts.nunitoSans(
383 | color: Colors.white,
384 | fontWeight: FontWeight.bold,
385 | fontSize: 20),
386 | ),
387 | ),
388 | Consumer(
389 | builder: (context, value, child) => NumberPicker(
390 | textStyle: GoogleFonts.nunitoSans(color: Colors.white),
391 | selectedTextStyle: GoogleFonts.nunitoSans(
392 | color: Colors.red,
393 | fontWeight: FontWeight.bold,
394 | fontSize: 20),
395 | value: value.hour,
396 | minValue: 0,
397 | maxValue: 23,
398 | onChanged: (val) {
399 | value.sethour(val);
400 | value.startcountdown();
401 | }),
402 | )
403 | ],
404 | ),
405 | Column(
406 | children: [
407 | Padding(
408 | padding: EdgeInsets.all(20),
409 | child: Text(
410 | "MM",
411 | style: GoogleFonts.nunitoSans(
412 | color: Colors.white,
413 | fontWeight: FontWeight.bold,
414 | fontSize: 20),
415 | ),
416 | ),
417 | Consumer(
418 | builder: (context, value, child) => NumberPicker(
419 | textStyle: GoogleFonts.nunitoSans(color: Colors.white),
420 | selectedTextStyle: GoogleFonts.nunitoSans(
421 | color: Colors.red,
422 | fontWeight: FontWeight.bold,
423 | fontSize: 20),
424 | value: value.min,
425 | minValue: 0,
426 | maxValue: 60,
427 | onChanged: (val) {
428 | value.setmin(val);
429 | value.startcountdown();
430 | }),
431 | )
432 | ],
433 | ),
434 | Column(
435 | children: [
436 | Padding(
437 | padding: EdgeInsets.all(20),
438 | child: Text(
439 | "SS",
440 | style: GoogleFonts.nunitoSans(
441 | color: Colors.white,
442 | fontWeight: FontWeight.bold,
443 | fontSize: 20),
444 | ),
445 | ),
446 | Consumer(
447 | builder: (context, value, child) => NumberPicker(
448 | textStyle: GoogleFonts.nunitoSans(color: Colors.white),
449 | selectedTextStyle: GoogleFonts.nunitoSans(
450 | color: Colors.red,
451 | fontWeight: FontWeight.bold,
452 | fontSize: 20),
453 | value: value.seconds,
454 | minValue: 0,
455 | maxValue: 60,
456 | onChanged: (val) {
457 | value.setsec(val);
458 | value.startcountdown();
459 | }),
460 | )
461 | ],
462 | )
463 | ],
464 | ),
465 | SizedBox(
466 | height: 50,
467 | ),
468 | Consumer(
469 | builder: (context, value, child) => CircleAvatar(
470 | backgroundColor: Colors.green,
471 | radius: 90,
472 | child: CircleAvatar(
473 | radius: 85,
474 | backgroundColor: Colors.black,
475 | child: Text(
476 | "${value.totalsec}",
477 | style: GoogleFonts.nunitoSans(
478 | color: Colors.white,
479 | fontSize: 22,
480 | fontWeight: FontWeight.bold),
481 | ),
482 | )),
483 | ),
484 | Spacer(),
485 | Row(
486 | mainAxisAlignment: MainAxisAlignment.center,
487 | children: [
488 | GestureDetector(
489 | onTap: () {
490 | final countdown = Provider.of(context, listen: false);
491 | countdown.settimer();
492 | },
493 | child: Container(
494 | decoration: BoxDecoration(
495 | borderRadius: BorderRadius.circular(10),
496 | gradient: LinearGradient(
497 | colors: [Colors.blue[600]!, Colors.white12],
498 | )),
499 | child: Padding(
500 | padding: const EdgeInsets.all(8.0),
501 | child: Icon(Icons.play_arrow, color: Colors.white),
502 | )),
503 | ),
504 | SizedBox(width: 20),
505 | Consumer(
506 | builder: (context, value, child) => GestureDetector(
507 | onTap: () {
508 | value.stoptimer();
509 | },
510 | child: Container(
511 | decoration: BoxDecoration(
512 | borderRadius: BorderRadius.circular(10),
513 | gradient: LinearGradient(
514 | colors: [Colors.blue[600]!, Colors.white12],
515 | )),
516 | child: Padding(
517 | padding: const EdgeInsets.all(8.0),
518 | child: Icon(Icons.stop, color: Colors.white),
519 | )),
520 | ),
521 | ),
522 | ],
523 | ),
524 | SizedBox(
525 | height: 20,
526 | ),
527 | ]);
528 | }
529 |
530 | Widget buildbutton() {
531 | return Column(
532 | children: [
533 | Container(
534 | child: Consumer(
535 | builder: (context, timer, child) => CircleAvatar(
536 | radius: 120,
537 | backgroundColor: Colors.green,
538 | child: CircleAvatar(
539 | radius: 115,
540 | backgroundColor: Colors.black,
541 | child: Text(
542 | "${timer.hour} : ${timer.minute} : ${timer.seconds} ",
543 | style: GoogleFonts.nunitoSans(
544 | color: Colors.white,
545 | fontWeight: FontWeight.bold,
546 | fontSize: 30),
547 | ),
548 | ),
549 | ),
550 | ),
551 | ),
552 | Spacer(),
553 | Row(
554 | mainAxisAlignment: MainAxisAlignment.center,
555 | children: [
556 | GestureDetector(
557 | onTap: () {
558 | final settimer = Provider.of(context, listen: false);
559 | settimer.startTimer();
560 | },
561 | child: Container(
562 | decoration: BoxDecoration(
563 | borderRadius: BorderRadius.circular(10),
564 | gradient: LinearGradient(
565 | colors: [Colors.blue[600]!, Colors.white12],
566 | )),
567 | child: Padding(
568 | padding: const EdgeInsets.all(8.0),
569 | child: Icon(Icons.play_arrow, color: Colors.white),
570 | )),
571 | ),
572 | SizedBox(
573 | width: 20,
574 | ),
575 | GestureDetector(
576 | onTap: () {
577 | final settimer = Provider.of(context, listen: false);
578 | settimer.stopTimer();
579 | },
580 | child: Container(
581 | decoration: BoxDecoration(
582 | borderRadius: BorderRadius.circular(10),
583 | gradient: LinearGradient(
584 | colors: [Colors.blue[600]!, Colors.white12],
585 | )),
586 | child: Padding(
587 | padding: const EdgeInsets.all(8.0),
588 | child: Icon(Icons.stop, color: Colors.white),
589 | )),
590 | ),
591 | SizedBox(
592 | width: 20,
593 | ),
594 | GestureDetector(
595 | onTap: () {
596 | final settimer = Provider.of(context, listen: false);
597 | settimer.reset();
598 | },
599 | child: Container(
600 | decoration: BoxDecoration(
601 | borderRadius: BorderRadius.circular(10),
602 | gradient: LinearGradient(
603 | colors: [Colors.blue[600]!, Colors.white12],
604 | )),
605 | child: Padding(
606 | padding: const EdgeInsets.all(8.0),
607 | child: Icon(Icons.refresh, color: Colors.white),
608 | )),
609 | ),
610 | ],
611 | ),
612 | SizedBox(
613 | height: 30,
614 | ),
615 | GestureDetector(
616 | onTap: () {
617 | final settimer = Provider.of(context, listen: false);
618 | settimer.continueTimer();
619 | },
620 | child: Container(
621 | height: 50,
622 | width: 160,
623 | decoration: BoxDecoration(
624 | borderRadius: BorderRadius.circular(10),
625 | gradient: LinearGradient(
626 | colors: [Colors.blue[600]!, Colors.white12],
627 | )),
628 | child: Center(
629 | child: Text(
630 | "Continue",
631 | style: GoogleFonts.nunitoSans(color: Colors.white),
632 | ))),
633 | ),
634 | SizedBox(
635 | height: 30,
636 | ),
637 | ],
638 | );
639 | }
640 |
641 | Widget Row_Container(MenuType currentmenutype) {
642 | return Padding(
643 | padding: const EdgeInsets.only(left: 8.0),
644 | child: Consumer(
645 | builder: (_, value, __) => GestureDetector(
646 | onTap: () {
647 | var final_menu = Provider.of(context, listen: false);
648 | final_menu.update_fn(currentmenutype);
649 | },
650 | child: Container(
651 | height: 50,
652 | width: 100,
653 | decoration: BoxDecoration(
654 | borderRadius: BorderRadius.circular(10),
655 | color: currentmenutype.title == value.title
656 | ? Colors.grey[900]!
657 | : Colors.transparent),
658 | child: Row(
659 | mainAxisAlignment: MainAxisAlignment.center,
660 | children: [
661 | SizedBox(
662 | width: 5,
663 | ),
664 | Icon(currentmenutype.icon?.icon, color: currentmenutype.color),
665 | SizedBox(
666 | width: 5,
667 | ),
668 | Text(
669 | currentmenutype.title.toString(),
670 | style: GoogleFonts.nunitoSans(
671 | color: Colors.white,
672 | fontWeight: FontWeight.bold,
673 | ),
674 | ),
675 | ],
676 | ),
677 | ),
678 | ),
679 | ),
680 | );
681 | }
682 | }
683 |
--------------------------------------------------------------------------------
/timer_app/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:firebase_core/firebase_core.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_local_notifications/flutter_local_notifications.dart';
5 | import 'package:google_fonts/google_fonts.dart';
6 | import 'package:lottie/lottie.dart';
7 | import 'package:provider/provider.dart';
8 | import 'package:timer_app/models/menu_type.dart';
9 | import 'package:timer_app/providers/countdown.dart';
10 | import 'package:timer_app/providers/firebase.dart';
11 | import 'package:timer_app/providers/timer.dart';
12 | import 'Screen/homeScreen.dart';
13 |
14 | final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
15 | FlutterLocalNotificationsPlugin();
16 | void main() async {
17 | WidgetsFlutterBinding.ensureInitialized();
18 | await Firebase.initializeApp();
19 |
20 | var initializationSettingsAndroid = AndroidInitializationSettings('clock');
21 | var initializationSettingsIOS = IOSInitializationSettings(
22 | requestAlertPermission: true,
23 | requestBadgePermission: true,
24 | requestSoundPermission: true,
25 | onDidReceiveLocalNotification: (
26 | int id,
27 | String? title,
28 | String? body,
29 | String? payload,
30 | ) async {});
31 | var initializationSettings = InitializationSettings(
32 | android: initializationSettingsAndroid,
33 | iOS: initializationSettingsIOS,
34 | );
35 | await flutterLocalNotificationsPlugin.initialize(initializationSettings,
36 | onSelectNotification: (String? payload) async {
37 | if (payload != null) {
38 | debugPrint('notification payload: $payload');
39 | }
40 | // selectedNotificationPayload = payload;
41 | // selectNotificationSubject.add(payload);
42 | });
43 | runApp(const MyApp());
44 | }
45 |
46 | class MyApp extends StatelessWidget {
47 | const MyApp({Key? key}) : super(key: key);
48 | @override
49 | Widget build(BuildContext context) {
50 | return MaterialApp(
51 | title: 'Flutter Demo',
52 | theme: ThemeData(
53 | primarySwatch: Colors.blue,
54 | ),
55 | home: const SplashScreen(),
56 | );
57 | }
58 | }
59 |
60 | class SplashScreen extends StatefulWidget {
61 | const SplashScreen({Key? key}) : super(key: key);
62 |
63 | @override
64 | _SplashScreenState createState() => _SplashScreenState();
65 | }
66 |
67 | class _SplashScreenState extends State {
68 | @override
69 | void initState() {
70 | super.initState();
71 | Timer(
72 | const Duration(seconds: 5),
73 | () => Navigator.pushReplacement(
74 | context,
75 | MaterialPageRoute(
76 | builder: (b) => MultiProvider(providers: [
77 | ChangeNotifierProvider(
78 | create: (context) => MenuType(title: "Alarm")),
79 | ChangeNotifierProvider(
80 | create: (context) => Firebase_App()),
81 | ChangeNotifierProvider(create: (context) => StopWatch()),
82 | ChangeNotifierProvider(create: (context) => Countdown()),
83 | ], child: const HomeScreen()))));
84 | }
85 |
86 | @override
87 | Widget build(BuildContext context) {
88 | return Scaffold(
89 | backgroundColor: Colors.black,
90 | body: Column(
91 | mainAxisAlignment: MainAxisAlignment.center,
92 | children: [
93 | Spacer(),
94 | Center(
95 | child: Container(
96 | height: 200,
97 | child: Lottie.network(
98 | "https://assets5.lottiefiles.com/packages/lf20_qgb9xga3.json")),
99 | ),
100 | Text(
101 | "Ready | Set Go",
102 | style: GoogleFonts.nunitoSans(
103 | color: Colors.white, fontSize: 18, fontWeight: FontWeight.bold),
104 | ),
105 | Spacer(),
106 | Text(
107 | "Set your timer to reach your goal",
108 | style: GoogleFonts.nunitoSans(color: Colors.grey, fontSize: 18),
109 | ),
110 | Text(
111 | "Get start quickly",
112 | style: GoogleFonts.nunitoSans(color: Colors.grey, fontSize: 18),
113 | ),
114 | SizedBox(
115 | height: 20,
116 | ),
117 | ],
118 | ),
119 | );
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/timer_app/lib/models/alarm.dart:
--------------------------------------------------------------------------------
1 |
2 | class Alarm {
3 | Alarm({
4 | required this.id,
5 | required this.title,
6 | required this.description,
7 | this.isactive,
8 | required this.datatime,
9 | });
10 |
11 | int id;
12 | String title;
13 | String description;
14 | int? isactive;
15 | DateTime datatime;
16 |
17 | // factory Alarm.fromJson(Map json) => Alarm(
18 | // id: json["id"],
19 | // title: json["title"],
20 | // description: json["description"],
21 | // isactive: json["isactive"],
22 | // datatime: DateTime.parse(json["datatime"]),
23 | // );
24 |
25 | // Map toJson() => {
26 | // "id": id,
27 | // "title": title,
28 | // "description": description,
29 | // "isactive": isactive,
30 | // "datatime": datatime.toIso8601String(),
31 | // };
32 | }
33 |
34 | // List alarm_items = [
35 | // Alarm(DateTime.now(), "Mon-Fri", "Regulae Class", true),
36 | // Alarm(DateTime.now(), "Sat", "Gym", true),
37 | // Alarm(DateTime.now(), "Sun", "Outing", true),
38 | // ];
39 |
--------------------------------------------------------------------------------
/timer_app/lib/models/menu_type.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | class MenuType extends ChangeNotifier {
4 | String? title;
5 | Icon? icon;
6 | Color? color;
7 | MenuType({this.title, this.icon, this.color});
8 |
9 | update_fn(MenuType menuType) {
10 | this.title = menuType.title;
11 | this.icon = menuType.icon;
12 | this.color = menuType.color;
13 | print(title);
14 | print(icon);
15 | notifyListeners();
16 | }
17 |
18 | }
19 |
20 | List items = [
21 | MenuType(title: "Alarm", icon: Icon(Icons.alarm), color: Colors.amber),
22 | MenuType(title: "Timer", icon: Icon(Icons.timelapse), color: Colors.blue),
23 | MenuType(title: "Watch", icon: Icon(Icons.lock_clock), color: Colors.red)
24 | ];
25 |
26 |
--------------------------------------------------------------------------------
/timer_app/lib/providers/countdown.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'dart:async';
3 |
4 | class Countdown extends ChangeNotifier {
5 | int _seconds = 0;
6 | int _hour = 0;
7 | int _min = 0;
8 |
9 | int _totalsec = 0;
10 | Timer? _timer;
11 | int get seconds => _seconds;
12 | int get hour => _hour;
13 | int get min => _min;
14 | int get totalsec => _totalsec;
15 | void setsec(int value) {
16 | _seconds = value;
17 |
18 | notifyListeners();
19 | }
20 |
21 | void sethour(int value) {
22 | _hour = value;
23 |
24 | notifyListeners();
25 | }
26 |
27 | void setmin(int value) {
28 | _min = value;
29 |
30 | notifyListeners();
31 | }
32 |
33 | void startcountdown() {
34 | int tototalmin = _min * 60;
35 | int totalhour = _hour * 60 * 60;
36 | _totalsec = totalhour + tototalmin + _seconds;
37 | notifyListeners();
38 | }
39 |
40 | void settimer() {
41 | int tototalmin = _min * 60;
42 | int totalhour = _hour * 60 * 60;
43 | _totalsec = totalhour + tototalmin + _seconds;
44 |
45 | _timer = Timer.periodic(Duration(seconds: 1), (timer) {
46 | if (_totalsec > 0) {
47 | _totalsec--;
48 | } else if (_totalsec == 0) {
49 | _totalsec = 0;
50 | }
51 |
52 | notifyListeners();
53 | });
54 | }
55 |
56 | void stoptimer() {
57 | _timer!.cancel();
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/timer_app/lib/providers/db_helper.dart:
--------------------------------------------------------------------------------
1 | // import 'package:flutter/cupertino.dart';
2 | // import 'package:sqflite/sqflite.dart';
3 | // import 'package:timer_app/models/alarm.dart';
4 |
5 | // class DatabaseHelper extends ChangeNotifier {
6 | // List alarms_data = [];
7 | // //global initialization of table name,version
8 | // static final db_name = "alarm.db";
9 | // static final db_version = 1;
10 |
11 | // static final tablename = "Alarm_Table";
12 |
13 | // static final columnid = "id";
14 | // static final columnname = "title";
15 | // static final columndetail = "description";
16 | // static final columndatetime = "alarmdatetime";
17 | // static final columnactive = "isactive";
18 |
19 | // //checking the database if null create a new database
20 |
21 | // static Database? _database;
22 | // Future get database async {
23 | // if (_database != null) {
24 | // return _database!;
25 | // } else {
26 | // _database = await initializedatabase();
27 | // }
28 | // return _database!;
29 | // }
30 |
31 | // Future initializedatabase() async {
32 | // var dir = await getDatabasesPath();
33 | // var path = dir + db_name;
34 |
35 | // var database =
36 | // await openDatabase(path, version: db_version, onCreate: (db, version) {
37 | // //creating a table
38 | // db.execute('''
39 | // CREATE TABLE $tablename (
40 | // $columnid INTEGER PRIMARY KEY autoincrement,
41 | // $columnname TEXT NOT NULL,
42 | // $columndatetime TEXT NOT NULL,
43 | // $columndetail TEXT NOT NULL,
44 | // $columnactive INTEGER)
45 | // ''');
46 | // });
47 | // return database;
48 | // }
49 |
50 | // Future insertAlarm(Alarm alarmInfo) async {
51 | // var db = await this.database;
52 | // Map row = {
53 | // columnid: alarmInfo.id,
54 | // columnname: alarmInfo.title,
55 | // columndetail: alarmInfo.description,
56 | // columnactive: alarmInfo.isactive,
57 | // columndatetime: alarmInfo.datatime.toIso8601String(),
58 | // };
59 | // final result = await db.insert(tablename, row);
60 | // // print(result);
61 |
62 | // return alarmInfo;
63 | // }
64 |
65 | // void print_table() async {
66 | // //How to print table
67 | // print("Ramesh");
68 | // var db = await this.database;
69 | // (await db.query(tablename, columns: [
70 | // columnid,
71 | // columndatetime,
72 | // columnactive,
73 | // columndetail,
74 | // columnname
75 | // ]))
76 | // .forEach((row) {
77 | // // print(row.values);
78 | // });
79 | // }
80 |
81 | // void delete_table() async {
82 | // //how to delete table
83 | // var db = await this.database;
84 | // await db.execute("DROP TABLE IF EXISTS $tablename");
85 | // }
86 |
87 | // getAlarm(Alarm alarm) async {
88 | // alarms_data.add(alarm);
89 | // print(alarms_data);
90 | // // var db = await this.database;
91 | // // var result = await db.query(tablename);
92 | // // print(result);
93 | // // result.forEach((element) {
94 | // // // var alarminfo = Alarm.fromJson(element);
95 | // // // print(element);
96 | // // // print(element['title']);
97 | // // alarms_data.add(Alarm(
98 | // // id: 1,
99 | // // isactive:1,
100 | // // title: element['title'].toString(),
101 | // // description: element['description'].toString(),
102 | // // datatime: DateTime.now()));
103 | // // });
104 | // notifyListeners();
105 | // }
106 | // }
107 | // if (seconds != 0) {
108 | // Timer.periodic(Duration(seconds: 1), (timer) {
109 | // setState(() {
110 | // if (seconds == 0 && min != 0) {
111 | // seconds = 60;
112 | // } else if (min == 0) {
113 | // seconds = 0;
114 | // } else {
115 | // seconds--;
116 | // }
117 | // });
118 | // });
119 | // }
120 | // if (min != 0) {
121 | // Timer.periodic(Duration(minutes: 1), (timer) {
122 | // setState(() {
123 | // if (min == 0 && hour != 0) {
124 | // min = 60;
125 | // } else if (hour == 0) {
126 | // min == 0;
127 | // } else {
128 | // min--;
129 | // }
130 | // });
131 | // });
132 | // }
133 | // if (hour != 0) {
134 | // Timer.periodic(Duration(hours: 1), (timer) {
135 | // setState(() {
136 | // if (hour == 0) {
137 | // hour = 0;
138 | // } else {
139 | // hour--;
140 | // }
141 | // });
142 | // });
143 | // }
144 |
--------------------------------------------------------------------------------
/timer_app/lib/providers/firebase.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:cloud_firestore/cloud_firestore.dart';
4 | import 'package:flutter/cupertino.dart';
5 | import 'package:flutter_local_notifications/flutter_local_notifications.dart';
6 |
7 | import 'package:timer_app/models/alarm.dart';
8 |
9 | import '../main.dart';
10 |
11 | class Firebase_App extends ChangeNotifier {
12 | adddata(Alarm alarm) async {
13 | FirebaseFirestore.instance
14 | .collection("Alarms")
15 | .doc(alarm.id.toString())
16 | .set({
17 | "id": alarm.id,
18 | "title": alarm.title,
19 | "description": alarm.description,
20 | "alarm_time": alarm.datatime,
21 | "active": alarm.isactive,
22 | }).whenComplete(() async {
23 | var scheduledtime = alarm.datatime;
24 | var endtime = alarm.datatime.add(Duration(minutes: 1));
25 | var androidPlatformChannelSpecifics = AndroidNotificationDetails(
26 | 'Alarm',
27 | 'Knock - Knock Alarm',
28 | channelDescription: 'Setted up for alamr notification',
29 | icon: 'clock',
30 | largeIcon: const DrawableResourceAndroidBitmap('clock'),
31 | );
32 |
33 | var platformChannelSpecifies = NotificationDetails(
34 | android: androidPlatformChannelSpecifics, iOS: null);
35 | await flutterLocalNotificationsPlugin
36 | .schedule(
37 | alarm.id,
38 | alarm.title,
39 | alarm.description,
40 | scheduledtime,
41 | platformChannelSpecifies,
42 | )
43 | .whenComplete(() {
44 | Timer.periodic(Duration(seconds: 1), (timer) {
45 | final currentTime = DateTime.now();
46 | if (currentTime.isAfter(scheduledtime.add(Duration(seconds: 4))) &&
47 | currentTime.isBefore(endtime)) {
48 | print("Hello World");
49 | FirebaseFirestore.instance
50 | .collection("Alarms")
51 | .doc(alarm.id.toString())
52 | .update({
53 | "active": 0,
54 | });
55 | }
56 | });
57 | });
58 | });
59 | notifyListeners();
60 | }
61 |
62 | deletedata(int id) async {
63 | FirebaseFirestore.instance
64 | .collection("Alarms")
65 | .doc(id.toString())
66 | .delete()
67 | .whenComplete(() async {
68 | await flutterLocalNotificationsPlugin.cancel(id);
69 | print("Cancelled");
70 | });
71 |
72 | notifyListeners();
73 | }
74 |
75 |
76 | }
77 |
--------------------------------------------------------------------------------
/timer_app/lib/providers/timer.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:flutter/foundation.dart';
4 |
5 | class StopWatch with ChangeNotifier {
6 | Timer? _timer;
7 | int _hour = 0;
8 | int _minute = 0;
9 | int _seconds = 0;
10 | bool _startEnable = true;
11 | bool _stopEnable = false;
12 | bool _continueEnable = false;
13 |
14 | int get hour => _hour;
15 | int get minute => _minute;
16 | int get seconds => _seconds;
17 | bool get startEnable => _startEnable;
18 | bool get stopEnable => _stopEnable;
19 | bool get continueEnable => _continueEnable;
20 |
21 | void startTimer() {
22 | _hour = 0;
23 | _minute = 0;
24 | _seconds = 0;
25 | _startEnable = false;
26 | _stopEnable = true;
27 | _continueEnable = false;
28 |
29 | _timer = Timer.periodic(Duration(seconds: 1), (timer) {
30 | if (_seconds < 59) {
31 | _seconds++;
32 | } else if (_seconds == 59) {
33 | _seconds = 0;
34 | if (_minute == 59) {
35 | _hour++;
36 | _minute = 0;
37 | } else {
38 | _minute++;
39 | }
40 | }
41 |
42 | notifyListeners();
43 | });
44 | }
45 |
46 | void stopTimer() {
47 | if (_startEnable == false) {
48 | _startEnable = true;
49 | _continueEnable = true;
50 | _stopEnable = false;
51 | _timer!.cancel();
52 | }
53 | notifyListeners();
54 | }
55 |
56 | void continueTimer() {
57 | _startEnable = false;
58 | _stopEnable = true;
59 | _continueEnable = false;
60 |
61 | _timer = Timer.periodic(Duration(seconds: 1), (timer) {
62 | if (_seconds < 59) {
63 | _seconds++;
64 | } else if (_seconds == 59) {
65 | _seconds = 0;
66 | if (_minute == 59) {
67 | _hour++;
68 | _minute = 0;
69 | } else {
70 | _minute++;
71 | }
72 | }
73 |
74 | notifyListeners();
75 | });
76 | }
77 |
78 | void reset() {
79 | _seconds = 0;
80 | _hour = 0;
81 | _minute = 0;
82 | notifyListeners();
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/timer_app/lib/widgets/clock_paint.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import "dart:math";
3 | import 'package:flutter/material.dart';
4 |
5 | class ClockPainter extends CustomPainter {
6 | DateTime dateTime = DateTime.now();
7 | @override
8 | void paint(Canvas canvas, Size size) {
9 | var centerX = size.width / 2;
10 | var centerY = size.width / 2;
11 | var center = Offset(centerX, centerY);
12 | var radius = min(centerX, centerY);
13 | //full circle
14 | final circle_paint = Paint()..color = Colors.white;
15 | canvas.drawCircle(center, radius, circle_paint);
16 | //seconds line
17 | final sec_line = Paint()
18 |
19 | // ignore: prefer_const_constructors
20 | ..shader = RadialGradient(
21 | colors: const [Colors.pink, Colors.purple],
22 | ).createShader(Rect.fromCircle(
23 | center: center,
24 | radius: radius,
25 | ))
26 | ..strokeWidth = 4
27 | ..strokeCap = StrokeCap.round;
28 | //seconds
29 | var secX = centerX + 50 * cos(dateTime.second * 6 * pi / 180);
30 | var secY = centerY + 50 * sin(dateTime.second * 6 * pi / 180);
31 | canvas.drawLine(center, Offset(secX, secY), sec_line);
32 | //hour line
33 | final hr_line = Paint()
34 | // ignore: prefer_const_constructors
35 | ..shader = RadialGradient(
36 | colors: const [Colors.blue, Colors.blueAccent],
37 | ).createShader(Rect.fromCircle(
38 | center: center,
39 | radius: radius,
40 | ))
41 | ..strokeWidth = 5
42 | ..strokeCap = StrokeCap.round;
43 | //hour
44 | var hrX = centerX +
45 | 80 * cos((dateTime.hour * 30 + dateTime.minute * 0.5) * pi / 180);
46 | var hrY = centerY +
47 | 80 * sin((dateTime.hour * 30 + dateTime.minute * 0.5) * pi / 180);
48 |
49 | canvas.drawLine(center, Offset(hrX, hrY), hr_line);
50 | //min line
51 | final min_line = Paint()
52 | // ignore: prefer_const_constructors
53 | ..shader = RadialGradient(
54 | colors: const [Colors.orange, Colors.red],
55 | ).createShader(Rect.fromCircle(
56 | center: center,
57 | radius: radius,
58 | ))
59 | ..strokeWidth = 4
60 | ..strokeCap = StrokeCap.round;
61 |
62 | //minute
63 | var minX = centerX + 70 * cos(dateTime.minute * 6 * pi / 180);
64 | var minY = centerY + 70 * sin(dateTime.minute * 6 * pi / 180);
65 | canvas.drawLine(center, Offset(minX, minY), min_line);
66 |
67 | //inner cirlce
68 |
69 | final center_paint = Paint()..color = Colors.amber;
70 | canvas.drawCircle(center, 12, center_paint);
71 | }
72 |
73 | @override
74 | bool shouldRepaint(covariant CustomPainter oldDelegate) {
75 | return true;
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/timer_app/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: timer_app
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `flutter pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | # Dependencies specify other packages that your package needs in order to work.
24 | # To automatically upgrade your package dependencies to the latest versions
25 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
26 | # dependencies can be manually updated by changing the version numbers below to
27 | # the latest version available on pub.dev. To see which dependencies have newer
28 | # versions available, run `flutter pub outdated`.
29 | dependencies:
30 | cloud_firestore: ^3.1.6
31 | cupertino_icons: ^1.0.2
32 | firebase: ^9.0.2
33 | firebase_core: ^1.11.0
34 | flutter:
35 | sdk: flutter
36 | flutter_local_notifications: ^9.2.0
37 | google_fonts: ^2.2.0
38 | intl: ^0.17.0
39 | lottie: ^1.2.1
40 | numberpicker: ^2.1.1
41 | provider: ^6.0.2
42 | time_picker: ^0.0.2
43 |
44 | dev_dependencies:
45 | flutter_lints: ^1.0.0
46 | flutter_test:
47 | sdk: flutter
48 |
49 | # For information on the generic Dart part of this file, see the
50 | # following page: https://dart.dev/tools/pub/pubspec
51 | # The following section is specific to Flutter.
52 | flutter:
53 |
54 | # The following line ensures that the Material Icons font is
55 | # included with your application, so that you can use the icons in
56 | # the material Icons class.
57 | uses-material-design: true
58 | # To add assets to your application, add an assets section, like this:
59 | # assets:
60 | # - images/a_dot_burr.jpeg
61 | # - images/a_dot_ham.jpeg
62 | # An image asset can refer to one or more resolution-specific "variants", see
63 | # https://flutter.dev/assets-and-images/#resolution-aware.
64 | # For details regarding adding assets from package dependencies, see
65 | # https://flutter.dev/assets-and-images/#from-packages
66 | # To add custom fonts to your application, add a fonts section here,
67 | # in this "flutter" section. Each entry in this list should have a
68 | # "family" key with the font family name, and a "fonts" key with a
69 | # list giving the asset and other descriptors for the font. For
70 | # example:
71 | # fonts:
72 | # - family: Schyler
73 | # fonts:
74 | # - asset: fonts/Schyler-Regular.ttf
75 | # - asset: fonts/Schyler-Italic.ttf
76 | # style: italic
77 | # - family: Trajan Pro
78 | # fonts:
79 | # - asset: fonts/TrajanPro.ttf
80 | # - asset: fonts/TrajanPro_Bold.ttf
81 | # weight: 700
82 | #
83 | # For details regarding fonts from package dependencies,
84 | # see https://flutter.dev/custom-fonts/#from-packages
85 |
--------------------------------------------------------------------------------
/timer_app/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:timer_app/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/timer_app/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/web/favicon.png
--------------------------------------------------------------------------------
/timer_app/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/timer_app/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/timer_app/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/timer_app/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveeramesh/clock_app/633416e018fe226eb9eb4b5d9dfeaa8f5fb9ba38/timer_app/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/timer_app/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | timer_app
30 |
31 |
32 |
33 |
36 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/timer_app/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "timer_app",
3 | "short_name": "timer_app",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------