├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── android
├── app
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── time_table_app
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── animations.md
├── assets
└── icon.png
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── 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
│ └── main.m
├── lib
├── main.dart
└── sections
│ ├── ItCsBms.dart
│ ├── classespage.dart
│ ├── cms.dart
│ ├── commerce.dart
│ └── sections.dart
├── pubspec.lock
├── pubspec.yaml
├── release.bat
├── screenshots
├── 0.png
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
└── 8.png
└── test
└── widget_test.dart
/.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 | # Visual Studio Code related
19 | .vscode/
20 |
21 | # Flutter/Dart/Pub related
22 | **/doc/api/
23 | .dart_tool/
24 | .flutter-plugins
25 | .packages
26 | .pub-cache/
27 | .pub/
28 | /build/
29 |
30 | # Android related
31 | **/android/**/gradle-wrapper.jar
32 | **/android/.gradle
33 | **/android/captures/
34 | **/android/gradlew
35 | **/android/gradlew.bat
36 | **/android/local.properties
37 | **/android/**/GeneratedPluginRegistrant.java
38 |
39 | # iOS/XCode related
40 | **/ios/**/*.mode1v3
41 | **/ios/**/*.mode2v3
42 | **/ios/**/*.moved-aside
43 | **/ios/**/*.pbxuser
44 | **/ios/**/*.perspectivev3
45 | **/ios/**/*sync/
46 | **/ios/**/.sconsign.dblite
47 | **/ios/**/.tags*
48 | **/ios/**/.vagrant/
49 | **/ios/**/DerivedData/
50 | **/ios/**/Icon?
51 | **/ios/**/Pods/
52 | **/ios/**/.symlinks/
53 | **/ios/**/profile
54 | **/ios/**/xcuserdata
55 | **/ios/.generated/
56 | **/ios/Flutter/App.framework
57 | **/ios/Flutter/Flutter.framework
58 | **/ios/Flutter/Generated.xcconfig
59 | **/ios/Flutter/app.flx
60 | **/ios/Flutter/app.zip
61 | **/ios/Flutter/flutter_assets/
62 | **/ios/ServiceDefinitions.json
63 | **/ios/Runner/GeneratedPluginRegistrant.*
64 |
65 | # Exceptions to above rules.
66 | !**/ios/**/default.mode1v3
67 | !**/ios/**/default.mode2v3
68 | !**/ios/**/default.pbxuser
69 | !**/ios/**/default.perspectivev3
70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
71 |
--------------------------------------------------------------------------------
/.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: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Ashish Shetty
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 | # TimeTable app in flutter [WIP]
2 |
3 | ## A TimeTable app for my college.
4 |
5 | #### Latest build APKs
6 |
7 | * Checkout the latest release [here](https://github.com/Shetty073/Timetable-App-in-Flutter/releases)
8 |
9 | ### Backend
10 |
11 | * Backend has its own web based GUI console which makes managing timetable database very easy
12 | * Backend: PHP/MySQL[github link](https://github.com/Shetty073/backend-for-timetable-app)
13 |
14 | ## Getting Started
15 |
16 | #### App Structure
17 |
18 | ```
19 | -->main.dart
20 | -->sections.dart(branch)
21 | -->classespage.dart
22 | -->ItCsBms.dart(timetable)
23 | -->commerce.dart
24 | -->cms.dart(timetable)
25 | ```
26 |
27 | #### Screenshots
28 |
29 | > Will add latest screenshots soon
30 |
31 | #### License
32 |
33 | This project is lecensed under [MIT License](https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/master/LICENSE)
34 |
--------------------------------------------------------------------------------
/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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 |
27 | def keystoreProperties = new Properties()
28 | def keystorePropertiesFile = rootProject.file('key.properties')
29 | if (keystorePropertiesFile.exists()) {
30 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
31 | }
32 |
33 | android {
34 | compileSdkVersion 28
35 |
36 | lintOptions {
37 | disable 'InvalidPackage'
38 | }
39 |
40 | defaultConfig {
41 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
42 | applicationId "com.example.time_table_app"
43 | minSdkVersion 16
44 | targetSdkVersion 28
45 | versionCode flutterVersionCode.toInteger()
46 | versionName flutterVersionName
47 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
48 | }
49 |
50 | signingConfigs {
51 | release {
52 | keyAlias keystoreProperties['keyAlias']
53 | keyPassword keystoreProperties['keyPassword']
54 | storeFile file(keystoreProperties['storeFile'])
55 | storePassword keystoreProperties['storePassword']
56 | }
57 | }
58 | buildTypes {
59 | release {
60 | signingConfig signingConfigs.release
61 | minifyEnabled false
62 | useProguard true
63 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
64 | }
65 | }
66 | }
67 |
68 | flutter {
69 | source '../..'
70 | }
71 |
72 | dependencies {
73 | testImplementation 'junit:junit:4.12'
74 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
75 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
76 | }
77 |
--------------------------------------------------------------------------------
/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | ## Flutter wrapper
2 | -keep class io.flutter.app.** { *; }
3 | -keep class io.flutter.plugin.** { *; }
4 | -keep class io.flutter.util.** { *; }
5 | -keep class io.flutter.view.** { *; }
6 | -keep class io.flutter.** { *; }
7 | -keep class io.flutter.plugins.** { *; }
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
20 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/example/time_table_app/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.time_table_app;
2 |
3 | import android.os.Bundle;
4 | import io.flutter.app.FlutterActivity;
5 | import io.flutter.plugins.GeneratedPluginRegistrant;
6 |
7 | public class MainActivity extends FlutterActivity {
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | GeneratedPluginRegistrant.registerWith(this);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:3.4.2'
9 | }
10 | }
11 |
12 | allprojects {
13 | repositories {
14 | google()
15 | jcenter()
16 | }
17 | }
18 |
19 | rootProject.buildDir = '../build'
20 | subprojects {
21 | project.buildDir = "${rootProject.buildDir}/${project.name}"
22 | }
23 | subprojects {
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Jul 16 12:28:23 IST 2019
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-5.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/animations.md:
--------------------------------------------------------------------------------
1 | #### Refer: [Link to medium article](https://medium.com/flutter-community/everything-you-need-to-know-about-flutter-page-route-transition-9ef5c1b32823)
2 |
3 |
4 | ## Slide Transition
5 | ```dart
6 | class SlideRightRoute extends PageRouteBuilder {
7 | final Widget page;
8 | SlideRightRoute({this.page})
9 | : super(
10 | pageBuilder: (
11 | BuildContext context,
12 | Animation animation,
13 | Animation secondaryAnimation,
14 | ) =>
15 | page,
16 | transitionsBuilder: (
17 | BuildContext context,
18 | Animation animation,
19 | Animation secondaryAnimation,
20 | Widget child,
21 | ) =>
22 | SlideTransition(
23 | position: Tween(
24 | begin: const Offset(-1, 0),
25 | end: Offset.zero,
26 | ).animate(animation),
27 | child: child,
28 | ),
29 | );
30 | }
31 | ```
32 |
33 | ## Scale Transition
34 | ```dart
35 | class ScaleRoute extends PageRouteBuilder {
36 | final Widget page;
37 | ScaleRoute({this.page})
38 | : super(
39 | pageBuilder: (
40 | BuildContext context,
41 | Animation animation,
42 | Animation secondaryAnimation,
43 | ) =>
44 | page,
45 | transitionsBuilder: (
46 | BuildContext context,
47 | Animation animation,
48 | Animation secondaryAnimation,
49 | Widget child,
50 | ) =>
51 | ScaleTransition(
52 | scale: Tween(
53 | begin: 0.0,
54 | end: 1.0,
55 | ).animate(
56 | CurvedAnimation(
57 | parent: animation,
58 | curve: Curves.fastOutSlowIn,
59 | ),
60 | ),
61 | child: child,
62 | ),
63 | );
64 | }
65 | ```
66 |
67 | ## Rotation Transition
68 | ```dart
69 | class RotationRoute extends PageRouteBuilder {
70 | final Widget page;
71 | RotationRoute({this.page})
72 | : super(
73 | pageBuilder: (
74 | BuildContext context,
75 | Animation animation,
76 | Animation secondaryAnimation,
77 | ) =>
78 | page,
79 | transitionDuration: Duration(seconds: 1),
80 | transitionsBuilder: (
81 | BuildContext context,
82 | Animation animation,
83 | Animation secondaryAnimation,
84 | Widget child,
85 | ) =>
86 | RotationTransition(
87 | turns: Tween(
88 | begin: 0.0,
89 | end: 1.0,
90 | ).animate(
91 | CurvedAnimation(
92 | parent: animation,
93 | curve: Curves.linear,
94 | ),
95 | ),
96 | child: child,
97 | ),
98 | );
99 | }
100 | ```
101 |
102 | ## Size Transition
103 | ```dart
104 | class SizeRoute extends PageRouteBuilder {
105 | final Widget page;
106 | SizeRoute({this.page})
107 | : super(
108 | pageBuilder: (
109 | BuildContext context,
110 | Animation animation,
111 | Animation secondaryAnimation,
112 | ) =>
113 | page,
114 | transitionsBuilder: (
115 | BuildContext context,
116 | Animation animation,
117 | Animation secondaryAnimation,
118 | Widget child,
119 | ) =>
120 | Align(
121 | child: SizeTransition(
122 | sizeFactor: animation,
123 | child: child,
124 | ),
125 | ),
126 | );
127 | }
128 | ```
129 |
130 | ## Fade Transition
131 | ```dart
132 | class FadeRoute extends PageRouteBuilder {
133 | final Widget page;
134 | FadeRoute({this.page})
135 | : super(
136 | pageBuilder: (
137 | BuildContext context,
138 | Animation animation,
139 | Animation secondaryAnimation,
140 | ) =>
141 | page,
142 | transitionsBuilder: (
143 | BuildContext context,
144 | Animation animation,
145 | Animation secondaryAnimation,
146 | Widget child,
147 | ) =>
148 | FadeTransition(
149 | opacity: animation,
150 | child: child,
151 | ),
152 | );
153 | }
154 | ```
155 |
156 |
--------------------------------------------------------------------------------
/assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/assets/icon.png
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 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 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
22 | /* End PBXBuildFile section */
23 |
24 | /* Begin PBXCopyFilesBuildPhase section */
25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
26 | isa = PBXCopyFilesBuildPhase;
27 | buildActionMask = 2147483647;
28 | dstPath = "";
29 | dstSubfolderSpec = 10;
30 | files = (
31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
33 | );
34 | name = "Embed Frameworks";
35 | runOnlyForDeploymentPostprocessing = 0;
36 | };
37 | /* End PBXCopyFilesBuildPhase section */
38 |
39 | /* Begin PBXFileReference section */
40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
56 | /* End PBXFileReference section */
57 |
58 | /* Begin PBXFrameworksBuildPhase section */
59 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
60 | isa = PBXFrameworksBuildPhase;
61 | buildActionMask = 2147483647;
62 | files = (
63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
65 | );
66 | runOnlyForDeploymentPostprocessing = 0;
67 | };
68 | /* End PBXFrameworksBuildPhase section */
69 |
70 | /* Begin PBXGroup section */
71 | 9740EEB11CF90186004384FC /* Flutter */ = {
72 | isa = PBXGroup;
73 | children = (
74 | 3B80C3931E831B6300D905FE /* App.framework */,
75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
80 | );
81 | name = Flutter;
82 | sourceTree = "";
83 | };
84 | 97C146E51CF9000F007C117D = {
85 | isa = PBXGroup;
86 | children = (
87 | 9740EEB11CF90186004384FC /* Flutter */,
88 | 97C146F01CF9000F007C117D /* Runner */,
89 | 97C146EF1CF9000F007C117D /* Products */,
90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
91 | );
92 | sourceTree = "";
93 | };
94 | 97C146EF1CF9000F007C117D /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146EE1CF9000F007C117D /* Runner.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 97C146F01CF9000F007C117D /* Runner */ = {
103 | isa = PBXGroup;
104 | children = (
105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
107 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
110 | 97C147021CF9000F007C117D /* Info.plist */,
111 | 97C146F11CF9000F007C117D /* Supporting Files */,
112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
114 | );
115 | path = Runner;
116 | sourceTree = "";
117 | };
118 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 97C146F21CF9000F007C117D /* main.m */,
122 | );
123 | name = "Supporting Files";
124 | sourceTree = "";
125 | };
126 | /* End PBXGroup section */
127 |
128 | /* Begin PBXNativeTarget section */
129 | 97C146ED1CF9000F007C117D /* Runner */ = {
130 | isa = PBXNativeTarget;
131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
132 | buildPhases = (
133 | 9740EEB61CF901F6004384FC /* Run Script */,
134 | 97C146EA1CF9000F007C117D /* Sources */,
135 | 97C146EB1CF9000F007C117D /* Frameworks */,
136 | 97C146EC1CF9000F007C117D /* Resources */,
137 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
139 | );
140 | buildRules = (
141 | );
142 | dependencies = (
143 | );
144 | name = Runner;
145 | productName = Runner;
146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
147 | productType = "com.apple.product-type.application";
148 | };
149 | /* End PBXNativeTarget section */
150 |
151 | /* Begin PBXProject section */
152 | 97C146E61CF9000F007C117D /* Project object */ = {
153 | isa = PBXProject;
154 | attributes = {
155 | LastUpgradeCheck = 0910;
156 | ORGANIZATIONNAME = "The Chromium Authors";
157 | TargetAttributes = {
158 | 97C146ED1CF9000F007C117D = {
159 | CreatedOnToolsVersion = 7.3.1;
160 | };
161 | };
162 | };
163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
164 | compatibilityVersion = "Xcode 3.2";
165 | developmentRegion = English;
166 | hasScannedForEncodings = 0;
167 | knownRegions = (
168 | en,
169 | Base,
170 | );
171 | mainGroup = 97C146E51CF9000F007C117D;
172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
173 | projectDirPath = "";
174 | projectRoot = "";
175 | targets = (
176 | 97C146ED1CF9000F007C117D /* Runner */,
177 | );
178 | };
179 | /* End PBXProject section */
180 |
181 | /* Begin PBXResourcesBuildPhase section */
182 | 97C146EC1CF9000F007C117D /* Resources */ = {
183 | isa = PBXResourcesBuildPhase;
184 | buildActionMask = 2147483647;
185 | files = (
186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
191 | );
192 | runOnlyForDeploymentPostprocessing = 0;
193 | };
194 | /* End PBXResourcesBuildPhase section */
195 |
196 | /* Begin PBXShellScriptBuildPhase section */
197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
198 | isa = PBXShellScriptBuildPhase;
199 | buildActionMask = 2147483647;
200 | files = (
201 | );
202 | inputPaths = (
203 | );
204 | name = "Thin Binary";
205 | outputPaths = (
206 | );
207 | runOnlyForDeploymentPostprocessing = 0;
208 | shellPath = /bin/sh;
209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
210 | };
211 | 9740EEB61CF901F6004384FC /* Run Script */ = {
212 | isa = PBXShellScriptBuildPhase;
213 | buildActionMask = 2147483647;
214 | files = (
215 | );
216 | inputPaths = (
217 | );
218 | name = "Run Script";
219 | outputPaths = (
220 | );
221 | runOnlyForDeploymentPostprocessing = 0;
222 | shellPath = /bin/sh;
223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
224 | };
225 | /* End PBXShellScriptBuildPhase section */
226 |
227 | /* Begin PBXSourcesBuildPhase section */
228 | 97C146EA1CF9000F007C117D /* Sources */ = {
229 | isa = PBXSourcesBuildPhase;
230 | buildActionMask = 2147483647;
231 | files = (
232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
233 | 97C146F31CF9000F007C117D /* main.m in Sources */,
234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
235 | );
236 | runOnlyForDeploymentPostprocessing = 0;
237 | };
238 | /* End PBXSourcesBuildPhase section */
239 |
240 | /* Begin PBXVariantGroup section */
241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
242 | isa = PBXVariantGroup;
243 | children = (
244 | 97C146FB1CF9000F007C117D /* Base */,
245 | );
246 | name = Main.storyboard;
247 | sourceTree = "";
248 | };
249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
250 | isa = PBXVariantGroup;
251 | children = (
252 | 97C147001CF9000F007C117D /* Base */,
253 | );
254 | name = LaunchScreen.storyboard;
255 | sourceTree = "";
256 | };
257 | /* End PBXVariantGroup section */
258 |
259 | /* Begin XCBuildConfiguration section */
260 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
261 | isa = XCBuildConfiguration;
262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
263 | buildSettings = {
264 | ALWAYS_SEARCH_USER_PATHS = NO;
265 | CLANG_ANALYZER_NONNULL = YES;
266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
267 | CLANG_CXX_LIBRARY = "libc++";
268 | CLANG_ENABLE_MODULES = YES;
269 | CLANG_ENABLE_OBJC_ARC = YES;
270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
271 | CLANG_WARN_BOOL_CONVERSION = YES;
272 | CLANG_WARN_COMMA = YES;
273 | CLANG_WARN_CONSTANT_CONVERSION = YES;
274 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
275 | CLANG_WARN_EMPTY_BODY = YES;
276 | CLANG_WARN_ENUM_CONVERSION = YES;
277 | CLANG_WARN_INFINITE_RECURSION = YES;
278 | CLANG_WARN_INT_CONVERSION = YES;
279 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
283 | CLANG_WARN_STRICT_PROTOTYPES = YES;
284 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
285 | CLANG_WARN_UNREACHABLE_CODE = YES;
286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
288 | COPY_PHASE_STRIP = NO;
289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
290 | ENABLE_NS_ASSERTIONS = NO;
291 | ENABLE_STRICT_OBJC_MSGSEND = YES;
292 | GCC_C_LANGUAGE_STANDARD = gnu99;
293 | GCC_NO_COMMON_BLOCKS = YES;
294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
296 | GCC_WARN_UNDECLARED_SELECTOR = YES;
297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
298 | GCC_WARN_UNUSED_FUNCTION = YES;
299 | GCC_WARN_UNUSED_VARIABLE = YES;
300 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
301 | MTL_ENABLE_DEBUG_INFO = NO;
302 | SDKROOT = iphoneos;
303 | TARGETED_DEVICE_FAMILY = "1,2";
304 | VALIDATE_PRODUCT = YES;
305 | };
306 | name = Profile;
307 | };
308 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
309 | isa = XCBuildConfiguration;
310 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
311 | buildSettings = {
312 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
313 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
314 | DEVELOPMENT_TEAM = S8QB4VV633;
315 | ENABLE_BITCODE = NO;
316 | FRAMEWORK_SEARCH_PATHS = (
317 | "$(inherited)",
318 | "$(PROJECT_DIR)/Flutter",
319 | );
320 | INFOPLIST_FILE = Runner/Info.plist;
321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
322 | LIBRARY_SEARCH_PATHS = (
323 | "$(inherited)",
324 | "$(PROJECT_DIR)/Flutter",
325 | );
326 | PRODUCT_BUNDLE_IDENTIFIER = com.example.timeTableApp;
327 | PRODUCT_NAME = "$(TARGET_NAME)";
328 | VERSIONING_SYSTEM = "apple-generic";
329 | };
330 | name = Profile;
331 | };
332 | 97C147031CF9000F007C117D /* Debug */ = {
333 | isa = XCBuildConfiguration;
334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
335 | buildSettings = {
336 | ALWAYS_SEARCH_USER_PATHS = NO;
337 | CLANG_ANALYZER_NONNULL = YES;
338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
339 | CLANG_CXX_LIBRARY = "libc++";
340 | CLANG_ENABLE_MODULES = YES;
341 | CLANG_ENABLE_OBJC_ARC = YES;
342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
343 | CLANG_WARN_BOOL_CONVERSION = YES;
344 | CLANG_WARN_COMMA = YES;
345 | CLANG_WARN_CONSTANT_CONVERSION = YES;
346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
347 | CLANG_WARN_EMPTY_BODY = YES;
348 | CLANG_WARN_ENUM_CONVERSION = YES;
349 | CLANG_WARN_INFINITE_RECURSION = YES;
350 | CLANG_WARN_INT_CONVERSION = YES;
351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
352 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
353 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
354 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
355 | CLANG_WARN_STRICT_PROTOTYPES = YES;
356 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
357 | CLANG_WARN_UNREACHABLE_CODE = YES;
358 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
359 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
360 | COPY_PHASE_STRIP = NO;
361 | DEBUG_INFORMATION_FORMAT = dwarf;
362 | ENABLE_STRICT_OBJC_MSGSEND = YES;
363 | ENABLE_TESTABILITY = YES;
364 | GCC_C_LANGUAGE_STANDARD = gnu99;
365 | GCC_DYNAMIC_NO_PIC = NO;
366 | GCC_NO_COMMON_BLOCKS = YES;
367 | GCC_OPTIMIZATION_LEVEL = 0;
368 | GCC_PREPROCESSOR_DEFINITIONS = (
369 | "DEBUG=1",
370 | "$(inherited)",
371 | );
372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
374 | GCC_WARN_UNDECLARED_SELECTOR = YES;
375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
376 | GCC_WARN_UNUSED_FUNCTION = YES;
377 | GCC_WARN_UNUSED_VARIABLE = YES;
378 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
379 | MTL_ENABLE_DEBUG_INFO = YES;
380 | ONLY_ACTIVE_ARCH = YES;
381 | SDKROOT = iphoneos;
382 | TARGETED_DEVICE_FAMILY = "1,2";
383 | };
384 | name = Debug;
385 | };
386 | 97C147041CF9000F007C117D /* Release */ = {
387 | isa = XCBuildConfiguration;
388 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
389 | buildSettings = {
390 | ALWAYS_SEARCH_USER_PATHS = NO;
391 | CLANG_ANALYZER_NONNULL = YES;
392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
393 | CLANG_CXX_LIBRARY = "libc++";
394 | CLANG_ENABLE_MODULES = YES;
395 | CLANG_ENABLE_OBJC_ARC = YES;
396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
397 | CLANG_WARN_BOOL_CONVERSION = YES;
398 | CLANG_WARN_COMMA = YES;
399 | CLANG_WARN_CONSTANT_CONVERSION = YES;
400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
401 | CLANG_WARN_EMPTY_BODY = YES;
402 | CLANG_WARN_ENUM_CONVERSION = YES;
403 | CLANG_WARN_INFINITE_RECURSION = YES;
404 | CLANG_WARN_INT_CONVERSION = YES;
405 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
406 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
407 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
408 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
409 | CLANG_WARN_STRICT_PROTOTYPES = YES;
410 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
411 | CLANG_WARN_UNREACHABLE_CODE = YES;
412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
414 | COPY_PHASE_STRIP = NO;
415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
416 | ENABLE_NS_ASSERTIONS = NO;
417 | ENABLE_STRICT_OBJC_MSGSEND = YES;
418 | GCC_C_LANGUAGE_STANDARD = gnu99;
419 | GCC_NO_COMMON_BLOCKS = YES;
420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
422 | GCC_WARN_UNDECLARED_SELECTOR = YES;
423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
424 | GCC_WARN_UNUSED_FUNCTION = YES;
425 | GCC_WARN_UNUSED_VARIABLE = YES;
426 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
427 | MTL_ENABLE_DEBUG_INFO = NO;
428 | SDKROOT = iphoneos;
429 | TARGETED_DEVICE_FAMILY = "1,2";
430 | VALIDATE_PRODUCT = YES;
431 | };
432 | name = Release;
433 | };
434 | 97C147061CF9000F007C117D /* Debug */ = {
435 | isa = XCBuildConfiguration;
436 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
437 | buildSettings = {
438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
440 | ENABLE_BITCODE = NO;
441 | FRAMEWORK_SEARCH_PATHS = (
442 | "$(inherited)",
443 | "$(PROJECT_DIR)/Flutter",
444 | );
445 | INFOPLIST_FILE = Runner/Info.plist;
446 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
447 | LIBRARY_SEARCH_PATHS = (
448 | "$(inherited)",
449 | "$(PROJECT_DIR)/Flutter",
450 | );
451 | PRODUCT_BUNDLE_IDENTIFIER = com.example.timeTableApp;
452 | PRODUCT_NAME = "$(TARGET_NAME)";
453 | VERSIONING_SYSTEM = "apple-generic";
454 | };
455 | name = Debug;
456 | };
457 | 97C147071CF9000F007C117D /* Release */ = {
458 | isa = XCBuildConfiguration;
459 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
460 | buildSettings = {
461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
462 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
463 | ENABLE_BITCODE = NO;
464 | FRAMEWORK_SEARCH_PATHS = (
465 | "$(inherited)",
466 | "$(PROJECT_DIR)/Flutter",
467 | );
468 | INFOPLIST_FILE = Runner/Info.plist;
469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
470 | LIBRARY_SEARCH_PATHS = (
471 | "$(inherited)",
472 | "$(PROJECT_DIR)/Flutter",
473 | );
474 | PRODUCT_BUNDLE_IDENTIFIER = com.example.timeTableApp;
475 | PRODUCT_NAME = "$(TARGET_NAME)";
476 | VERSIONING_SYSTEM = "apple-generic";
477 | };
478 | name = Release;
479 | };
480 | /* End XCBuildConfiguration section */
481 |
482 | /* Begin XCConfigurationList section */
483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
484 | isa = XCConfigurationList;
485 | buildConfigurations = (
486 | 97C147031CF9000F007C117D /* Debug */,
487 | 97C147041CF9000F007C117D /* Release */,
488 | 249021D3217E4FDB00AE95B9 /* Profile */,
489 | );
490 | defaultConfigurationIsVisible = 0;
491 | defaultConfigurationName = Release;
492 | };
493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
494 | isa = XCConfigurationList;
495 | buildConfigurations = (
496 | 97C147061CF9000F007C117D /* Debug */,
497 | 97C147071CF9000F007C117D /* Release */,
498 | 249021D4217E4FDB00AE95B9 /* Profile */,
499 | );
500 | defaultConfigurationIsVisible = 0;
501 | defaultConfigurationName = Release;
502 | };
503 | /* End XCConfigurationList section */
504 | };
505 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
506 | }
507 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
56 |
58 |
64 |
65 |
66 |
67 |
68 |
69 |
75 |
77 |
83 |
84 |
85 |
86 |
88 |
89 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : FlutterAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #include "AppDelegate.h"
2 | #include "GeneratedPluginRegistrant.h"
3 |
4 | @implementation AppDelegate
5 |
6 | - (BOOL)application:(UIApplication *)application
7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
8 | [GeneratedPluginRegistrant registerWithRegistry:self];
9 | // Override point for customization after application launch.
10 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 | }
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | TimeTable
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 |
--------------------------------------------------------------------------------
/ios/Runner/main.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char* argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter/services.dart';
4 | import './sections/sections.dart';
5 | import 'dart:math';
6 | import 'package:toast/toast.dart';
7 |
8 | void main() => runApp(MyApp());
9 |
10 | class MyApp extends StatelessWidget {
11 | @override
12 | Widget build(BuildContext context) {
13 | List randColorList = [
14 | Colors.red,
15 | Colors.blue,
16 | Colors.green,
17 | Colors.indigo
18 | ];
19 | List randAccentColorList = [
20 | Colors.redAccent,
21 | Colors.blueAccent,
22 | Colors.green[400],
23 | Colors.indigoAccent
24 | ];
25 | Random random;
26 | int choice;
27 | int min = 0;
28 | int max = randColorList.length;
29 | random = new Random();
30 | choice = min + random.nextInt(max - min);
31 | return MaterialApp(
32 | title: 'TimeTable',
33 | theme: ThemeData(
34 | brightness: Brightness.light,
35 | primarySwatch: randColorList[choice],
36 | accentColor: randAccentColorList[choice]),
37 | darkTheme: ThemeData(
38 | brightness: Brightness.dark,
39 | ),
40 | // theme: ThemeData.light(),
41 | home: MyHomePage(
42 | title: 'TimeTable',
43 | bodyForegroundColor: randAccentColorList[choice],
44 | appBarColor: randColorList[choice],
45 | ),
46 | );
47 | }
48 | }
49 |
50 | class MyHomePage extends StatefulWidget {
51 | MyHomePage({Key key, this.title, this.bodyForegroundColor, this.appBarColor})
52 | : super(key: key);
53 | final String title;
54 | final Color bodyForegroundColor;
55 | final Color textColor = Colors.white;
56 | final Color appBarColor;
57 |
58 | @override
59 | _MyHomePageState createState() => _MyHomePageState();
60 | }
61 |
62 | class _MyHomePageState extends State {
63 | // For android toast notifications
64 | // final GlobalKey scaffoldKey = GlobalKey();
65 | // void showInSnackBar(String toast) {
66 | // scaffoldKey.currentState.showSnackBar(SnackBar(
67 | // content: Text(toast),
68 | // action: SnackBarAction(
69 | // label: "Okay",
70 | // onPressed: () {},
71 | // ),
72 | // ));
73 | // }
74 |
75 | // About dialog box
76 | void _showAboutDialog() {
77 | showDialog(
78 | context: context,
79 | builder: (BuildContext context) {
80 | return AlertDialog(
81 | shape: RoundedRectangleBorder(
82 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
83 | ),
84 | title: Text(
85 | "TimeTable App",
86 | style: TextStyle(
87 | fontSize: 20.0,
88 | color: Colors.white,
89 | ),
90 | ),
91 | content: Text(
92 | "Author: Ashish H. Shetty\nGitHub: https://github.com/Shetty073/Timetable-App-in-Flutter",
93 | style: TextStyle(
94 | fontSize: 15.0,
95 | color: Colors.white,
96 | ),
97 | ),
98 | actions: [
99 | MaterialButton(
100 | shape: RoundedRectangleBorder(
101 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
102 | ),
103 | child: Text(
104 | "Copy link",
105 | style: TextStyle(
106 | fontSize: 20.0,
107 | color: widget.bodyForegroundColor,
108 | ),
109 | ),
110 | onPressed: () {
111 | Clipboard.setData(ClipboardData(
112 | text:
113 | "https://github.com/Shetty073/Timetable-App-in-Flutter"));
114 | // showInSnackBar("Link copied to clipboard");
115 | Toast.show(
116 | "Link copied to clipboard",
117 | context,
118 | gravity: Toast.CENTER,
119 | duration: Toast.LENGTH_LONG,
120 | textColor: widget.bodyForegroundColor,
121 | backgroundColor: Colors.white,
122 | );
123 | },
124 | splashColor: widget.appBarColor,
125 | color: Colors.white,
126 | ),
127 | MaterialButton(
128 | shape: RoundedRectangleBorder(
129 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
130 | ),
131 | child: Text(
132 | "Close",
133 | style: TextStyle(
134 | fontSize: 20.0,
135 | color: widget.bodyForegroundColor,
136 | ),
137 | ),
138 | onPressed: () {
139 | Navigator.of(context).pop();
140 | },
141 | splashColor: widget.appBarColor,
142 | color: Colors.white,
143 | ),
144 | ],
145 | backgroundColor: widget.bodyForegroundColor,
146 | );
147 | });
148 | }
149 |
150 | @override
151 | MyHomePage get widget => super.widget;
152 | List _getCards() {
153 | List _weeks = [
154 | "Monday",
155 | "Tuesday",
156 | "Wednesday",
157 | "Thursday",
158 | "Friday",
159 | "Saturday"
160 | ];
161 | List crds = List();
162 | for (var i = 0; i < _weeks.length; i++) {
163 | crds.add(
164 | Container(
165 | child: Card(
166 | color: widget.bodyForegroundColor,
167 | child: InkWell(
168 | splashColor: widget.bodyForegroundColor,
169 | onTap: () {
170 | Navigator.push(
171 | context,
172 | SlideRightRoute(
173 | page: BranchesPage(
174 | title: "Select branch",
175 | day: i + 1,
176 | bodyForegroundColor: widget.bodyForegroundColor,
177 | textColor: widget.textColor,
178 | ),
179 | ),
180 | );
181 | },
182 | child: Container(
183 | width: 300,
184 | height: 70,
185 | child: Center(
186 | child: Text(
187 | _weeks[i],
188 | textAlign: TextAlign.center,
189 | style: TextStyle(
190 | fontSize: 20,
191 | color: widget.textColor,
192 | ),
193 | ),
194 | ),
195 | ),
196 | ),
197 | ),
198 | margin: EdgeInsets.only(
199 | top: 5.0,
200 | bottom: 5.0,
201 | ),
202 | ),
203 | );
204 | }
205 | return crds;
206 | }
207 |
208 | @override
209 | Widget build(BuildContext context) {
210 | return Scaffold(
211 | // key: scaffoldKey, // For toast notiications
212 | appBar: AppBar(
213 | title: Text(widget.title),
214 | ),
215 | body: Container(
216 | child: ListView(
217 | children: _getCards(),
218 | ),
219 | margin: EdgeInsets.only(top: 20.0, bottom: 20.0),
220 | ),
221 | drawer: Drawer(
222 | child: ListView(
223 | children: [
224 | DrawerHeader(
225 | child: Text(
226 | "TimeTable App",
227 | style: TextStyle(
228 | color: Colors.white,
229 | fontSize: 20.0,
230 | ),
231 | textAlign: TextAlign.start,
232 | ),
233 | decoration: BoxDecoration(
234 | color: widget.appBarColor,
235 | ),
236 | ),
237 | ListTile(
238 | title: Text(
239 | "About",
240 | style: TextStyle(
241 | color: widget.appBarColor,
242 | ),
243 | ),
244 | subtitle: Text(
245 | "about the developer",
246 | style: TextStyle(
247 | color: widget.bodyForegroundColor,
248 | ),
249 | ),
250 | onTap: () {
251 | _showAboutDialog(); // Call the function which displays about dialog box
252 | },
253 | ),
254 | ],
255 | ),
256 | ),
257 | );
258 | }
259 | }
260 |
261 | // Custom page route animation
262 | class SlideRightRoute extends PageRouteBuilder {
263 | final Widget page;
264 | SlideRightRoute({this.page})
265 | : super(
266 | pageBuilder: (
267 | BuildContext context,
268 | Animation animation,
269 | Animation secondaryAnimation,
270 | ) =>
271 | page,
272 | transitionsBuilder: (
273 | BuildContext context,
274 | Animation animation,
275 | Animation secondaryAnimation,
276 | Widget child,
277 | ) =>
278 | SlideTransition(
279 | position: Tween(
280 | begin: const Offset(-1, 0),
281 | end: Offset.zero,
282 | ).animate(animation),
283 | child: child,
284 | ),
285 | );
286 | }
287 |
--------------------------------------------------------------------------------
/lib/sections/ItCsBms.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | // import '../main.dart';
3 |
4 | class TablePage extends StatefulWidget {
5 | TablePage(
6 | {Key key,
7 | this.title,
8 | this.day,
9 | this.data,
10 | this.bodyForegroundColor,
11 | this.textColor})
12 | : super(key: key);
13 | final String title;
14 | final int day; // 1, 2, 3, etc
15 | final List data; // This will contain the time table
16 | final Color bodyForegroundColor; // Color for cards (elements in foreground)
17 | final Color textColor;
18 |
19 | @override
20 | _TablePageState createState() => _TablePageState();
21 | }
22 |
23 | class _TablePageState extends State {
24 | @override
25 | TablePage get widget => super.widget;
26 | List _getBranches() {
27 | List crds = List();
28 | for (var i = 0; i < widget.data.length; i++) {
29 | crds.add(Container(
30 | child: Card(
31 | color: widget.bodyForegroundColor,
32 | child: InkWell(
33 | splashColor: widget.bodyForegroundColor,
34 | onTap: () {},
35 | child: Container(
36 | width: 300,
37 | height: 70,
38 | child: Center(
39 | child: Text(
40 | widget.data[i],
41 | textAlign: TextAlign.center,
42 | style: TextStyle(
43 | fontSize: 20,
44 | color: widget.textColor,
45 | ),
46 | ),
47 | ),
48 | ),
49 | ),
50 | ),
51 | margin: EdgeInsets.only(
52 | top: 5.0,
53 | bottom: 5.0,
54 | ),
55 | ));
56 | }
57 | return crds;
58 | }
59 |
60 | @override
61 | Widget build(BuildContext context) {
62 | return Scaffold(
63 | appBar: AppBar(
64 | title: Text(widget.title),
65 | ),
66 | body: Container(
67 | child: ListView(
68 | children: _getBranches(),
69 | ),
70 | margin: EdgeInsets.only(top: 20.0, bottom: 20.0),
71 | ),
72 | );
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/lib/sections/classespage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'ItCsBms.dart';
3 | import 'commerce.dart';
4 | import '../main.dart';
5 | import 'dart:async';
6 | import 'dart:convert';
7 | import 'package:http/http.dart' as http;
8 |
9 | // TODO: Remove redunduncy
10 | class ClassesPage extends StatefulWidget {
11 | ClassesPage(
12 | {Key key,
13 | this.title,
14 | this.day,
15 | this.branch,
16 | this.bodyForegroundColor,
17 | this.textColor})
18 | : super(key: key);
19 | final String title;
20 | final int day;
21 | final String branch;
22 | final Color bodyForegroundColor;
23 | final Color textColor;
24 |
25 | @override
26 | _ClassesPageState createState() => _ClassesPageState();
27 | }
28 |
29 | class _ClassesPageState extends State {
30 | @override
31 | ClassesPage get widget => super.widget;
32 | List _getBranches() {
33 | List _class = ["First Year", "Second Year", "Third Year"];
34 | List crds = List();
35 | for (var i = 0; i < _class.length; i++) {
36 | crds.add(Container(
37 | child: Card(
38 | color: widget.bodyForegroundColor,
39 | child: InkWell(
40 | splashColor: widget.bodyForegroundColor,
41 | onTap: () {
42 | String ttl;
43 | String brnch = widget.branch;
44 | switch (_class[i]) {
45 | case "First Year":
46 | ttl = "FY $brnch";
47 | break;
48 | case "Second Year":
49 | ttl = "SY $brnch";
50 | break;
51 | case "Third Year":
52 | ttl = "TY $brnch";
53 | break;
54 | default:
55 | ttl = "";
56 | }
57 | if (widget.branch == "Commerce") {
58 | Navigator.push(
59 | context,
60 | SlideRightRoute(
61 | page: CommercePage(
62 | title: ttl,
63 | day: widget.day,
64 | branch: brnch,
65 | cls: _class[i],
66 | bodyForegroundColor: widget.bodyForegroundColor,
67 | textColor: widget.textColor,
68 | ),
69 | ),
70 | );
71 | } else if (widget.branch == "Information Technology") {
72 | // Show loading progress indicator dialog
73 | showDialog(
74 | context: context,
75 | barrierDismissible: false,
76 | builder: (BuildContext context) {
77 | return AlertDialog(
78 | shape: RoundedRectangleBorder(
79 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
80 | ),
81 | content: Row(
82 | mainAxisSize: MainAxisSize.min,
83 | children: [
84 | CircularProgressIndicator(),
85 | Text(
86 | "\t\t\t\t\tLoading...",
87 | style: TextStyle(
88 | color: widget.bodyForegroundColor,
89 | ),
90 | ),
91 | ],
92 | ),
93 | );
94 | });
95 | if (_class[i] == "First Year") {
96 | String tablename = "fy_it";
97 | int day = widget.day;
98 | Map data;
99 | List list = [];
100 | Future getData() async {
101 | http.Response response = await http.get(
102 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
103 | data = json.decode(response.body);
104 | for (var item in data.keys) {
105 | if (item != "week" && data[item] != null) {
106 | list.add(data[item]);
107 | }
108 | }
109 | Navigator.pop(
110 | context); // Close the loading progress indicator dialog
111 | Navigator.push(
112 | context,
113 | SlideRightRoute(
114 | page: TablePage(
115 | title: "$ttl",
116 | day: widget.day,
117 | data: list,
118 | bodyForegroundColor: widget.bodyForegroundColor,
119 | textColor: widget.textColor,
120 | ),
121 | ),
122 | );
123 | }
124 |
125 | getData();
126 | } else if (_class[i] == "Second Year") {
127 | String tablename = "sy_it";
128 | int day = widget.day;
129 | Map data;
130 | List list = [];
131 | Future getData() async {
132 | http.Response response = await http.get(
133 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
134 | data = json.decode(response.body);
135 | for (var item in data.keys) {
136 | if (item != "week" && data[item] != null) {
137 | list.add(data[item]);
138 | }
139 | }
140 | Navigator.pop(
141 | context); // Close the loading progress indicator dialog
142 | Navigator.push(
143 | context,
144 | SlideRightRoute(
145 | page: TablePage(
146 | title: "$ttl",
147 | day: widget.day,
148 | data: list,
149 | bodyForegroundColor: widget.bodyForegroundColor,
150 | textColor: widget.textColor,
151 | ),
152 | ),
153 | );
154 | }
155 |
156 | getData();
157 | } else {
158 | String tablename = "ty_it";
159 | int day = widget.day;
160 | Map data;
161 | List list = [];
162 | Future getData() async {
163 | http.Response response = await http.get(
164 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
165 | data = json.decode(response.body);
166 | for (var item in data.keys) {
167 | if (item != "week" && data[item] != null) {
168 | list.add(data[item]);
169 | }
170 | }
171 | Navigator.pop(
172 | context); // Close the loading progress indicator dialog
173 | Navigator.push(
174 | context,
175 | SlideRightRoute(
176 | page: TablePage(
177 | title: "$ttl",
178 | day: widget.day,
179 | data: list,
180 | bodyForegroundColor: widget.bodyForegroundColor,
181 | textColor: widget.textColor,
182 | ),
183 | ),
184 | );
185 | }
186 |
187 | getData();
188 | }
189 | } else if (widget.branch == "Computer Science") {
190 | // Show loading progress indicator dialog
191 | showDialog(
192 | context: context,
193 | barrierDismissible: false,
194 | builder: (BuildContext context) {
195 | return AlertDialog(
196 | shape: RoundedRectangleBorder(
197 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
198 | ),
199 | content: Row(
200 | mainAxisSize: MainAxisSize.min,
201 | children: [
202 | CircularProgressIndicator(),
203 | Text(
204 | "\t\t\t\t\tLoading...",
205 | style: TextStyle(
206 | color: widget.bodyForegroundColor,
207 | ),
208 | ),
209 | ],
210 | ),
211 | );
212 | });
213 | if (_class[i] == "First Year") {
214 | String tablename = "fy_cs";
215 | int day = widget.day;
216 | Map data;
217 | List list = [];
218 | Future getData() async {
219 | http.Response response = await http.get(
220 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
221 | data = json.decode(response.body);
222 | for (var item in data.keys) {
223 | if (item != "week" && data[item] != null) {
224 | list.add(data[item]);
225 | }
226 | }
227 | Navigator.pop(
228 | context); // Close the loading progress indicator dialog
229 | Navigator.push(
230 | context,
231 | SlideRightRoute(
232 | page: TablePage(
233 | title: "$ttl",
234 | day: widget.day,
235 | data: list,
236 | bodyForegroundColor: widget.bodyForegroundColor,
237 | textColor: widget.textColor,
238 | ),
239 | ),
240 | );
241 | }
242 |
243 | getData();
244 | } else if (_class[i] == "Second Year") {
245 | String tablename = "sy_cs";
246 | int day = widget.day;
247 | Map data;
248 | List list = [];
249 | Future getData() async {
250 | http.Response response = await http.get(
251 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
252 | data = json.decode(response.body);
253 | for (var item in data.keys) {
254 | if (item != "week" && data[item] != null) {
255 | list.add(data[item]);
256 | }
257 | }
258 | Navigator.pop(
259 | context); // Close the loading progress indicator dialog
260 | Navigator.push(
261 | context,
262 | SlideRightRoute(
263 | page: TablePage(
264 | title: "$ttl",
265 | day: widget.day,
266 | data: list,
267 | bodyForegroundColor: widget.bodyForegroundColor,
268 | textColor: widget.textColor,
269 | ),
270 | ),
271 | );
272 | }
273 |
274 | getData();
275 | } else {
276 | String tablename = "ty_cs";
277 | int day = widget.day;
278 | Map data;
279 | List list = [];
280 | Future getData() async {
281 | http.Response response = await http.get(
282 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
283 | data = json.decode(response.body);
284 | for (var item in data.keys) {
285 | if (item != "week" && data[item] != null) {
286 | list.add(data[item]);
287 | }
288 | }
289 | Navigator.pop(
290 | context); // Close the loading progress indicator dialog
291 | Navigator.push(
292 | context,
293 | SlideRightRoute(
294 | page: TablePage(
295 | title: "$ttl",
296 | day: widget.day,
297 | data: list,
298 | bodyForegroundColor: widget.bodyForegroundColor,
299 | textColor: widget.textColor,
300 | ),
301 | ),
302 | );
303 | }
304 |
305 | getData();
306 | }
307 | } else if (widget.branch == "Bachelor of Management Studies") {
308 | // Show loading progress indicator dialog
309 | showDialog(
310 | context: context,
311 | barrierDismissible: false,
312 | builder: (BuildContext context) {
313 | return AlertDialog(
314 | shape: RoundedRectangleBorder(
315 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
316 | ),
317 | content: Row(
318 | mainAxisSize: MainAxisSize.min,
319 | children: [
320 | CircularProgressIndicator(),
321 | Text(
322 | "\t\t\t\t\tLoading...",
323 | style: TextStyle(
324 | color: widget.bodyForegroundColor,
325 | ),
326 | ),
327 | ],
328 | ),
329 | );
330 | });
331 | if (_class[i] == "First Year") {
332 | String tablename = "fy_bms";
333 | int day = widget.day;
334 | Map data;
335 | List list = [];
336 | Future getData() async {
337 | http.Response response = await http.get(
338 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
339 | data = json.decode(response.body);
340 | for (var item in data.keys) {
341 | if (item != "week" && data[item] != null) {
342 | list.add(data[item]);
343 | }
344 | }
345 | Navigator.pop(
346 | context); // Close the loading progress indicator dialog
347 | Navigator.push(
348 | context,
349 | SlideRightRoute(
350 | page: TablePage(
351 | title: "$ttl",
352 | day: widget.day,
353 | data: list,
354 | bodyForegroundColor: widget.bodyForegroundColor,
355 | textColor: widget.textColor,
356 | ),
357 | ),
358 | );
359 | }
360 |
361 | getData();
362 | } else if (_class[i] == "Second Year") {
363 | String tablename = "sy_bms";
364 | int day = widget.day;
365 | Map data;
366 | List list = [];
367 | Future getData() async {
368 | http.Response response = await http.get(
369 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
370 | data = json.decode(response.body);
371 | for (var item in data.keys) {
372 | if (item != "week" && data[item] != null) {
373 | list.add(data[item]);
374 | }
375 | }
376 | Navigator.pop(
377 | context); // Close the loading progress indicator dialog
378 | Navigator.push(
379 | context,
380 | SlideRightRoute(
381 | page: TablePage(
382 | title: "$ttl",
383 | day: widget.day,
384 | data: list,
385 | bodyForegroundColor: widget.bodyForegroundColor,
386 | textColor: widget.textColor,
387 | ),
388 | ),
389 | );
390 | }
391 |
392 | getData();
393 | } else {
394 | String tablename = "ty_bms";
395 | int day = widget.day;
396 | Map data;
397 | List list = [];
398 | Future getData() async {
399 | http.Response response = await http.get(
400 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
401 | data = json.decode(response.body);
402 | for (var item in data.keys) {
403 | if (item != "week" && data[item] != null) {
404 | list.add(data[item]);
405 | }
406 | }
407 | Navigator.pop(
408 | context); // Close the loading progress indicator dialog
409 | Navigator.push(
410 | context,
411 | SlideRightRoute(
412 | page: TablePage(
413 | title: "$ttl",
414 | day: widget.day,
415 | data: list,
416 | bodyForegroundColor: widget.bodyForegroundColor,
417 | textColor: widget.textColor,
418 | ),
419 | ),
420 | );
421 | }
422 |
423 | getData();
424 | }
425 | }
426 | },
427 | child: Container(
428 | width: 300,
429 | height: 150,
430 | child: Center(
431 | child: Text(
432 | _class[i],
433 | textAlign: TextAlign.center,
434 | style: TextStyle(
435 | fontSize: 20,
436 | color: widget.textColor,
437 | ),
438 | ),
439 | ),
440 | ),
441 | ),
442 | ),
443 | margin: EdgeInsets.only(
444 | top: 10.0,
445 | bottom: 5.0,
446 | ),
447 | ));
448 | }
449 | return crds;
450 | }
451 |
452 | @override
453 | Widget build(BuildContext context) {
454 | return Scaffold(
455 | appBar: AppBar(
456 | title: Text(widget.title),
457 | ),
458 | body: Container(
459 | child: ListView(
460 | children: _getBranches(),
461 | ),
462 | margin: EdgeInsets.only(top: 20.0),
463 | ),
464 | );
465 | }
466 | }
467 |
--------------------------------------------------------------------------------
/lib/sections/cms.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CommerceTablePage extends StatefulWidget {
4 | CommerceTablePage(
5 | {Key key,
6 | this.title,
7 | this.data,
8 | this.bodyForegroundColor,
9 | this.textColor})
10 | : super(key: key);
11 | final String title;
12 | final List data; // This will contain the time table
13 | final Color bodyForegroundColor;
14 | final Color textColor;
15 | @override
16 | _CommercePageTable createState() => _CommercePageTable();
17 | }
18 |
19 | class _CommercePageTable extends State {
20 | @override
21 | CommerceTablePage get widget => super.widget;
22 | List _getBranches() {
23 | List crds = List();
24 | for (var i = 0; i < widget.data.length; i++) {
25 | crds.add(Container(
26 | child: Card(
27 | color: widget.bodyForegroundColor,
28 | child: InkWell(
29 | splashColor: widget.bodyForegroundColor,
30 | onTap: () {},
31 | child: Container(
32 | width: 300,
33 | height: 70,
34 | child: Center(
35 | child: Text(
36 | widget.data[i],
37 | textAlign: TextAlign.center,
38 | style: TextStyle(
39 | fontSize: 20,
40 | color: widget.textColor,
41 | ),
42 | ),
43 | ),
44 | ),
45 | ),
46 | ),
47 | margin: EdgeInsets.only(
48 | top: 5.0,
49 | bottom: 5.0,
50 | ),
51 | ));
52 | }
53 | return crds;
54 | }
55 |
56 | @override
57 | Widget build(BuildContext context) {
58 | return Scaffold(
59 | appBar: AppBar(
60 | title: Text(widget.title),
61 | ),
62 | body: Container(
63 | child: ListView(
64 | children: _getBranches(),
65 | ),
66 | margin: EdgeInsets.only(top: 20.0, bottom: 20.0),
67 | ),
68 | );
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/lib/sections/commerce.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import './cms.dart';
3 | import '../main.dart';
4 | import 'dart:async';
5 | import 'dart:convert';
6 | import 'package:http/http.dart' as http;
7 | // TODO: Remove redunduncy
8 | class CommercePage extends StatefulWidget {
9 | CommercePage(
10 | {Key key,
11 | this.title,
12 | this.day,
13 | this.branch,
14 | this.cls,
15 | this.bodyForegroundColor,
16 | this.textColor})
17 | : super(key: key);
18 | final String title;
19 | final int day;
20 | final String branch;
21 | final String cls;
22 | final Color bodyForegroundColor;
23 | final Color textColor;
24 |
25 | @override
26 | _CommercePageState createState() => _CommercePageState();
27 | }
28 |
29 | class _CommercePageState extends State {
30 | @override
31 | CommercePage get widget => super.widget;
32 | List _getBranches() {
33 | List _div = ["A", "B", "C"];
34 | List list = [];
35 | List crds = List();
36 | for (var i = 0; i < _div.length; i++) {
37 | crds.add(Container(
38 | child: Card(
39 | color: widget.bodyForegroundColor,
40 | child: InkWell(
41 | splashColor: widget.bodyForegroundColor,
42 | onTap: () {
43 | // Show loading progress indicator
44 | showDialog(
45 | context: context,
46 | barrierDismissible: false,
47 | builder: (BuildContext context) {
48 | return AlertDialog(
49 | shape: RoundedRectangleBorder(
50 | borderRadius: BorderRadius.all(Radius.circular(10.0)),
51 | ),
52 | content: Row(
53 | mainAxisSize: MainAxisSize.min,
54 | children: [
55 | CircularProgressIndicator(),
56 | Text(
57 | "\t\t\t\t\tLoading...",
58 | style: TextStyle(
59 | color: widget.bodyForegroundColor,
60 | ),
61 | ),
62 | ],
63 | ),
64 | );
65 | });
66 | int day = widget.day;
67 | String ttl = widget.title;
68 | String dv = _div[i];
69 | switch (_div[i]) {
70 | case "A":
71 | ttl = "$ttl $dv";
72 | if (widget.cls == "First Year") {
73 | String tablename = "fy_commerce_A";
74 | Map data;
75 | Future getData() async {
76 | http.Response response = await http.get(
77 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
78 | data = json.decode(response.body);
79 | for (var item in data.keys) {
80 | if (item != "week" && data[item] != null) {
81 | list.add(data[item]);
82 | }
83 | }
84 | Navigator.pop(context); // Close the loading progress indicator dialog
85 | Navigator.push(
86 | context,
87 | SlideRightRoute(
88 | page: CommerceTablePage(
89 | title: "$ttl",
90 | data: list,
91 | bodyForegroundColor: widget.bodyForegroundColor,
92 | textColor: widget.textColor,
93 | ),
94 | ),
95 | );
96 | }
97 |
98 | getData();
99 | } else if (widget.cls == "Second Year") {
100 | String tablename = "sy_commerce_A";
101 | Map data;
102 | // List list = [];
103 | Future getData() async {
104 | http.Response response = await http.get(
105 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
106 | data = json.decode(response.body);
107 | for (var item in data.keys) {
108 | if (item != "week" && data[item] != null) {
109 | list.add(data[item]);
110 | }
111 | }
112 | Navigator.pop(context); // Close the loading progress indicator dialog
113 | Navigator.push(
114 | context,
115 | SlideRightRoute(
116 | page: CommerceTablePage(
117 | title: "$ttl",
118 | data: list,
119 | bodyForegroundColor: widget.bodyForegroundColor,
120 | textColor: widget.textColor,
121 | ),
122 | ),
123 | );
124 | }
125 |
126 | getData();
127 | } else {
128 | String tablename = "ty_commerce_A";
129 | Map data;
130 | // List list = [];
131 | Future getData() async {
132 | http.Response response = await http.get(
133 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
134 | data = json.decode(response.body);
135 | for (var item in data.keys) {
136 | if (item != "week" && data[item] != null) {
137 | list.add(data[item]);
138 | }
139 | }
140 | Navigator.pop(context); // Close the loading progress indicator dialog
141 | Navigator.push(
142 | context,
143 | SlideRightRoute(
144 | page: CommerceTablePage(
145 | title: "$ttl",
146 | data: list,
147 | bodyForegroundColor: widget.bodyForegroundColor,
148 | textColor: widget.textColor,
149 | ),
150 | ),
151 | );
152 | }
153 |
154 | getData();
155 | }
156 | break;
157 | case "B":
158 | ttl = "$ttl $dv";
159 | if (widget.cls == "First Year") {
160 | String tablename = "fy_commerce_B";
161 | Map data;
162 | // List list = [];
163 | Future getData() async {
164 | http.Response response = await http.get(
165 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
166 | data = json.decode(response.body);
167 | for (var item in data.keys) {
168 | if (item != "week" && data[item] != null) {
169 | list.add(data[item]);
170 | }
171 | }
172 | Navigator.pop(context); // Close the loading progress indicator dialog
173 | Navigator.push(
174 | context,
175 | SlideRightRoute(
176 | page: CommerceTablePage(
177 | title: "$ttl",
178 | data: list,
179 | bodyForegroundColor: widget.bodyForegroundColor,
180 | textColor: widget.textColor,
181 | ),
182 | ),
183 | );
184 | }
185 |
186 | getData();
187 | } else if (widget.cls == "Second Year") {
188 | String tablename = "sy_commerce_B";
189 | Map data;
190 | // List list = [];
191 | Future getData() async {
192 | http.Response response = await http.get(
193 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
194 | data = json.decode(response.body);
195 | for (var item in data.keys) {
196 | if (item != "week" && data[item] != null) {
197 | list.add(data[item]);
198 | }
199 | }
200 | Navigator.pop(context); // Close the loading progress indicator dialog
201 | Navigator.push(
202 | context,
203 | SlideRightRoute(
204 | page: CommerceTablePage(
205 | title: "$ttl",
206 | data: list,
207 | bodyForegroundColor: widget.bodyForegroundColor,
208 | textColor: widget.textColor,
209 | ),
210 | ),
211 | );
212 | }
213 |
214 | getData();
215 | } else {
216 | String tablename = "ty_commerce_B";
217 | Map data;
218 | // List list = [];
219 | Future getData() async {
220 | http.Response response = await http.get(
221 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
222 | data = json.decode(response.body);
223 | for (var item in data.keys) {
224 | if (item != "week" && data[item] != null) {
225 | list.add(data[item]);
226 | }
227 | }
228 | Navigator.pop(context); // Close the loading progress indicator dialog
229 | Navigator.push(
230 | context,
231 | SlideRightRoute(
232 | page: CommerceTablePage(
233 | title: "$ttl",
234 | data: list,
235 | bodyForegroundColor: widget.bodyForegroundColor,
236 | textColor: widget.textColor,
237 | ),
238 | ),
239 | );
240 | }
241 |
242 | getData();
243 | }
244 | break;
245 | case "C":
246 | ttl = "$ttl $dv";
247 | if (widget.cls == "First Year") {
248 | String tablename = "fy_commerce_C";
249 | Map data;
250 | // List list = [];
251 | Future getData() async {
252 | http.Response response = await http.get(
253 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
254 | data = json.decode(response.body);
255 | for (var item in data.keys) {
256 | if (item != "week" && data[item] != null) {
257 | list.add(data[item]);
258 | }
259 | }
260 | Navigator.pop(context); // Close the loading progress indicator dialog
261 | Navigator.push(
262 | context,
263 | SlideRightRoute(
264 | page: CommerceTablePage(
265 | title: "$ttl",
266 | data: list,
267 | bodyForegroundColor: widget.bodyForegroundColor,
268 | textColor: widget.textColor,
269 | ),
270 | ),
271 | );
272 | }
273 |
274 | getData();
275 | } else if (widget.cls == "Second Year") {
276 | String tablename = "sy_commerce_C";
277 | Map data;
278 | // List list = [];
279 | Future getData() async {
280 | http.Response response = await http.get(
281 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
282 | data = json.decode(response.body);
283 | for (var item in data.keys) {
284 | if (item != "week" && data[item] != null) {
285 | list.add(data[item]);
286 | }
287 | }
288 | Navigator.pop(context); // Close the loading progress indicator dialog
289 | Navigator.push(
290 | context,
291 | SlideRightRoute(
292 | page: CommerceTablePage(
293 | title: "$ttl",
294 | data: list,
295 | bodyForegroundColor: widget.bodyForegroundColor,
296 | textColor: widget.textColor,
297 | ),
298 | ),
299 | );
300 | }
301 |
302 | getData();
303 | } else {
304 | String tablename = "ty_commerce_C";
305 | Map data;
306 | // List list = [];
307 | Future getData() async {
308 | http.Response response = await http.get(
309 | "http://192.168.0.100/index.php?class=$tablename&day=$day");
310 | data = json.decode(response.body);
311 | for (var item in data.keys) {
312 | if (item != "week" && data[item] != null) {
313 | list.add(data[item]);
314 | }
315 | }
316 | Navigator.pop(context); // Close the loading progress indicator dialog
317 | Navigator.push(
318 | context,
319 | SlideRightRoute(
320 | page: CommerceTablePage(
321 | title: "$ttl",
322 | data: list,
323 | bodyForegroundColor: widget.bodyForegroundColor,
324 | textColor: widget.textColor,
325 | ),
326 | ),
327 | );
328 | }
329 |
330 | getData();
331 | }
332 | break;
333 | default:
334 | ttl = "";
335 | }
336 | },
337 | child: Container(
338 | width: 300,
339 | height: 150,
340 | child: Center(
341 | child: Text(
342 | _div[i],
343 | textAlign: TextAlign.center,
344 | style: TextStyle(
345 | fontSize: 20,
346 | color: widget.textColor,
347 | ),
348 | ),
349 | ),
350 | ),
351 | ),
352 | ),
353 | margin: EdgeInsets.only(
354 | top: 10.0,
355 | bottom: 5.0,
356 | ),
357 | ));
358 | }
359 | return crds;
360 | }
361 |
362 | @override
363 | Widget build(BuildContext context) {
364 | return Scaffold(
365 | appBar: AppBar(
366 | title: Text(widget.title),
367 | ),
368 | body: Container(
369 | child: ListView(
370 | children: _getBranches(),
371 | ),
372 | margin: EdgeInsets.only(top: 20.0),
373 | ),
374 | );
375 | }
376 | }
377 |
--------------------------------------------------------------------------------
/lib/sections/sections.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import './classespage.dart';
3 | import '../main.dart';
4 |
5 | class BranchesPage extends StatefulWidget {
6 | BranchesPage(
7 | {Key key, this.title, this.day, this.bodyForegroundColor, this.textColor})
8 | : super(key: key);
9 | final String title;
10 | final int day;
11 | final Color bodyForegroundColor;
12 | final Color textColor;
13 |
14 | @override
15 | _BranchesPageState createState() => _BranchesPageState();
16 | }
17 |
18 | class _BranchesPageState extends State {
19 | @override
20 | BranchesPage get widget => super.widget;
21 | List _getBranches() {
22 | List _branch = [
23 | "Information Technology",
24 | "Computer Science",
25 | "Commerce",
26 | "Bachelor of Management Studies"
27 | ];
28 | List crds = List();
29 | for (var i = 0; i < _branch.length; i++) {
30 | crds.add(Container(
31 | child: Card(
32 | color: widget.bodyForegroundColor,
33 | child: InkWell(
34 | splashColor: widget.bodyForegroundColor,
35 | onTap: () {
36 | Navigator.push(
37 | context,
38 | SlideRightRoute(
39 | page: ClassesPage(
40 | title: "Select class",
41 | day: widget.day,
42 | branch: _branch[i],
43 | bodyForegroundColor: widget.bodyForegroundColor,
44 | textColor: widget.textColor,
45 | ),
46 | ),
47 | );
48 | },
49 | child: Container(
50 | width: 300,
51 | height: 110,
52 | child: Center(
53 | child: Text(
54 | _branch[i],
55 | textAlign: TextAlign.center,
56 | style: TextStyle(
57 | fontSize: 20,
58 | color: widget.textColor,
59 | ),
60 | ),
61 | ),
62 | ),
63 | ),
64 | ),
65 | margin: EdgeInsets.only(
66 | top: 10.0,
67 | bottom: 5.0,
68 | ),
69 | ));
70 | }
71 | return crds;
72 | }
73 |
74 | @override
75 | Widget build(BuildContext context) {
76 | return Scaffold(
77 | appBar: AppBar(
78 | title: Text(widget.title),
79 | ),
80 | body: Container(
81 | child: ListView(
82 | children: _getBranches(),
83 | ),
84 | margin: EdgeInsets.only(top: 20.0),
85 | ),
86 | );
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.2.0"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.0.4"
18 | charcode:
19 | dependency: transitive
20 | description:
21 | name: charcode
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.1.2"
25 | collection:
26 | dependency: transitive
27 | description:
28 | name: collection
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.14.11"
32 | cupertino_icons:
33 | dependency: "direct main"
34 | description:
35 | name: cupertino_icons
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "0.1.2"
39 | flutter:
40 | dependency: "direct main"
41 | description: flutter
42 | source: sdk
43 | version: "0.0.0"
44 | flutter_test:
45 | dependency: "direct dev"
46 | description: flutter
47 | source: sdk
48 | version: "0.0.0"
49 | http:
50 | dependency: "direct main"
51 | description:
52 | name: http
53 | url: "https://pub.dartlang.org"
54 | source: hosted
55 | version: "0.12.0+2"
56 | http_parser:
57 | dependency: transitive
58 | description:
59 | name: http_parser
60 | url: "https://pub.dartlang.org"
61 | source: hosted
62 | version: "3.1.3"
63 | matcher:
64 | dependency: transitive
65 | description:
66 | name: matcher
67 | url: "https://pub.dartlang.org"
68 | source: hosted
69 | version: "0.12.5"
70 | meta:
71 | dependency: transitive
72 | description:
73 | name: meta
74 | url: "https://pub.dartlang.org"
75 | source: hosted
76 | version: "1.1.6"
77 | path:
78 | dependency: transitive
79 | description:
80 | name: path
81 | url: "https://pub.dartlang.org"
82 | source: hosted
83 | version: "1.6.2"
84 | pedantic:
85 | dependency: transitive
86 | description:
87 | name: pedantic
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "1.7.0"
91 | quiver:
92 | dependency: transitive
93 | description:
94 | name: quiver
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "2.0.3"
98 | sky_engine:
99 | dependency: transitive
100 | description: flutter
101 | source: sdk
102 | version: "0.0.99"
103 | source_span:
104 | dependency: transitive
105 | description:
106 | name: source_span
107 | url: "https://pub.dartlang.org"
108 | source: hosted
109 | version: "1.5.5"
110 | stack_trace:
111 | dependency: transitive
112 | description:
113 | name: stack_trace
114 | url: "https://pub.dartlang.org"
115 | source: hosted
116 | version: "1.9.3"
117 | stream_channel:
118 | dependency: transitive
119 | description:
120 | name: stream_channel
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "2.0.0"
124 | string_scanner:
125 | dependency: transitive
126 | description:
127 | name: string_scanner
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "1.0.4"
131 | term_glyph:
132 | dependency: transitive
133 | description:
134 | name: term_glyph
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "1.1.0"
138 | test_api:
139 | dependency: transitive
140 | description:
141 | name: test_api
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "0.2.5"
145 | toast:
146 | dependency: "direct main"
147 | description:
148 | name: toast
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "0.1.4"
152 | typed_data:
153 | dependency: transitive
154 | description:
155 | name: typed_data
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "1.1.6"
159 | vector_math:
160 | dependency: transitive
161 | description:
162 | name: vector_math
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "2.0.8"
166 | sdks:
167 | dart: ">=2.2.2 <3.0.0"
168 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: time_table_app
2 | description: A new Flutter project.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.1.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 | cupertino_icons: ^0.1.2
23 | http: ^0.12.0
24 | toast: ^0.1.3
25 |
26 | dev_dependencies:
27 | flutter_test:
28 | sdk: flutter
29 |
30 |
31 | # For information on the generic Dart part of this file, see the
32 | # following page: https://www.dartlang.org/tools/pub/pubspec
33 |
34 | # The following section is specific to Flutter.
35 | flutter:
36 |
37 | # The following line ensures that the Material Icons font is
38 | # included with your application, so that you can use the icons in
39 | # the material Icons class.
40 | uses-material-design: true
41 |
42 | # To add assets to your application, add an assets section, like this:
43 | # assets:
44 | # - assets/logo.png
45 | # - images/a_dot_burr.jpeg
46 | # - images/a_dot_ham.jpeg
47 |
48 | # An image asset can refer to one or more resolution-specific "variants", see
49 | # https://flutter.dev/assets-and-images/#resolution-aware.
50 |
51 | # For details regarding adding assets from package dependencies, see
52 | # https://flutter.dev/assets-and-images/#from-packages
53 |
54 | # To add custom fonts to your application, add a fonts section here,
55 | # in this "flutter" section. Each entry in this list should have a
56 | # "family" key with the font family name, and a "fonts" key with a
57 | # list giving the asset and other descriptors for the font. For
58 | # example:
59 | # fonts:
60 | # - family: Schyler
61 | # fonts:
62 | # - asset: fonts/Schyler-Regular.ttf
63 | # - asset: fonts/Schyler-Italic.ttf
64 | # style: italic
65 | # - family: Trajan Pro
66 | # fonts:
67 | # - asset: fonts/TrajanPro.ttf
68 | # - asset: fonts/TrajanPro_Bold.ttf
69 | # weight: 700
70 | #
71 | # For details regarding fonts from package dependencies,
72 | # see https://flutter.dev/custom-fonts/#from-packages
73 |
--------------------------------------------------------------------------------
/release.bat:
--------------------------------------------------------------------------------
1 | flutter build apk --split-per-abi
2 | pause
--------------------------------------------------------------------------------
/screenshots/0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/0.png
--------------------------------------------------------------------------------
/screenshots/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/1.png
--------------------------------------------------------------------------------
/screenshots/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/2.png
--------------------------------------------------------------------------------
/screenshots/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/3.png
--------------------------------------------------------------------------------
/screenshots/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/4.png
--------------------------------------------------------------------------------
/screenshots/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/5.png
--------------------------------------------------------------------------------
/screenshots/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/6.png
--------------------------------------------------------------------------------
/screenshots/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/7.png
--------------------------------------------------------------------------------
/screenshots/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shetty073/Timetable-App-in-Flutter/b09db9e75eb79f75724bebf29242af4d9c1bc396/screenshots/8.png
--------------------------------------------------------------------------------
/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:time_table_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(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 |
--------------------------------------------------------------------------------