├── android
├── settings_aar.gradle
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── coaching_app
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── google-services.json
│ ├── build.gradle
│ └── proguard-rules.pro
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
└── .gitignore
├── .gitattributes
├── assets
└── images
│ ├── email.png
│ ├── logo.png
│ ├── aboutUs.png
│ ├── facebook.png
│ ├── google.png
│ ├── MaskGroup1.png
│ ├── logIn.svg
│ ├── logOut.svg
│ └── signUp.svg
├── .metadata
├── lib
├── screens
│ ├── main_screen.dart
│ ├── meeting_screen.dart
│ ├── create_meeting_screen.dart
│ ├── auth
│ │ ├── introduction_auth_screen.dart
│ │ ├── navigate_auth_screen.dart
│ │ ├── forget_password.dart
│ │ ├── login.dart
│ │ └── sign_up.dart
│ ├── landingPage.dart
│ ├── join_meeting_screen.dart
│ └── user_info.dart
├── utilities
│ ├── loading.dart
│ ├── custom_toast.dart
│ ├── universal_variables.dart
│ └── loadingErrorWidget.dart
├── consts
│ ├── my_icons.dart
│ ├── colllections.dart
│ ├── theme_data.dart
│ ├── neuomorphic.dart
│ ├── colors.dart
│ └── constants.dart
├── models
│ ├── announcementsModel.dart
│ ├── meetingsModel.dart
│ ├── appointmentsModel.dart
│ └── users.dart
├── user_state.dart
├── services
│ └── global_method.dart
├── database
│ ├── local_database.dart
│ └── database.dart
├── bottom_bar.dart
└── main.dart
├── README.md
├── .vscode
└── launch.json
├── .gitignore
├── test
└── widget_test.dart
├── pubspec.yaml
└── pubspec.lock
/android/settings_aar.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/assets/images/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/assets/images/email.png
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/assets/images/logo.png
--------------------------------------------------------------------------------
/assets/images/aboutUs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/assets/images/aboutUs.png
--------------------------------------------------------------------------------
/assets/images/facebook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/assets/images/facebook.png
--------------------------------------------------------------------------------
/assets/images/google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/assets/images/google.png
--------------------------------------------------------------------------------
/assets/images/MaskGroup1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/assets/images/MaskGroup1.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/coaching_app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/coaching_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.hassan.coaching_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.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: f4abaa0735eba4dfd8f33f73363911d63931fe03
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/lib/screens/main_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../bottom_bar.dart';
4 |
5 | class MainScreens extends StatelessWidget {
6 | static const routeName = '/MainScreen';
7 | @override
8 | Widget build(BuildContext context) {
9 | return PageView(
10 | children: [BottomBarScreen(),],
11 | );
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/utilities/loading.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/cupertino.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class LoadingIndicator extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | final widget = (Platform.isAndroid)
10 | ? CircularProgressIndicator(
11 | backgroundColor: Colors.black,
12 | )
13 | : CupertinoActivityIndicator();
14 | return Container(
15 | alignment: Alignment.center,
16 | child: widget,
17 | );
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # coaching_app
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/lib/utilities/custom_toast.dart:
--------------------------------------------------------------------------------
1 | import 'package:bot_toast/bot_toast.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | void successToast({
5 | required String message,
6 | int duration = 3,
7 | }) {
8 | BotToast.showText(
9 | text: message,
10 | backgroundColor: Colors.green,
11 | );
12 | }
13 |
14 | void showToast({
15 | required String message,
16 | int duration = 3,
17 | }) {
18 | BotToast.showText(
19 | text: message,
20 | backgroundColor: Colors.green,
21 | );
22 | }
23 |
24 | void errorToast({
25 | required String message,
26 | int duration = 4,
27 | }) {
28 | BotToast.showText(text: message);
29 | }
30 |
--------------------------------------------------------------------------------
/lib/consts/my_icons.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
3 |
4 | class MyAppIcons {
5 | static IconData home = FontAwesomeIcons.home;
6 | static IconData rss = FontAwesomeIcons.rss;
7 | static IconData search = FontAwesomeIcons.search;
8 | static IconData user = FontAwesomeIcons.user;
9 | static IconData cart = FontAwesomeIcons.shoppingCart;
10 | static IconData bag = FontAwesomeIcons.shoppingBag;
11 | static IconData trash = FontAwesomeIcons.trash;
12 | static IconData wishlist = Icons.favorite_border_outlined;
13 | static IconData upload = FontAwesomeIcons.upload;
14 | }
15 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.5.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath 'com.google.gms:google-services:4.3.10'
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/lib/utilities/universal_variables.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import "package:flutter/material.dart";
3 | import 'package:google_fonts/google_fonts.dart';
4 |
5 | TextStyle ralewayStyle(double size,
6 | [Color? color, FontWeight fontWeight = FontWeight.w700]) {
7 | return GoogleFonts.raleway(
8 | fontSize: size,
9 | color: color,
10 | fontWeight: fontWeight,
11 | );
12 | }
13 |
14 | TextStyle montserratStyle(double size,
15 | [Color? color, FontWeight fontWeight = FontWeight.w700]) {
16 | return GoogleFonts.montserrat(
17 | fontSize: size,
18 | color: color,
19 | fontWeight: fontWeight,
20 | );
21 | }
22 |
23 | CollectionReference userCollection =
24 | FirebaseFirestore.instance.collection("users");
25 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "coaching_app",
9 | "request": "launch",
10 | "type": "dart"
11 | },
12 | {
13 | "name": "coaching_app (profile mode)",
14 | "request": "launch",
15 | "type": "dart",
16 | "flutterMode": "profile"
17 | },
18 | {
19 | "name": "coaching_app (release mode)",
20 | "request": "launch",
21 | "type": "dart",
22 | "flutterMode": "release"
23 | }
24 | ]
25 | }
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/lib/models/announcementsModel.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 |
3 | class AnnouncementsModel {
4 | final String? userId;
5 | final String? announcementId;
6 | final String? announcementTitle;
7 | final String? description;
8 | final Timestamp? timestamp;
9 | final String? token;
10 | final String? imageUrl;
11 |
12 | AnnouncementsModel({
13 | this.userId,
14 | this.announcementId,
15 | this.announcementTitle,
16 | this.description,
17 | this.timestamp,
18 | this.token,
19 | this.imageUrl,
20 | });
21 |
22 | Map toMap() {
23 | return {};
24 | }
25 |
26 | factory AnnouncementsModel.fromDocument(doc) {
27 | return AnnouncementsModel(
28 | userId: doc.data()["userId"],
29 | announcementId: doc.data()["announcementId"],
30 | announcementTitle: doc.data()["announcementTitle"],
31 | description: doc.data()["description"],
32 | timestamp: doc.data()["timestamp"],
33 | token: doc.data()["token"],
34 | imageUrl: doc.data()["imageUrl"],
35 | );
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/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:coaching_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 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "640167748698",
4 | "project_id": "coaching-app-3c851",
5 | "storage_bucket": "coaching-app-3c851.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:640167748698:android:cf5d7bdd69f3394ceb6463",
11 | "android_client_info": {
12 | "package_name": "com.hassan.coaching_app"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "640167748698-g7eb0a5tfoktvquvivtta7d5e56m43ph.apps.googleusercontent.com",
18 | "client_type": 3
19 | }
20 | ],
21 | "api_key": [
22 | {
23 | "current_key": "AIzaSyAuzSREtNmq_kS3mL_bS7tPrNuyCELMNYM"
24 | }
25 | ],
26 | "services": {
27 | "appinvite_service": {
28 | "other_platform_oauth_client": [
29 | {
30 | "client_id": "640167748698-g7eb0a5tfoktvquvivtta7d5e56m43ph.apps.googleusercontent.com",
31 | "client_type": 3
32 | }
33 | ]
34 | }
35 | }
36 | }
37 | ],
38 | "configuration_version": "1"
39 | }
--------------------------------------------------------------------------------
/lib/utilities/loadingErrorWidget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class LocationErrorWidget extends StatelessWidget {
4 | final String? error;
5 | final Function? callback;
6 |
7 | const LocationErrorWidget({ this.error, this.callback})
8 | ;
9 |
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | final box = SizedBox(height: 32);
14 | final errorColor = Color(0xffb00020);
15 |
16 | return Container(
17 | child: Center(
18 | child: Column(
19 | mainAxisSize: MainAxisSize.min,
20 | children: [
21 | Icon(
22 | Icons.location_off,
23 | size: 150,
24 | color: errorColor,
25 | ),
26 | box,
27 | Text(
28 | "$error",
29 | style: TextStyle(
30 | color: errorColor, fontWeight: FontWeight.bold),
31 | ),
32 | box,
33 | RaisedButton(
34 | child: Text("Retry"),
35 | onPressed: () {
36 | // if (callback != null) callback();
37 | },
38 | )
39 | ],
40 | ),
41 | ),
42 | );
43 | }
44 | }
--------------------------------------------------------------------------------
/lib/models/meetingsModel.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 |
3 | class MeetingsModel {
4 | final String? meetingId;
5 | final String? meetingTitle;
6 | final Timestamp? startingTime;
7 | final Timestamp? endingTime;
8 | final bool? isAllDay;
9 |
10 | MeetingsModel({
11 | this.meetingId,
12 | this.meetingTitle,
13 | this.startingTime,
14 | this.endingTime,
15 | this.isAllDay,
16 | });
17 |
18 | Map toMap() {
19 | return {
20 | "meetingId": meetingId,
21 | "meetingTitle": meetingTitle,
22 | "startingTime": startingTime,
23 | "endingTime": endingTime,
24 | "isAllDay": isAllDay,
25 | };
26 | }
27 |
28 | factory MeetingsModel.fromMap(Map map) {
29 | return MeetingsModel(
30 | meetingId: map["meetingId"],
31 | meetingTitle: map["meetingTitle"],
32 | startingTime: map["startingTime"],
33 | endingTime: map["endingTime"],
34 | isAllDay: map["isAllDay"],
35 | );
36 | }
37 |
38 | factory MeetingsModel.fromDocument(doc) {
39 | return MeetingsModel(
40 | meetingId: doc.data()["meetingId"],
41 | meetingTitle: doc.data()["meetingTitle"],
42 | startingTime: doc.data()["startingTime"],
43 | endingTime: doc.data()["endingTime"],
44 | isAllDay: doc.data()["isAllDay"],
45 | );
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/consts/colllections.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:coaching_app/models/users.dart';
3 | import 'package:firebase_auth/firebase_auth.dart';
4 | import 'package:firebase_storage/firebase_storage.dart';
5 |
6 | final FirebaseAuth auth = FirebaseAuth.instance;
7 | // firebase_storage.FirebaseStorage storageRef =
8 | // firebase_storage.FirebaseStorage.instance;
9 | final userRef = FirebaseFirestore.instance.collection('users');
10 | final Reference storageRef = FirebaseStorage.instance.ref();
11 | final calenderRef = FirebaseFirestore.instance.collection('calenderMeetings');
12 | final appointmentsRef = FirebaseFirestore.instance.collection('appointments');
13 | final commentsRef = FirebaseFirestore.instance.collection('comments');
14 | final chatRoomRef = FirebaseFirestore.instance.collection('chatRoom');
15 | final chatListRef = FirebaseFirestore.instance.collection('chatLists');
16 | final studentJournelRef =
17 | FirebaseFirestore.instance.collection('studentJournel');
18 | final attendanceRef = FirebaseFirestore.instance.collection('attendanceRef');
19 | final announcementsRef = FirebaseFirestore.instance.collection('announcements');
20 |
21 | final feeRef = FirebaseFirestore.instance.collection('feeRef');
22 |
23 | AppUserModel? currentUser;
24 | bool? isAdmin;
25 | bool? isTeacher;
26 |
27 | String dateTimeScript =
28 | "${DateTime.now().day} : ${DateTime.now().month} : ${DateTime.now().year}";
29 |
--------------------------------------------------------------------------------
/lib/user_state.dart:
--------------------------------------------------------------------------------
1 | import 'package:coaching_app/screens/auth/introduction_auth_screen.dart';
2 | import 'package:coaching_app/screens/landingPage.dart';
3 | import 'package:coaching_app/screens/main_screen.dart';
4 | import 'package:firebase_auth/firebase_auth.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class UserState extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return StreamBuilder(
11 | stream: FirebaseAuth.instance.authStateChanges(),
12 | // ignore: missing_return
13 | builder: (context, userSnapshot) {
14 | if (userSnapshot.connectionState == ConnectionState.waiting) {
15 | return Center(
16 | child: CircularProgressIndicator(),
17 | );
18 | } else if (userSnapshot.connectionState == ConnectionState.active) {
19 | if (userSnapshot.hasData) {
20 | print('The user is already logged in');
21 | return MainScreens();
22 | // MainScreens();
23 | } else {
24 | print('The user didn\'t login yet');
25 | return IntroductionAuthScreen();
26 | // LandingPage();
27 | }
28 | } else if (userSnapshot.hasError) {
29 | return Center(
30 | child: Text('Error occured'),
31 | );
32 | } else {
33 | return Center(
34 | child: Text('Error occured'),
35 | );
36 | }
37 | });
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/consts/theme_data.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 |
3 | import 'package:flutter/material.dart';
4 |
5 | class Styles {
6 | static ThemeData themeData(bool isDarkTheme, BuildContext context) {
7 | return ThemeData(
8 | scaffoldBackgroundColor:
9 | isDarkTheme ? Colors.black : Colors.grey.shade300,
10 | primarySwatch: Colors.purple,
11 | primaryColor: isDarkTheme ? Colors.black : Colors.grey.shade300,
12 | accentColor: Colors.deepPurple,
13 | backgroundColor: isDarkTheme ? Colors.grey.shade700 : Colors.white,
14 | indicatorColor: isDarkTheme ? Color(0xff0E1D36) : Color(0xffCBDCF8),
15 | buttonColor: isDarkTheme ? Color(0xff3B3B3B) : Color(0xffF1F5FB),
16 | hintColor: isDarkTheme ? Colors.grey.shade300 : Colors.grey.shade800,
17 | // highlightColor: isDarkTheme ? Color(0xff372901) : Color(0xffFCE192),
18 | hoverColor: isDarkTheme ? Color(0xff3A3A3B) : Color(0xff4285F4),
19 | focusColor: isDarkTheme ? Color(0xff0B2512) : Color(0xffA8DAB5),
20 | disabledColor: Colors.grey,
21 | textSelectionColor: isDarkTheme ? Colors.white : Colors.black,
22 | cardColor: isDarkTheme ? Color(0xFF151515) : Colors.white,
23 | canvasColor: isDarkTheme ? Colors.black : Colors.grey[50],
24 | brightness: isDarkTheme ? Brightness.dark : Brightness.light,
25 | buttonTheme: Theme.of(context).buttonTheme.copyWith(
26 | colorScheme: isDarkTheme ? ColorScheme.dark() : ColorScheme.light()),
27 | appBarTheme: AppBarTheme(
28 | elevation: 0.0,
29 | ),
30 | );
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/consts/neuomorphic.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:glassmorphism_ui/glassmorphism_ui.dart';
3 |
4 | class EditedNeuomprphicContainer extends StatelessWidget {
5 | EditedNeuomprphicContainer({
6 | this.icon,
7 | this.text,
8 | this.isIcon = true,
9 | });
10 | final IconData? icon;
11 | final String? text;
12 | final bool? isIcon;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return Padding(
17 | padding: const EdgeInsets.all(12.0),
18 | child: GlassContainer(
19 | borderRadius: BorderRadius.circular(20),
20 | width: isIcon! ? 120 : 100,
21 | blur: 8,
22 | height: isIcon! ? 120 : 100,
23 | opacity: 0.3,
24 | shadowStrength: 8,
25 | child: Center(
26 | child: Padding(
27 | padding: const EdgeInsets.all(8.0),
28 | child: Column(
29 | mainAxisAlignment: MainAxisAlignment.center,
30 | crossAxisAlignment: CrossAxisAlignment.center,
31 | children: [
32 | // isIcon!
33 | // ?
34 | Icon(icon),
35 | // :Container(),
36 | Padding(
37 | padding: const EdgeInsets.all(4.0),
38 | child: Text(
39 | text!,
40 | textAlign: TextAlign.center,
41 | style: TextStyle(fontWeight: FontWeight.bold),
42 | ),
43 | )
44 | ],
45 | ),
46 | ),
47 | ),
48 | ),
49 | );
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/lib/consts/colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ColorsConsts {
4 | static Color black = Color(0xFF000000);
5 | static Color white = Color(0xFFFFFFFF);
6 | static Color title = Color(0xDD000000);
7 | static Color subTitle = Color(0x8A000000);
8 | static Color backgroundColor = Color(0xFFE0E0E0); //grey shade 300
9 |
10 | static Color favColor = Color(0xFFF44336); // red 500
11 | static Color favBadgeColor = Color(0xFFE57373); // red 300
12 |
13 | static Color cartColor = Color(0xFF5E35B1); //deep purple 600
14 | static Color cartBadgeColor = Color(0xFFBA68C8); //purple 300
15 |
16 | static Color gradiendFStart = Color(0xFF07A8B2); //purpleaccent 100
17 | static Color gradiendFEnd = Color(0xFFFFFFFF); //purple 100
18 | static Color endColor = Color(0xFFCE93D8); //purple 200
19 | static Color purple300 = Color(0xFFBA68C8); //purple 300
20 | static Color gradiendLEnd = Color(0xFFE91E63); //Pink
21 | static Color gradiendLStart = Color(0xFF9C27B0); //purple 500
22 | static Color starterColor = Color(0xFF8E24AA); //purple 600
23 | static Color purple800 = Color(0xFF6A1B9A);
24 | }
25 |
26 | BoxDecoration backgroundColorBoxDecoration() {
27 | return BoxDecoration(
28 | gradient: LinearGradient(
29 | colors: [
30 | // Color(0xff387A53),
31 | // Color(0xff8BE78B),
32 |
33 | Colors.white,
34 | Color(0xFF07A8B2)
35 | // Color(0xffFED5E3),
36 | // Color(0xff96B7BF),
37 |
38 | // Colors.green[100],
39 | // Colors.blue[200],
40 | ],
41 | begin: Alignment.topLeft,
42 | end: Alignment.bottomLeft,
43 | ),
44 | );
45 | }
46 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | coaching_app
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/assets/images/logIn.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/images/logOut.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/screens/meeting_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:coaching_app/utilities/universal_variables.dart';
2 | import "package:flutter/material.dart";
3 | import 'create_meeting_screen.dart';
4 | import 'join_meeting_screen.dart';
5 |
6 | class MeetingScreen extends StatefulWidget {
7 | static const routeName = '/MeetingScreen';
8 |
9 | @override
10 | _MeetingScreenState createState() => _MeetingScreenState();
11 | }
12 |
13 | class _MeetingScreenState extends State
14 | with SingleTickerProviderStateMixin {
15 | TabController? tabController;
16 | tabBuilder(String name) {
17 | return Container(
18 | width: 150,
19 | height: 50,
20 | child: Card(
21 | child: Center(
22 | child: Text(
23 | name,
24 | style: ralewayStyle(
25 | 15,
26 | Colors.black,
27 | ),
28 | ),
29 | ),
30 | ),
31 | );
32 | }
33 |
34 | @override
35 | void initState() {
36 | super.initState();
37 | tabController = TabController(length: 2, vsync: this);
38 | }
39 |
40 | @override
41 | Widget build(BuildContext context) {
42 | return Scaffold(
43 | appBar: AppBar(
44 | title: Text(
45 | "Coaching App",
46 | style: ralewayStyle(20, Colors.white),
47 | ),
48 | centerTitle: true,
49 | backgroundColor: Color(0xFF07A8B2),
50 | bottom: TabBar(
51 | controller: tabController,
52 | tabs: [
53 | tabBuilder("Join Meeting"),
54 | tabBuilder("Create Meeting"),
55 | ],
56 | ),
57 | ),
58 | body: TabBarView(
59 | controller: tabController,
60 | children: [
61 | JoinMeetingScreen(),
62 | CreateMeeetingScreen(),
63 | ],
64 | ),
65 | );
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 | apply plugin: 'com.google.gms.google-services'
28 |
29 | android {
30 | compileSdkVersion 31
31 |
32 | sourceSets {
33 | main.java.srcDirs += 'src/main/kotlin'
34 | }
35 |
36 | defaultConfig {
37 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
38 | applicationId "com.hassan.coaching_app"
39 | minSdkVersion 23
40 | targetSdkVersion 31
41 | versionCode flutterVersionCode.toInteger()
42 | versionName flutterVersionName
43 | }
44 |
45 | buildTypes {
46 | release {
47 | // TODO: Add your own signing config for the release build.
48 | // Signing with the debug keys for now, so `flutter run --release` works.
49 | signingConfig signingConfigs.debug
50 | minifyEnabled true
51 | useProguard false
52 | // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | implementation platform('com.google.firebase:firebase-bom:28.4.1')
65 | implementation 'com.google.firebase:firebase-analytics-ktx'
66 |
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/services/global_method.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class GlobalMethods {
4 | Future showDialogg(
5 | String title, String subtitle, Function fct, BuildContext context) async {
6 | showDialog(
7 | context: context,
8 | builder: (BuildContext ctx) {
9 | return AlertDialog(
10 | title: Row(
11 | children: [
12 | Padding(
13 | padding: const EdgeInsets.only(right: 6.0),
14 | child: Image.network(
15 | 'https://image.flaticon.com/icons/png/128/564/564619.png',
16 | height: 20,
17 | width: 20,
18 | ),
19 | ),
20 | Padding(
21 | padding: const EdgeInsets.all(8.0),
22 | child: Text(title),
23 | ),
24 | ],
25 | ),
26 | content: Text(subtitle),
27 | actions: [
28 | TextButton(
29 | onPressed: () => Navigator.pop(context),
30 | child: Text('Cancel')),
31 | TextButton(
32 | onPressed: () {
33 | fct();
34 | Navigator.pop(context);
35 | },
36 | child: Text('ok'))
37 | ],
38 | );
39 | });
40 | }
41 |
42 | Future authErrorHandle(String subtitle, BuildContext context) async {
43 | showDialog(
44 | context: context,
45 | builder: (BuildContext ctx) {
46 | return AlertDialog(
47 | title: Row(
48 | children: [
49 | Padding(
50 | padding: const EdgeInsets.only(right: 6.0),
51 | child: Image.network(
52 | 'https://image.flaticon.com/icons/png/128/564/564619.png',
53 | height: 20,
54 | width: 20,
55 | ),
56 | ),
57 | Padding(
58 | padding: const EdgeInsets.all(8.0),
59 | child: Text('Error occured'),
60 | ),
61 | ],
62 | ),
63 | content: Text(subtitle),
64 | actions: [
65 |
66 | TextButton(
67 | onPressed: () {
68 | Navigator.pop(context);
69 | },
70 | child: Text('Ok'))
71 | ],
72 | );
73 | });
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/lib/database/local_database.dart:
--------------------------------------------------------------------------------
1 | import 'package:get_storage/get_storage.dart';
2 |
3 | class UserLocalData {
4 | String s = 'sd';
5 | final getStorageProference = GetStorage();
6 |
7 | // Future init() async => _preferences = await SharedPreferences.getInstance();
8 |
9 | // Future logOut() => _preferences.clear();
10 |
11 | Future logOut() => getStorageProference.erase();
12 | final _userModelString = 'USERMODELSTRING';
13 | final _uidKey = 'UIDKEY';
14 | final _isLoggedIn = "ISLOGGEDIN";
15 | final _emailKey = 'EMAILKEY';
16 | final _userNameKey = 'USERNAMEKEY';
17 | // final _phoneNumberKey = 'PhoneNumber';
18 | // final _imageUrlKey = 'IMAGEURLKEY';
19 | // final _password = 'PASSWORD';
20 | final _isAdmin = 'ISADMIN';
21 | final _token = 'TOKEN';
22 | final _branches = 'BRANCHES';
23 | final _classes = 'CLASSES';
24 |
25 | //
26 | // Setters
27 | //
28 |
29 | Future setUserModel(String userModel) async =>
30 | getStorageProference.write(_userModelString, userModel);
31 | Future setUserEmail(String? email) async =>
32 | getStorageProference.write(_emailKey, email);
33 | Future setUserName(String? userName) async =>
34 | getStorageProference.write(_userNameKey, userName);
35 | Future setToken(String token) async =>
36 | getStorageProference.write(_token, token);
37 |
38 | Future setBranches(String branches) async =>
39 | getStorageProference.write(_branches, branches);
40 | Future setClasses(String classes) async =>
41 | getStorageProference.write(_classes, classes);
42 |
43 | Future setIsAdmin(bool? isAdmin) async =>
44 | getStorageProference.write(_isAdmin, isAdmin);
45 |
46 | Future setUserUID(String? uid) async =>
47 | getStorageProference.write(_uidKey, uid);
48 |
49 | Future setNotLoggedIn() async =>
50 | getStorageProference.write(_isLoggedIn, false);
51 |
52 | Future setLoggedIn(bool isLoggedIn) async =>
53 | getStorageProference.write(_isLoggedIn, isLoggedIn);
54 |
55 | //
56 | // Getters
57 | //
58 | bool? getIsAdmin() => getStorageProference.read(_isAdmin);
59 | String getUserData() => getStorageProference.read(_userModelString) ?? '';
60 | String getBranches() => getStorageProference.read(_branches) ?? "";
61 | String getClasses() => getStorageProference.read(_classes) ?? "";
62 |
63 | String getUserUIDGet() => getStorageProference.read(_uidKey) ?? '';
64 | bool? isLoggedIn() => getStorageProference.read(_uidKey);
65 | String getUserEmail() => getStorageProference.read(_emailKey) ?? '';
66 | String getUserName() => getStorageProference.read(_userNameKey) ?? '';
67 | }
68 |
--------------------------------------------------------------------------------
/lib/models/appointmentsModel.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cloud_firestore/cloud_firestore.dart';
3 |
4 | class AppointmentsModel {
5 | final String? appointmentId;
6 | final String? appointmentTitle;
7 | final String? description;
8 | final Timestamp? startingTime;
9 | final Timestamp? endingTime;
10 | final Timestamp? appointmentDate;
11 |
12 | AppointmentsModel({
13 | this.appointmentId,
14 | this.appointmentTitle,
15 | this.description,
16 | this.startingTime,
17 | this.endingTime,
18 | this.appointmentDate,
19 | });
20 |
21 |
22 |
23 | factory AppointmentsModel.fromDocument(doc) {
24 | return AppointmentsModel(
25 | appointmentId: doc.data()["appointmentId"],
26 | appointmentTitle: doc.data()["appointmentTitle"],
27 | startingTime: doc.data()["startingTime"],
28 | endingTime: doc.data()["endingTime"],
29 | appointmentDate: doc.data()["appointmentDate"],
30 | description: doc.data()["description"],
31 | );
32 | }
33 |
34 | AppointmentsModel copyWith({
35 | String? appointmentId,
36 | String? appointmentTitle,
37 | String? description,
38 | Timestamp? startingTime,
39 | Timestamp? endingTime,
40 | Timestamp? appointmentDate,
41 | }) {
42 | return AppointmentsModel(
43 | appointmentId: appointmentId ?? this.appointmentId,
44 | appointmentTitle: appointmentTitle ?? this.appointmentTitle,
45 | description: description ?? this.description,
46 | startingTime: startingTime ?? this.startingTime,
47 | endingTime: endingTime ?? this.endingTime,
48 | appointmentDate: appointmentDate ?? this.appointmentDate,
49 | );
50 | }
51 |
52 |
53 |
54 | @override
55 | String toString() {
56 | return 'AppointmentsModel(appointmentId: $appointmentId, appointmentTitle: $appointmentTitle, description: $description, startingTime: $startingTime, endingTime: $endingTime, appointmentDate: $appointmentDate)';
57 | }
58 |
59 | @override
60 | bool operator ==(Object other) {
61 | if (identical(this, other)) return true;
62 |
63 | return other is AppointmentsModel &&
64 | other.appointmentId == appointmentId &&
65 | other.appointmentTitle == appointmentTitle &&
66 | other.description == description &&
67 | other.startingTime == startingTime &&
68 | other.endingTime == endingTime &&
69 | other.appointmentDate == appointmentDate;
70 | }
71 |
72 | @override
73 | int get hashCode {
74 | return appointmentId.hashCode ^
75 | appointmentTitle.hashCode ^
76 | description.hashCode ^
77 | startingTime.hashCode ^
78 | endingTime.hashCode ^
79 | appointmentDate.hashCode;
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/lib/screens/create_meeting_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:coaching_app/consts/colors.dart';
2 | import 'package:coaching_app/utilities/universal_variables.dart';
3 | import "package:flutter/material.dart";
4 | import 'package:flutter_gradient_colors/flutter_gradient_colors.dart';
5 | import 'package:uuid/uuid.dart';
6 |
7 | class CreateMeeetingScreen extends StatefulWidget {
8 | @override
9 | _CreateMeeetingScreenState createState() => _CreateMeeetingScreenState();
10 | }
11 |
12 | class _CreateMeeetingScreenState extends State {
13 | String code = "";
14 | var isVis = false;
15 |
16 | generateMeetingCode() {
17 | setState(() {
18 | code = Uuid().v1().substring(0, 6);
19 | isVis = true;
20 | });
21 | }
22 |
23 | @override
24 | Widget build(BuildContext context) {
25 | return Container(
26 | decoration: backgroundColorBoxDecoration(),
27 | child: Scaffold(
28 | backgroundColor: Colors.transparent,
29 | body: Column(
30 | mainAxisAlignment: MainAxisAlignment.center,
31 | children: [
32 | Container(
33 | margin: EdgeInsets.only(top: 20),
34 | child: Text(
35 | "Create a code to create a meeting!",
36 | style: montserratStyle(20),
37 | textAlign: TextAlign.center,
38 | ),
39 | ),
40 | SizedBox(
41 | height: 40,
42 | ),
43 | isVis == true
44 | ? Row(
45 | mainAxisAlignment: MainAxisAlignment.center,
46 | children: [
47 | Text(
48 | "Code: ",
49 | style: ralewayStyle(30),
50 | ),
51 | Text(
52 | code,
53 | style: montserratStyle(30, Colors.red, FontWeight.w700),
54 | ),
55 | ],
56 | )
57 | : Container(),
58 | SizedBox(
59 | height: 20,
60 | ),
61 | InkWell(
62 | onTap: generateMeetingCode,
63 | child: Container(
64 | width: MediaQuery.of(context).size.width / 2,
65 | height: 50,
66 | decoration: BoxDecoration(
67 | gradient: LinearGradient(
68 | colors: GradientColors.facebookMessenger,
69 | ),
70 | ),
71 | child: Center(
72 | child: Text(
73 | "Create Code",
74 | style: montserratStyle(20, Colors.white),
75 | ),
76 | ),
77 | ),
78 | ),
79 | ],
80 | ),
81 | ),
82 | );
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/lib/screens/auth/introduction_auth_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:coaching_app/screens/auth/navigate_auth_screen.dart';
2 | import 'package:coaching_app/utilities/universal_variables.dart';
3 | import "package:flutter/material.dart";
4 | import 'package:introduction_screen/introduction_screen.dart';
5 |
6 | class IntroductionAuthScreen extends StatefulWidget {
7 | @override
8 | _IntroductionAuthScreenState createState() => _IntroductionAuthScreenState();
9 | }
10 |
11 | class _IntroductionAuthScreenState extends State {
12 | @override
13 | Widget build(BuildContext context) {
14 | return IntroductionScreen(
15 | pages: [
16 | PageViewModel(
17 | title: "Welcome",
18 | body: "Welcome to Coaching App",
19 | decoration: PageDecoration(
20 | bodyTextStyle: ralewayStyle(20, Colors.black),
21 | titleTextStyle: montserratStyle(20, Colors.black),
22 | ),
23 | image: Center(
24 | child: Image(
25 | image: NetworkImage(
26 | "https://static01.nyt.com/images/2020/03/25/business/25Techfix-illo/25Techfix-illo-mobileMasterAt3x.jpg",
27 | ),
28 | ),
29 | ),
30 | ),
31 | PageViewModel(
32 | title: "Create & Join Meetings",
33 | body:
34 | "Create Meeting codes and join meeting with codes with just a single click",
35 | decoration: PageDecoration(
36 | bodyTextStyle: ralewayStyle(20, Colors.black),
37 | titleTextStyle: montserratStyle(20, Colors.black),
38 | ),
39 | image: Center(
40 | child: Image(
41 | image: NetworkImage(
42 | "https://static01.nyt.com/images/2020/03/25/business/25Techfix-illo/25Techfix-illo-mobileMasterAt3x.jpg",
43 | ),
44 | ),
45 | ),
46 | ),
47 | PageViewModel(
48 | title: "Privacy",
49 | body: "We Respect your Privacy",
50 | decoration: PageDecoration(
51 | bodyTextStyle: ralewayStyle(20, Colors.black),
52 | titleTextStyle: montserratStyle(20, Colors.black),
53 | ),
54 | image: Center(
55 | child: Image(
56 | image: NetworkImage(
57 | "https://www.pngitem.com/pimgs/m/74-745197_cyber-security-png-png-download-computer-security-png.png",
58 | ),
59 | ),
60 | ),
61 | ),
62 | ],
63 | onDone: () {
64 | Navigator.of(context)
65 | .push(MaterialPageRoute(builder: (ctx) => NavigateAuthScreen()));
66 | },
67 | onSkip: () {},
68 | showSkipButton: true,
69 | skip: const Icon(
70 | Icons.skip_next,
71 | size: 45,
72 | ),
73 | next: const Icon(Icons.arrow_forward),
74 | done: Text(
75 | "DONE",
76 | style: ralewayStyle(20, Colors.black),
77 | ),
78 | );
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
27 |
34 |
38 |
42 |
43 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
58 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/lib/screens/landingPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:coaching_app/consts/colors.dart';
2 | import 'package:coaching_app/consts/neuomorphic.dart';
3 | import 'package:coaching_app/screens/user_info.dart';
4 | import 'package:firebase_auth/firebase_auth.dart';
5 | import 'package:flutter/cupertino.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:url_launcher/url_launcher.dart';
8 |
9 | import 'create_meeting_screen.dart';
10 | import 'join_meeting_screen.dart';
11 |
12 | class LandingPage extends StatefulWidget {
13 | static const routeName = '/LandingPage';
14 | @override
15 | _LandingPageState createState() => _LandingPageState();
16 | }
17 |
18 | class _LandingPageState extends State {
19 | bool _isLoading = false;
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | return SafeArea(
24 | child: Container(
25 | decoration: backgroundColorBoxDecoration(),
26 | child: Scaffold(
27 | backgroundColor: Colors.transparent,
28 | body: SingleChildScrollView(
29 | child: Center(
30 | child: Column(
31 | mainAxisAlignment: MainAxisAlignment.center,
32 | crossAxisAlignment: CrossAxisAlignment.center,
33 | children: [
34 | SizedBox(
35 | height: MediaQuery.of(context).size.height * 0.08,
36 | ),
37 | SizedBox(
38 | height: MediaQuery.of(context).size.height * 0.08,
39 | ),
40 | GestureDetector(
41 | onTap: () {
42 | Navigator.of(context).push(MaterialPageRoute(
43 | builder: (context) => JoinMeetingScreen()));
44 | },
45 | child: EditedNeuomprphicContainer(
46 | text: "Join Meeting",
47 | ),
48 | ),
49 | GestureDetector(
50 | onTap: () {
51 | Navigator.of(context).push(MaterialPageRoute(
52 | builder: (context) => CreateMeeetingScreen()));
53 | },
54 | child: EditedNeuomprphicContainer(
55 | text: "Create Meeting",
56 | ),
57 | ),
58 | GestureDetector(
59 | onTap: () {
60 | Navigator.of(context).push(MaterialPageRoute(
61 | builder: (context) => ProfilePage()));
62 | },
63 | child: EditedNeuomprphicContainer(
64 | text: "Check Profile",
65 | ),
66 | ),
67 | ],
68 | ),
69 | ),
70 | ),
71 | ),
72 | ),
73 | );
74 | }
75 |
76 | Future _launchInBrowser(String url) async {
77 | if (await canLaunch(url)) {
78 | await launch(
79 | url,
80 | forceSafariVC: false,
81 | forceWebView: false,
82 | headers: {'my_header_key': 'my_header_value'},
83 | );
84 | } else {
85 | throw 'Could not launch $url';
86 | }
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/lib/consts/constants.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | String logo = "assets/images/logo.png";
4 | String logoBackground = "assets/images/logoBackground.jpeg";
5 | String loginIcon = "assets/images/logIn.svg";
6 | String logOutIcon = "assets/images/logOut.svg";
7 | String signUp = "assets/images/signUp.svg";
8 | String googleLogo = "assets/images/google.png";
9 | String facebookLogo = "assets/images/facebook.png";
10 | String emailIcon = "assets/images/email.png";
11 | String forgetPassPageIcon = "assets/images/MaskGroup1.png";
12 | String appointmentLottie = "assets/lottie/appointment-booking.json";
13 | String videoLottie = "assets/lottie/video-design.json";
14 | String userDetailsLottie = "assets/lottie/userDetails.json";
15 | String aboutUsIcon = "assets/images/aboutUs.png";
16 |
17 | TextStyle titleTextStyle({double fontSize = 25, Color color = Colors.black}) {
18 | return TextStyle(
19 | fontSize: fontSize,
20 | fontWeight: FontWeight.w600,
21 | color: color,
22 | letterSpacing: 1.8);
23 | }
24 |
25 | TextStyle averageTextStyle({double fontSize = 18, Color color = Colors.black}) {
26 | return TextStyle(
27 | fontSize: fontSize,
28 | fontWeight: FontWeight.w300,
29 | color: color,
30 | letterSpacing: 1.8);
31 | }
32 |
33 | Color containerColor = Colors.blue;
34 | // Color(0xff96B7BF);
35 |
36 | // Colors.white;
37 | // Color(0xffFED5E3);
38 | BoxDecoration backgroundColorBoxDecorationLogo() {
39 | return BoxDecoration(
40 | image: DecorationImage(
41 | image: AssetImage(logo),
42 | colorFilter: ColorFilter.mode(Colors.white70, BlendMode.srcATop),
43 | alignment: Alignment.center,
44 | scale: 0.3),
45 | gradient: LinearGradient(
46 | colors: [
47 | // Color(0xff387A53),
48 | // Color(0xff8BE78B),
49 |
50 | Colors.white,
51 | Color(0xff96B7BF),
52 |
53 | // Colors.green[100],
54 | // Colors.blue[200],
55 | ],
56 | begin: Alignment.topLeft,
57 | end: Alignment.bottomLeft,
58 | ),
59 | );
60 | }
61 |
62 | BoxDecoration backgroundColorBoxDecoration() {
63 | return BoxDecoration(
64 | gradient: LinearGradient(
65 | colors: [
66 | // Color(0xff387A53),
67 | // Color(0xff8BE78B),
68 |
69 | Colors.white,
70 | Colors.blue,
71 | // Color(0xffFED5E3),
72 | // Color(0xff96B7BF),
73 |
74 | // Colors.green[100],
75 | // Colors.blue[200],
76 | ],
77 | begin: Alignment.topLeft,
78 | end: Alignment.bottomLeft,
79 | ),
80 | );
81 | }
82 |
83 | TextStyle customTextStyle(
84 | {FontWeight fontWeight = FontWeight.w300,
85 | double fontSize = 25,
86 | Color color = Colors.black}) {
87 | return TextStyle(
88 | fontSize: fontSize,
89 | fontWeight: fontWeight,
90 | color: color,
91 | letterSpacing: 3);
92 | }
93 |
94 | BoxDecoration drawerColorBoxDecoration() {
95 | return BoxDecoration(
96 | gradient: LinearGradient(
97 | colors: [
98 | // Color(0xff8BE78B),
99 | Colors.black,
100 | Colors.green.shade100,
101 | ],
102 | begin: Alignment.bottomRight,
103 | end: Alignment.topLeft,
104 | ),
105 | );
106 | }
107 |
--------------------------------------------------------------------------------
/assets/images/signUp.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
68 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: coaching_app
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 | image_picker:
27 | uuid:
28 | wave:
29 | fluttertoast:
30 | provider:
31 | introduction_screen:
32 | flutter_gradient_colors:
33 | google_fonts:
34 | font_awesome_flutter:
35 | glassmorphism_ui:
36 | flutter_local_notifications:
37 | firebase_messaging:
38 | firebase_storage:
39 | cloud_firestore:
40 | firebase_auth:
41 | firebase_core:
42 | get_storage:
43 | animated_splash_screen:
44 | list_tile_switch:
45 | pin_code_fields:
46 | jitsi_meet:
47 | url_launcher:
48 | get:
49 | bot_toast:
50 | # The following adds the Cupertino Icons font to your application.
51 | # Use with the CupertinoIcons class for iOS style icons.
52 | cupertino_icons: ^1.0.2
53 |
54 | dev_dependencies:
55 | flutter_test:
56 | sdk: flutter
57 |
58 | # For information on the generic Dart part of this file, see the
59 | # following page: https://dart.dev/tools/pub/pubspec
60 |
61 | # The following section is specific to Flutter.
62 | flutter:
63 |
64 | # The following line ensures that the Material Icons font is
65 | # included with your application, so that you can use the icons in
66 | # the material Icons class.
67 | uses-material-design: true
68 |
69 | # To add assets to your application, add an assets section, like this:
70 | assets:
71 | - assets/
72 |
73 | # An image asset can refer to one or more resolution-specific "variants", see
74 | # https://flutter.dev/assets-and-images/#resolution-aware.
75 |
76 | # For details regarding adding assets from package dependencies, see
77 | # https://flutter.dev/assets-and-images/#from-packages
78 |
79 | # To add custom fonts to your application, add a fonts section here,
80 | # in this "flutter" section. Each entry in this list should have a
81 | # "family" key with the font family name, and a "fonts" key with a
82 | # list giving the asset and other descriptors for the font. For
83 | # example:
84 | # fonts:
85 | # - family: Schyler
86 | # fonts:
87 | # - asset: fonts/Schyler-Regular.ttf
88 | # - asset: fonts/Schyler-Italic.ttf
89 | # style: italic
90 | # - family: Trajan Pro
91 | # fonts:
92 | # - asset: fonts/TrajanPro.ttf
93 | # - asset: fonts/TrajanPro_Bold.ttf
94 | # weight: 700
95 | #
96 | # For details regarding fonts from package dependencies,
97 | # see https://flutter.dev/custom-fonts/#from-packages
98 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/lib/bottom_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:coaching_app/screens/meeting_screen.dart';
2 | import 'package:coaching_app/screens/user_info.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | import 'consts/my_icons.dart';
6 |
7 | class BottomBarScreen extends StatefulWidget {
8 | static const routeName = '/BottomBarScreen';
9 | @override
10 | _BottomBarScreenState createState() => _BottomBarScreenState();
11 | }
12 |
13 | class _BottomBarScreenState extends State {
14 | // List