├── README.md
├── 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
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
└── .gitignore
├── .gitattributes
├── AppIcons
├── appstore.png
├── playstore.png
├── android
│ ├── 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
└── Assets.xcassets
│ └── AppIcon.appiconset
│ ├── 100.png
│ ├── 114.png
│ ├── 120.png
│ ├── 128.png
│ ├── 144.png
│ ├── 152.png
│ ├── 16.png
│ ├── 167.png
│ ├── 172.png
│ ├── 180.png
│ ├── 196.png
│ ├── 20.png
│ ├── 216.png
│ ├── 256.png
│ ├── 29.png
│ ├── 32.png
│ ├── 40.png
│ ├── 48.png
│ ├── 50.png
│ ├── 512.png
│ ├── 55.png
│ ├── 57.png
│ ├── 58.png
│ ├── 60.png
│ ├── 64.png
│ ├── 72.png
│ ├── 76.png
│ ├── 80.png
│ ├── 87.png
│ ├── 88.png
│ ├── 1024.png
│ └── Contents.json
├── assets
└── images
│ ├── email.png
│ ├── logo.jpeg
│ ├── MaskGroup1.png
│ ├── logIn.svg
│ ├── logOut.svg
│ └── signUp.svg
├── lib
├── Utils
│ ├── palette.dart
│ ├── consts.dart
│ └── commonWidgets.dart
├── tools
│ ├── custom_toast.dart
│ └── loading.dart
├── Screens
│ ├── webview.dart
│ ├── credentials
│ │ ├── loginRelated
│ │ │ ├── forget_password_page.dart
│ │ │ └── login_page.dart
│ │ └── signUpRelated
│ │ │ └── signup_page.dart
│ ├── Admin
│ │ ├── allUsers.dart
│ │ └── commentsNChatAdmin.dart
│ └── user_info.dart
├── Models
│ ├── announcements_model.dart
│ └── users.dart
├── Services
│ ├── firebase_api.dart
│ ├── user_state.dart
│ ├── global_method.dart
│ ├── notificationHandler.dart
│ ├── payment.dart
│ └── authentication_service.dart
├── main.dart
├── Database
│ └── database.dart
└── announcements
│ ├── announcements.dart
│ └── addAnnouncements.dart
├── android
├── 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
│ │ │ │ │ └── bull_signal
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── google-services.json
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── .metadata
├── .gitignore
├── LICENSE
├── test
└── widget_test.dart
├── analysis_options.yaml
├── pubspec.yaml
└── pubspec.lock
/README.md:
--------------------------------------------------------------------------------
1 | # bull_signal
2 |
3 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/AppIcons/appstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/appstore.png
--------------------------------------------------------------------------------
/AppIcons/playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/playstore.png
--------------------------------------------------------------------------------
/assets/images/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/assets/images/email.png
--------------------------------------------------------------------------------
/assets/images/logo.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/assets/images/logo.jpeg
--------------------------------------------------------------------------------
/lib/Utils/palette.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | Color containerColor = Colors.green;
4 |
--------------------------------------------------------------------------------
/assets/images/MaskGroup1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/assets/images/MaskGroup1.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/AppIcons/android/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/android/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AppIcons/android/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/android/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AppIcons/android/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/android/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AppIcons/android/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/android/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AppIcons/android/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/android/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/100.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/114.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/120.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/128.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/144.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/152.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/16.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/167.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/172.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/172.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/180.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/196.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/196.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/20.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/216.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/216.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/256.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/29.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/32.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/40.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/48.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/50.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/512.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/55.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/55.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/57.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/58.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/60.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/64.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/72.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/76.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/80.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/87.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/88.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/88.png
--------------------------------------------------------------------------------
/AppIcons/Assets.xcassets/AppIcon.appiconset/1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/HEAD/AppIcons/Assets.xcassets/AppIcon.appiconset/1024.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hassan-zafar/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/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/bull_signal/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/bull_signal/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.hassan.bull_signal
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 |
--------------------------------------------------------------------------------
/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: cf4400006550b70f28e4b4af815151d1e74846c6
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/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/tools/custom_toast.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:fluttertoast/fluttertoast.dart';
3 |
4 | void successToast({
5 | required String message,
6 | int duration = 3,
7 | }) {
8 | Fluttertoast.showToast(
9 | msg: message,
10 | );
11 | }
12 |
13 | void showToast({
14 | required String message,
15 | int duration = 3,
16 | }) {
17 | Fluttertoast.showToast(
18 | msg: message,
19 | );
20 | }
21 |
22 | void errorToast({
23 | required String message,
24 | int duration = 4,
25 | }) {
26 | Fluttertoast.showToast(msg: message, backgroundColor: Colors.red);
27 | }
28 |
--------------------------------------------------------------------------------
/lib/tools/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 | const LoadingIndicator({Key? key}) : super(key: key);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | final widget = (Platform.isAndroid)
12 | ? const CircularProgressIndicator(
13 | backgroundColor: Colors.black,
14 | )
15 | : const CupertinoActivityIndicator();
16 | return Container(
17 | alignment: Alignment.center,
18 | child: widget,
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/lib/Screens/webview.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
3 |
4 | class Webview extends StatefulWidget {
5 | const Webview({Key? key}) : super(key: key);
6 |
7 | @override
8 | _WebviewState createState() => _WebviewState();
9 | }
10 |
11 | class _WebviewState extends State {
12 | @override
13 | Widget build(BuildContext context) {
14 | return const WebviewScaffold(
15 | withZoom: true,
16 | url: "https://www.tradingview.com/markets/cryptocurrencies/prices-all/",
17 | withJavascript: true,
18 | // appBar: AppBar(
19 | // title: Text("hjg"),
20 | // backgroundColor: Colors.black,
21 | // ),
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.5.0'
3 | repositories {
4 | google()
5 | mavenCentral()
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 | mavenCentral()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 |
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.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/announcements_model.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 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Hassan Ayoub Zafar
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 |
--------------------------------------------------------------------------------
/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:bull_signal/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/lib/Utils/consts.dart:
--------------------------------------------------------------------------------
1 | import 'package:bull_signal/Models/users.dart';
2 | import 'package:cloud_firestore/cloud_firestore.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | final userRef = FirebaseFirestore.instance.collection('users');
6 | final announcementsRef = FirebaseFirestore.instance.collection('announcements');
7 | final commentsRef = FirebaseFirestore.instance.collection('comments');
8 | final chatRoomRef = FirebaseFirestore.instance.collection('chatRoom');
9 | final chatListRef = FirebaseFirestore.instance.collection('chatLists');
10 |
11 | const String logo = 'assets/images/logo.jpeg';
12 | // const String logout = 'assets/images/logOut.svg';
13 |
14 | // const String loginIcon = 'assets/images/logIn.svg';
15 | // const String signUp = 'assets/images/signUp.svg';
16 | AppUserModel? currentUser;
17 | String? uid;
18 |
19 | TextStyle titleTextStyle({double fontSize = 25, Color? color = Colors.white}) {
20 | return TextStyle(
21 | fontSize: fontSize,
22 | fontWeight: FontWeight.w600,
23 | color: color,
24 | letterSpacing: 1.8);
25 | }
26 |
27 | TextStyle customTextStyle(
28 | {FontWeight fontWeight = FontWeight.w300,
29 | double fontSize = 25,
30 | Color color = Colors.white}) {
31 | return TextStyle(
32 | fontSize: fontSize,
33 | fontWeight: fontWeight,
34 | color: color,
35 | letterSpacing: 3);
36 | }
37 |
--------------------------------------------------------------------------------
/lib/Services/firebase_api.dart:
--------------------------------------------------------------------------------
1 | import 'package:bull_signal/Models/announcements_model.dart';
2 | import 'package:bull_signal/Utils/consts.dart';
3 | import 'package:cloud_firestore/cloud_firestore.dart';
4 |
5 | class FirebaseApi {
6 | addAnnouncements(
7 | {required final String postId,
8 | required final String announcementTitle,
9 | required final String imageUrl,
10 | // required final String eachUserId,
11 | required String eachUserToken,
12 | required final String description}) async {
13 | FirebaseFirestore.instance
14 | .collection("announcements")
15 | // .doc(eachUserId)
16 | // .collection("userAnnouncements")
17 | .doc(postId)
18 | .set({
19 | "announcementId": postId,
20 | "announcementTitle": announcementTitle,
21 | "description": description,
22 | "timestamp": DateTime.now(),
23 | "token": eachUserToken,
24 | "imageUrl": imageUrl,
25 | "userId": currentUser!.id
26 | });
27 | }
28 |
29 | Future getAnnouncements() async {
30 | List tempAllAnnouncements = [];
31 | QuerySnapshot tempAnnouncementsSnapshot =
32 | await FirebaseFirestore.instance.collection('announcements').get();
33 |
34 | tempAnnouncementsSnapshot.docs.forEach((element) {
35 | tempAllAnnouncements.add(AnnouncementsModel.fromDocument(element));
36 | });
37 | return tempAllAnnouncements;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "127968863702",
4 | "project_id": "bull-signal-c3a7a",
5 | "storage_bucket": "bull-signal-c3a7a.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:127968863702:android:ff99e83a9147b50a853077",
11 | "android_client_info": {
12 | "package_name": "com.hassan.bull_signal"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "127968863702-e4360f1k2leeccaabcdi00qa644a153e.apps.googleusercontent.com",
18 | "client_type": 1,
19 | "android_info": {
20 | "package_name": "com.hassan.bull_signal",
21 | "certificate_hash": "387accc7b18bc054a3d2c235d89180c8014d7a46"
22 | }
23 | },
24 | {
25 | "client_id": "127968863702-mitbhcmh8e3a1r042btl5vtoards0aqg.apps.googleusercontent.com",
26 | "client_type": 3
27 | }
28 | ],
29 | "api_key": [
30 | {
31 | "current_key": "AIzaSyAUOklz64K8JIi-Qf6Yz95F77wrVg1buDA"
32 | }
33 | ],
34 | "services": {
35 | "appinvite_service": {
36 | "other_platform_oauth_client": [
37 | {
38 | "client_id": "127968863702-mitbhcmh8e3a1r042btl5vtoards0aqg.apps.googleusercontent.com",
39 | "client_type": 3
40 | }
41 | ]
42 | }
43 | }
44 | }
45 | ],
46 | "configuration_version": "1"
47 | }
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/assets/images/logIn.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Bull Signal
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | bull_signal
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/assets/images/logOut.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:bull_signal/Screens/webview.dart';
2 | import 'package:bull_signal/Services/user_state.dart';
3 | import 'package:bull_signal/announcements/announcements.dart';
4 | import 'package:firebase_core/firebase_core.dart';
5 | import 'package:firebase_messaging/firebase_messaging.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:flutter_local_notifications/flutter_local_notifications.dart';
8 | import 'package:get_storage/get_storage.dart';
9 | import 'package:get/get.dart';
10 |
11 | const AndroidNotificationChannel channel = AndroidNotificationChannel(
12 | "high_importance_channel",
13 | "High Importance Notifications",
14 | importance: Importance.high,
15 | playSound: true,
16 | );
17 |
18 | final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
19 | FlutterLocalNotificationsPlugin();
20 |
21 | Future _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
22 | await Firebase.initializeApp();
23 | }
24 |
25 | Future main() async {
26 | await GetStorage.init();
27 | await Firebase.initializeApp();
28 | FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);
29 | await flutterLocalNotificationsPlugin
30 | .resolvePlatformSpecificImplementation<
31 | AndroidFlutterLocalNotificationsPlugin>()
32 | ?.createNotificationChannel(channel);
33 |
34 | await FirebaseMessaging.instance.setForegroundNotificationPresentationOptions(
35 | alert: true,
36 | badge: true,
37 | sound: true,
38 | );
39 |
40 | runApp(const MyApp());
41 | }
42 |
43 | class MyApp extends StatelessWidget {
44 | const MyApp({Key? key}) : super(key: key);
45 |
46 | // This widget is the root of your application.
47 | @override
48 | Widget build(BuildContext context) {
49 | return GetMaterialApp(
50 | title: 'Bull Signal',
51 | theme: ThemeData(
52 | appBarTheme: const AppBarTheme(backgroundColor: Colors.transparent),
53 | // primarySwatch: Colors.accents,
54 | brightness: Brightness.dark),
55 | home: const UserState(),
56 | );
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/lib/Database/database.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:bull_signal/Models/users.dart';
4 | import 'package:bull_signal/Utils/consts.dart';
5 | import 'package:bull_signal/tools/custom_toast.dart';
6 | import 'package:cloud_firestore/cloud_firestore.dart';
7 | import 'package:firebase_messaging/firebase_messaging.dart';
8 |
9 | class DatabaseMethods {
10 | addUserInfoToFirebase({
11 | required final String password,
12 | required final String? name,
13 | required final String? joinedAt,
14 | required final String? phoneNo,
15 | required final String? imageUrl,
16 | required final Timestamp? createdAt,
17 | required final String email,
18 | required final String userId,
19 | final bool? isAdmin,
20 | }) {
21 | print("addUserInfoToFirebase");
22 | return userRef.doc(userId).set({
23 | 'id': userId,
24 | 'name': name,
25 | 'phoneNo': phoneNo,
26 | 'password': password,
27 | 'createdAt': createdAt,
28 | 'isAdmin': isAdmin,
29 | 'email': email,
30 | 'joinedAt': joinedAt,
31 | 'imageUrl': imageUrl,
32 | 'androidNotificationToken': "",
33 | }).then((value) async {
34 | final DocumentSnapshot _user = await userRef.doc(uid).get();
35 | currentUser = AppUserModel.fromDocument(_user);
36 | // currentUser = userModel;
37 | }).catchError(
38 | (Object obj) {
39 | errorToast(message: obj.toString());
40 | },
41 | );
42 | }
43 |
44 | Future fetchUserInfoFromFirebase({
45 | required String uid,
46 | }) async {
47 | final DocumentSnapshot _user = await userRef.doc(uid).get();
48 | currentUser = AppUserModel.fromDocument(_user);
49 | createToken(uid);
50 | Map userData = json.decode(currentUser!.toJson());
51 | // UserLocalData().setUserModel(json.encode(userData));
52 | // print(user);
53 | print(currentUser!.email);
54 | }
55 |
56 | createToken(String uid) {
57 | FirebaseMessaging.instance.getToken().then((token) {
58 | userRef.doc(uid).update({
59 | "androidNotificationToken": token,
60 | });
61 | // UserLocalData().setToken(token!);
62 | });
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/lib/Models/users.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | class AppUserModel {
4 | final String? id;
5 | final String? name;
6 | final String? phoneNo;
7 | final String? password;
8 | final String? timestamp;
9 | final String? imageUrl;
10 | final bool? isAdmin;
11 | final String? email;
12 | final String? androidNotificationToken;
13 | final String? subscriptionEndTIme;
14 |
15 | // final Map? sectionsAppointed;
16 | AppUserModel(
17 | {this.id,
18 | this.name,
19 | this.phoneNo,
20 | this.password,
21 | this.imageUrl,
22 | this.timestamp,
23 | this.isAdmin,
24 | this.subscriptionEndTIme,
25 | this.email,
26 | this.androidNotificationToken});
27 |
28 | Map toMap() {
29 | return {
30 | 'id': id,
31 | 'name': name,
32 | 'phoneNo': phoneNo,
33 | 'password': password,
34 | 'imageUrl': imageUrl,
35 | 'timestamp': timestamp,
36 | 'subscriptionEndTIme': subscriptionEndTIme,
37 | 'isAdmin': isAdmin,
38 | 'email': email,
39 | 'androidNotificationToken': androidNotificationToken,
40 | };
41 | }
42 |
43 | factory AppUserModel.fromMap(Map map) {
44 | return AppUserModel(
45 | id: map['id'],
46 | name: map['name'],
47 | phoneNo: map['phoneNo'],
48 | password: map['password'],
49 | timestamp: map['timestamp'],
50 | imageUrl: map['imageUrl'],
51 | isAdmin: map['isAdmin'],
52 | subscriptionEndTIme: map['subscriptionEndTIme'],
53 | email: map['email'],
54 | androidNotificationToken: map['androidNotificationToken']);
55 | }
56 |
57 | factory AppUserModel.fromDocument(doc) {
58 | return AppUserModel(
59 | id: doc.data()["id"],
60 | password: doc.data()["password"],
61 | name: doc.data()["name"],
62 | timestamp: doc.data()["timestamp"],
63 | imageUrl: doc.data()["imageUrl"],
64 | email: doc.data()["email"],
65 | isAdmin: doc.data()["isAdmin"],
66 | subscriptionEndTIme: doc.data()["subscriptionEndTIme"],
67 | phoneNo: doc.data()["phoneNo"],
68 | androidNotificationToken: doc.data()["androidNotificationToken"],
69 | );
70 | }
71 |
72 | String toJson() => json.encode(toMap());
73 |
74 | factory AppUserModel.fromJson(String source) =>
75 | AppUserModel.fromMap(json.decode(source));
76 | }
77 |
--------------------------------------------------------------------------------
/lib/Services/user_state.dart:
--------------------------------------------------------------------------------
1 | import 'package:bull_signal/Database/database.dart';
2 | import 'package:bull_signal/Screens/credentials/loginRelated/login_page.dart';
3 | import 'package:bull_signal/Utils/consts.dart';
4 | import 'package:bull_signal/announcements/announcements.dart';
5 | import 'package:bull_signal/tools/loading.dart';
6 | import 'package:firebase_auth/firebase_auth.dart';
7 | import 'package:flutter/material.dart';
8 |
9 | class UserState extends StatefulWidget {
10 | const UserState({Key? key}) : super(key: key);
11 |
12 | @override
13 | State createState() => _UserStateState();
14 | }
15 |
16 | class _UserStateState extends State {
17 | bool isLogged = false;
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | return StreamBuilder(
22 | stream: FirebaseAuth.instance.authStateChanges(),
23 | // ignore: missing_return
24 | builder: (context, AsyncSnapshot userSnapshot) {
25 | if (userSnapshot.connectionState == ConnectionState.waiting) {
26 | return const Center(
27 | child: CircularProgressIndicator(),
28 | );
29 | } else if (userSnapshot.connectionState == ConnectionState.active) {
30 | if (userSnapshot.hasData) {
31 | print('userSnapshot.hasData ${userSnapshot.hasData}');
32 | uid = userSnapshot.data!.uid;
33 | DatabaseMethods()
34 | .fetchUserInfoFromFirebase(uid: userSnapshot.data!.uid)
35 | .then((value) {
36 | print('The user is already logged in');
37 | // if (mounted) {
38 | // setState(() {
39 | // isLogged = true;
40 | // });
41 | // }
42 | // print(isLogged);
43 | });
44 | return Announcements();
45 | // MainScreens();
46 | } else {
47 | print('The user didn\'t login yet');
48 | return
49 | // IntroductionAuthScreen();
50 | LoginPage();
51 | }
52 | } else if (userSnapshot.hasError) {
53 | return const Center(
54 | child: Text('Error occured'),
55 | );
56 | } else {
57 | return const Center(
58 | child: Text('Error occured'),
59 | );
60 | }
61 | });
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/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.google.gms.google-services'
25 | apply plugin: 'com.android.application'
26 | apply plugin: 'kotlin-android'
27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
28 |
29 | android {
30 | compileSdkVersion flutter.compileSdkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.hassan.bull_signal"
48 | minSdkVersion 21
49 | targetSdkVersion flutter.targetSdkVersion
50 | versionCode flutterVersionCode.toInteger()
51 | versionName flutterVersionName
52 | }
53 |
54 | buildTypes {
55 | release {
56 | crunchPngs false // or true
57 |
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | implementation platform('com.google.firebase:firebase-bom:29.0.4')
72 | implementation 'com.google.firebase:firebase-analytics-ktx'
73 | }
74 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/Services/notificationHandler.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 | import 'package:flutter_local_notifications/flutter_local_notifications.dart';
4 | import 'package:firebase_messaging/firebase_messaging.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:http/http.dart' as http;
7 |
8 | import '../main.dart';
9 |
10 | Future