├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── portfolio
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── fonts
│ ├── Poppins-Bold.ttf
│ ├── Poppins-Regular.ttf
│ └── Poppins-SemiBold.ttf
├── images
│ ├── android.svg
│ ├── dev_img.png
│ ├── portfolio_icon.png
│ ├── ruler.svg
│ └── slider.svg
└── previews
│ ├── about_preview.png
│ ├── contact_preview.png
│ ├── home_preview.png
│ ├── mobile_home_preview.png
│ ├── projects_one_preview.png
│ └── projects_two_preview.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-50x50@1x.png
│ │ ├── Icon-App-50x50@2x.png
│ │ ├── Icon-App-57x57@1x.png
│ │ ├── Icon-App-57x57@2x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-72x72@1x.png
│ │ ├── Icon-App-72x72@2x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── bloc_observer.dart
├── config
│ └── theme_manager.dart
├── core
│ ├── utils
│ │ ├── app_assets.dart
│ │ ├── app_colors.dart
│ │ ├── app_constants.dart
│ │ ├── app_enums.dart
│ │ ├── app_extensions.dart
│ │ ├── app_strings.dart
│ │ ├── app_styles.dart
│ │ └── social_links.dart
│ └── widgets
│ │ ├── custom_button.dart
│ │ └── custom_divider.dart
├── data
│ └── models
│ │ ├── custom_service.dart
│ │ ├── project.dart
│ │ └── responsive_size.dart
├── main.dart
├── portfolio_app.dart
└── presentation
│ ├── blocs
│ └── home_bloc
│ │ ├── home_bloc.dart
│ │ ├── home_event.dart
│ │ └── home_state.dart
│ ├── views
│ └── home_view.dart
│ └── widgets
│ ├── app_bar
│ ├── custom_header_btn.dart
│ ├── custom_menu_btn.dart
│ ├── developer_name_btn.dart
│ ├── headers_section.dart
│ ├── home_app_bar.dart
│ ├── horizontal_headers.dart
│ ├── vertical_headers.dart
│ └── vertical_headers_builder.dart
│ └── body
│ ├── about_me
│ ├── about_me_intro.dart
│ ├── about_me_section.dart
│ ├── basic_service_item.dart
│ ├── basic_services_grid.dart
│ ├── detailed_service_item.dart
│ ├── detailed_services_grid.dart
│ ├── detailed_services_section.dart
│ └── experience_info.dart
│ ├── contact
│ ├── contact_form.dart
│ ├── contact_intro.dart
│ ├── contact_section.dart
│ └── social_medial_icons.dart
│ ├── home_body.dart
│ ├── intro
│ ├── circle_image_border.dart
│ ├── intro_actions.dart
│ ├── intro_circle_image_box.dart
│ ├── intro_image.dart
│ ├── intro_section.dart
│ └── intro_text.dart
│ └── projects
│ ├── project_actions.dart
│ ├── project_image.dart
│ ├── project_item.dart
│ ├── projects_grid.dart
│ ├── projects_intro.dart
│ └── projects_section.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
├── web
├── assets
│ └── loading.gif
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── index.html
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
45 |
46 | # /assets/previews
--------------------------------------------------------------------------------
/.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.
5 |
6 | version:
7 | revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
17 | base_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
18 | - platform: android
19 | create_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
20 | base_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
21 | - platform: ios
22 | create_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
23 | base_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
24 | - platform: linux
25 | create_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
26 | base_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
27 | - platform: macos
28 | create_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
29 | base_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
30 | - platform: web
31 | create_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
32 | base_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
33 | - platform: windows
34 | create_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
35 | base_revision: b4bce91dd0f168179d46a7ae5eceb3572ba9637a
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # portfolio
2 |
3 | Flutter Web Portfolio, Based on a design on Figma and hosted on Github host.
4 |
5 | ### Demo URL
6 |
7 | https://radyhaggag.github.io/MyPortfolio
8 |
9 | ### Youtube preview
10 |
11 | https://youtu.be/_llGOcJvPzA
12 |
13 | ### 💻 Requirements
14 |
15 | - Any Operating System (MacOS, Linux, Windows)
16 | - Any IDE with Flutter SDK installed (Android Studio, VSCode etc)
17 | - A little knowledge of Dart and Flutter.
18 |
19 | ### 👨💻 How to run
20 |
21 | > https://github.com/radyhaggag/web_portfolio_with_flutter.git
22 | > flutter run -d chrome --web-renderer html
23 |
24 | ### Screenshots
25 |
26 | 
27 | 
28 | 
29 | 
30 | 
31 | 
32 |
33 | ### Mobile home Screenshot
34 |
35 | 
36 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion flutter.compileSdkVersion
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.example.portfolio"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
50 | minSdkVersion flutter.minSdkVersion
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
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 | }
72 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/portfolio/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.portfolio
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.2.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Feb 28 17:29:14 EET 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/fonts/Poppins-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/fonts/Poppins-Bold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/fonts/Poppins-Regular.ttf
--------------------------------------------------------------------------------
/assets/fonts/Poppins-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/fonts/Poppins-SemiBold.ttf
--------------------------------------------------------------------------------
/assets/images/android.svg:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/assets/images/dev_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/images/dev_img.png
--------------------------------------------------------------------------------
/assets/images/portfolio_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/images/portfolio_icon.png
--------------------------------------------------------------------------------
/assets/images/ruler.svg:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/assets/images/slider.svg:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/assets/previews/about_preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/previews/about_preview.png
--------------------------------------------------------------------------------
/assets/previews/contact_preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/previews/contact_preview.png
--------------------------------------------------------------------------------
/assets/previews/home_preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/previews/home_preview.png
--------------------------------------------------------------------------------
/assets/previews/mobile_home_preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/previews/mobile_home_preview.png
--------------------------------------------------------------------------------
/assets/previews/projects_one_preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/previews/projects_one_preview.png
--------------------------------------------------------------------------------
/assets/previews/projects_two_preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/assets/previews/projects_two_preview.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/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/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/radyhaggag/web_portfolio_with_flutter/1e01dcec023d8d434b00587c43897d24ce0de1cc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Portfolio
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | portfolio
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 | CADisableMinimumFrameDurationOnPhone
47 |
48 | UIApplicationSupportsIndirectInputEvents
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/bloc_observer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 |
4 | class MyBlocObserver extends BlocObserver {
5 | @override
6 | void onCreate(BlocBase bloc) {
7 | super.onCreate(bloc);
8 | debugPrint('onCreate -- ${bloc.runtimeType}');
9 | }
10 |
11 | @override
12 | void onChange(BlocBase bloc, Change change) {
13 | super.onChange(bloc, change);
14 | debugPrint('onChange -- ${bloc.runtimeType}, $change');
15 | }
16 |
17 | @override
18 | void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
19 | debugPrint('onError -- ${bloc.runtimeType}, $error');
20 | super.onError(bloc, error, stackTrace);
21 | }
22 |
23 | @override
24 | void onClose(BlocBase bloc) {
25 | super.onClose(bloc);
26 | debugPrint('onClose -- ${bloc.runtimeType}');
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/lib/config/theme_manager.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../core/utils/app_colors.dart';
4 | import '../core/utils/app_styles.dart';
5 |
6 | abstract class CustomTheme {
7 | static ThemeData lightTheme() => ThemeData.light();
8 | static ThemeData darkTheme() => ThemeData(
9 | primaryColor: AppColors.primaryColor,
10 | highlightColor: AppColors.secondaryColor,
11 | scaffoldBackgroundColor: AppColors.scaffoldColor,
12 | fontFamily: 'Poppins',
13 | inputDecorationTheme: InputDecorationTheme(
14 | fillColor: AppColors.primaryLight,
15 | filled: true,
16 | labelStyle: AppStyles.s14,
17 | enabledBorder: OutlineInputBorder(
18 | borderSide: BorderSide(color: AppColors.lowPriority),
19 | ),
20 | focusedBorder: OutlineInputBorder(
21 | borderSide: BorderSide(color: AppColors.primaryColor),
22 | ),
23 | ),
24 | );
25 | }
26 |
--------------------------------------------------------------------------------
/lib/core/utils/app_assets.dart:
--------------------------------------------------------------------------------
1 | const _basePath = 'assets/images';
2 |
3 | abstract class AppAssets {
4 | static const devImg = '$_basePath/dev_img.png';
5 | static const androidLogo = '$_basePath/android.svg';
6 | static const scrappingLogo = '$_basePath/slider.svg';
7 | static const uiDesignLogo = '$_basePath/ruler.svg';
8 | }
9 |
--------------------------------------------------------------------------------
/lib/core/utils/app_colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | abstract class AppColors {
4 | static Color white = const Color(0xffffffff);
5 | static Color lightColor = const Color(0xffF5F5F5);
6 | static Color lowPriority = const Color(0xff848191);
7 | static Color primaryColor = const Color(0xff7562E0);
8 | static Color secondaryColor = const Color(0xff282162);
9 | static Color darkColor = const Color(0xff000036);
10 | static Color scaffoldColor = const Color(0xff1A1A29);
11 | static Color appBarColor = const Color(0xff181824);
12 | static Color primaryLight = const Color(0xff31313F);
13 | }
14 |
--------------------------------------------------------------------------------
/lib/core/utils/app_constants.dart:
--------------------------------------------------------------------------------
1 | import '../../data/models/custom_service.dart';
2 | import '../../data/models/project.dart';
3 | import 'app_assets.dart';
4 |
5 | abstract class AppConstants {
6 | static const double appBarHeight = 80;
7 | static const List services = [
8 | CustomService(
9 | service: 'MOBILE DEVELOPMENT',
10 | logo: AppAssets.androidLogo,
11 | description:
12 | 'I am a Junior mobile developer. I have experience using Dart and Flutter Framework.',
13 | ),
14 | CustomService(
15 | service: 'UI & UX DESIGNING',
16 | logo: AppAssets.uiDesignLogo,
17 | description:
18 | 'I design beautiful web interfaces with Figma and Adobe XD. I design beautiful web interfaces with Figma and Adobe XD.',
19 | ),
20 | CustomService(
21 | service: 'WEB SCRAPING',
22 | logo: AppAssets.scrappingLogo,
23 | description:
24 | 'I can collect content and data from the internet then manipulate and analyze as needed.',
25 | ),
26 | ];
27 | static const List projects = [
28 | Project(
29 | name: 'Live score',
30 | imageUrl:
31 | 'https://drive.google.com/uc?id=1ITN6reINiIaM-6j3QqxrwtvADZgLNvwB',
32 | description:
33 | 'A football application to display all related matches and rankings in all international and local tournaments',
34 | githubRepoLink: 'https://github.com/radyhaggag/live_score',
35 | previewLink: 'https://youtu.be/HSIosFd6Sys',
36 | ),
37 | Project(
38 | name: 'Instagram clone',
39 | imageUrl:
40 | 'https://drive.google.com/uc?id=1qNFCNYdUo7o36ythQtjaSrv7L0NV_Vnv',
41 | description:
42 | 'Social media application for share posts and stories with people, One-to-one chat, Share reels videos',
43 | githubRepoLink:
44 | 'https://github.com/radyhaggag/Instagram-Clone-With-Clean-Architecture',
45 | previewLink: 'https://youtu.be/MuuVjqrR49g',
46 | ),
47 | Project(
48 | name: 'TikTok Downloader',
49 | imageUrl:
50 | 'https://drive.google.com/uc?id=1SypuIPVdokg0O4DYoYdswRowlIJAGgIq',
51 | description:
52 | 'An application for download videos from tiktok and save it to gallery.',
53 | githubRepoLink: 'https://github.com/radyhaggag/tiktok_downloader',
54 | previewLink: 'https://youtu.be/mWeA625pcrI',
55 | ),
56 | Project(
57 | name: 'Bookly',
58 | imageUrl:
59 | 'https://drive.google.com/uc?id=1yQtoq-wjVejWPXRI7gzGMXPUZrRob8kY',
60 | description: 'An application to explore books and view their details.',
61 | githubRepoLink:
62 | 'https://github.com/radyhaggag/bookly_app_with_mvvm_and_bloc',
63 | previewLink: 'https://youtu.be/3nU_dYjsPsg',
64 | ),
65 | Project(
66 | name: 'Image processing',
67 | imageUrl:
68 | 'https://drive.google.com/uc?id=1hd7U3HgoDqXEi9eDKYjrY9iqlWa6qt8E',
69 | description:
70 | 'An Desktop program for process images and apply some filters to them.',
71 | githubRepoLink:
72 | 'https://github.com/radyhaggag/image_processing_program_with_python_flet',
73 | previewLink: 'https://youtu.be/s1KFdBKNFig',
74 | ),
75 | Project(
76 | name: 'Salat al janazah',
77 | imageUrl:
78 | 'https://drive.google.com/uc?id=1UpCGckOS46GdTuHU4wuj7Abo_97gxe_E',
79 | description:
80 | 'An application for add janazah prayer and view the prayers for nearby people',
81 | googlePlay:
82 | 'https://play.google.com/store/apps/details?id=com.SJY.salataljanaza',
83 | previewLink: 'https://youtu.be/wK9Y9BhP190',
84 | ),
85 | Project(
86 | name: 'Ghaslah',
87 | imageUrl:
88 | 'https://drive.google.com/uc?id=1ed4H2-cH6yk_kVkDdxOLcUkgP1xpuo72',
89 | description:
90 | 'An application for add wash cars reservation with location in map and the picker will come to wash the cars',
91 | previewLink: 'https://youtu.be/gkeRSAfCZaI',
92 | ),
93 | Project(
94 | name: 'Zawilan',
95 | imageUrl:
96 | 'https://drive.google.com/uc?id=1ElTwguynMLqhS295-IE7bTTabsZGZp8s',
97 | description:
98 | 'Zwailan is an education app based on units and sections system, you start by sign up on app and wait until the teacher accept your join request.',
99 | previewLink: 'https://youtu.be/g92W-SmfkKc',
100 | googlePlay:
101 | 'https://play.google.com/store/apps/details?id=com.radyhaggag.zawilan',
102 | ),
103 | ];
104 | }
105 |
--------------------------------------------------------------------------------
/lib/core/utils/app_enums.dart:
--------------------------------------------------------------------------------
1 | enum AppBarHeaders { home, aboutMe, projects, contact }
2 |
3 | enum AppBarHeadersAxis { horizontal, vertical }
4 |
5 | enum DeviceType {
6 | mobile,
7 | ipad,
8 | smallScreenLaptop,
9 | largeScreenDesktop,
10 | extraLargeTV
11 | }
12 |
--------------------------------------------------------------------------------
/lib/core/utils/app_extensions.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'app_enums.dart';
4 |
5 | extension AppBarHeaderExtension on AppBarHeaders {
6 | String getString() {
7 | switch (this) {
8 | case AppBarHeaders.home:
9 | return 'Home';
10 | case AppBarHeaders.aboutMe:
11 | return 'About me';
12 | case AppBarHeaders.projects:
13 | return 'Projects';
14 | case AppBarHeaders.contact:
15 | return 'Contact';
16 | }
17 | }
18 | }
19 |
20 | extension MediaQueryExtension on BuildContext {
21 | Size get _size => MediaQuery.of(this).size;
22 | double get width => _size.width;
23 | double get height => _size.height;
24 | }
25 |
26 | extension DeviceTypeExtension on DeviceType {
27 | int getMinWidth() {
28 | switch (this) {
29 | case DeviceType.mobile:
30 | return 320;
31 | case DeviceType.ipad:
32 | return 481;
33 | case DeviceType.smallScreenLaptop:
34 | return 769;
35 | case DeviceType.largeScreenDesktop:
36 | return 1025;
37 | case DeviceType.extraLargeTV:
38 | return 1201;
39 | }
40 | }
41 |
42 | int getMaxWidth() {
43 | switch (this) {
44 | case DeviceType.mobile:
45 | return 480;
46 | case DeviceType.ipad:
47 | return 768;
48 | case DeviceType.smallScreenLaptop:
49 | return 1024;
50 | case DeviceType.largeScreenDesktop:
51 | return 1200;
52 | case DeviceType.extraLargeTV:
53 | return 3840; // any number more than 1200
54 | }
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/lib/core/utils/app_strings.dart:
--------------------------------------------------------------------------------
1 | abstract class AppStrings {
2 | static const String developerName = 'Rady Haggag';
3 | static const String helloIM = 'Hello, i’m';
4 | static const String introMsg =
5 | "Flutter developer with +2 years of experience. I have completed many projects that prove my ability to provide creative and high-quality solutions.";
6 | static String aboutMeMsg =
7 | "I'm a Flutter developer with a good understanding of the Flutter framework, I have experience in UI design, API integration, clean code writing and knowledge of solid principles and clean architecture. I have completed many projects that prove my ability to provide creative and high-quality solutions and finish them in an almost complete way with a great user experience without any problems facing users";
8 | static const String numOfExperience = '2+';
9 | static const String experienceMsg =
10 | 'Years of experience, Specialized in building apps, while ensuring a seamless web experience for end users.';
11 | static const String servicesIOffer = 'The services i offer:';
12 | static const String featuredProjects = 'Featured projects';
13 | static const String projectsMsg =
14 | "I have completed many projects that prove my ability to provide creative and high-quality solutions and finish them in an almost complete way with a great user experience without any problems facing users.";
15 | static const String contactMsg =
16 | "For any service and work you can contact with me by send an email or by our social media accounts.";
17 | static const String contactWithMe = 'Contact with me';
18 | }
19 |
--------------------------------------------------------------------------------
/lib/core/utils/app_styles.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import 'app_colors.dart';
4 |
5 | abstract class AppStyles {
6 | static TextStyle s52 = TextStyle(
7 | color: AppColors.white,
8 | fontSize: 52,
9 | fontWeight: FontWeight.w600,
10 | );
11 | static TextStyle s32 = TextStyle(
12 | color: AppColors.primaryColor,
13 | fontSize: 32,
14 | fontWeight: FontWeight.w600,
15 | );
16 | static TextStyle s28 = TextStyle(
17 | color: AppColors.primaryColor,
18 | fontSize: 28,
19 | fontWeight: FontWeight.w600,
20 | );
21 | static TextStyle s24 = TextStyle(
22 | color: AppColors.white,
23 | fontSize: 24,
24 | fontWeight: FontWeight.w600,
25 | );
26 | static TextStyle s18 = TextStyle(
27 | color: AppColors.white,
28 | fontSize: 18,
29 | fontWeight: FontWeight.w500,
30 | );
31 | static TextStyle s17 = TextStyle(
32 | color: AppColors.white,
33 | fontSize: 17,
34 | fontWeight: FontWeight.w500,
35 | );
36 |
37 | static TextStyle s16 = TextStyle(
38 | color: AppColors.white,
39 | fontSize: 16,
40 | fontWeight: FontWeight.w600,
41 | );
42 | static TextStyle s14 = TextStyle(
43 | color: AppColors.white,
44 | fontSize: 14,
45 | fontWeight: FontWeight.w500,
46 | );
47 | }
48 |
--------------------------------------------------------------------------------
/lib/core/utils/social_links.dart:
--------------------------------------------------------------------------------
1 | abstract class SocialLinks {
2 | static const String facebook = "https://www.facebook.com/radyhaggag5";
3 | static const String twitter = "https://twitter.com/RadyHaggag5";
4 | static const String instagram = "https://www.instagram.com/radyhaggag5";
5 | static const String linkedin = "https://www.linkedin.com/in/radyhaggag";
6 | }
7 |
--------------------------------------------------------------------------------
/lib/core/widgets/custom_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:auto_size_text/auto_size_text.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | import '../utils/app_colors.dart';
5 | import '../utils/app_styles.dart';
6 |
7 | class CustomButton extends StatelessWidget {
8 | const CustomButton({
9 | super.key,
10 | this.height,
11 | required this.label,
12 | this.icon,
13 | this.backgroundColor,
14 | this.borderColor,
15 | this.onPressed,
16 | this.width,
17 | });
18 |
19 | final Function()? onPressed;
20 | final Color? backgroundColor;
21 | final Color? borderColor;
22 | final double? height;
23 | final IconData? icon;
24 | final String label;
25 | final double? width;
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | return SizedBox(
30 | height: height ?? 48,
31 | width: width,
32 | child: OutlinedButton(
33 | onPressed: onPressed,
34 | style: ElevatedButton.styleFrom(
35 | side: borderColor == null ? null : BorderSide(color: borderColor!),
36 | backgroundColor: backgroundColor,
37 | ),
38 | child: Row(
39 | mainAxisAlignment: MainAxisAlignment.center,
40 | children: [
41 | Flexible(
42 | child: AutoSizeText(
43 | label,
44 | style: AppStyles.s16,
45 | textAlign: TextAlign.center,
46 | minFontSize: 8,
47 | maxLines: 1,
48 | ),
49 | ),
50 | if (icon != null) ...[
51 | const SizedBox(width: 5),
52 | Icon(
53 | icon,
54 | size: 18,
55 | color: AppColors.white,
56 | ),
57 | ]
58 | ],
59 | ),
60 | ),
61 | );
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/lib/core/widgets/custom_divider.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomDivider extends StatelessWidget {
4 | const CustomDivider({
5 | super.key,
6 | required this.width,
7 | required this.height,
8 | required this.color,
9 | });
10 |
11 | final double width;
12 | final double height;
13 | final Color color;
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return Container(
18 | color: color,
19 | width: width,
20 | height: height,
21 | );
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/data/models/custom_service.dart:
--------------------------------------------------------------------------------
1 | class CustomService {
2 | final String service;
3 | final String logo;
4 | final String description;
5 |
6 | const CustomService({
7 | required this.service,
8 | required this.logo,
9 | required this.description,
10 | });
11 | }
12 |
--------------------------------------------------------------------------------
/lib/data/models/project.dart:
--------------------------------------------------------------------------------
1 | class Project {
2 | final String name;
3 | final String imageUrl;
4 | final String description;
5 | final String? githubRepoLink;
6 | final String? previewLink;
7 | final String? googlePlay;
8 |
9 | const Project({
10 | required this.name,
11 | required this.imageUrl,
12 | required this.description,
13 | this.githubRepoLink,
14 | this.previewLink,
15 | this.googlePlay,
16 | });
17 | }
18 |
--------------------------------------------------------------------------------
/lib/data/models/responsive_size.dart:
--------------------------------------------------------------------------------
1 | import '../../core/utils/app_enums.dart';
2 | import '../../core/utils/app_extensions.dart';
3 |
4 | class ResponsiveSize {
5 | double deviceWidth;
6 | double? mobileSize;
7 | double? ipadSize;
8 | double? smallScreenSize;
9 | double? largeScreenSize;
10 | double? extraLargeSize;
11 |
12 | ResponsiveSize({
13 | required this.deviceWidth,
14 | this.mobileSize,
15 | this.ipadSize,
16 | this.smallScreenSize,
17 | this.largeScreenSize,
18 | this.extraLargeSize,
19 | }) {
20 | mobileSize = mobileSize ??
21 | ipadSize ??
22 | smallScreenSize ??
23 | largeScreenSize ??
24 | extraLargeSize;
25 | ipadSize = ipadSize ??
26 | smallScreenSize ??
27 | largeScreenSize ??
28 | extraLargeSize ??
29 | mobileSize;
30 | smallScreenSize = smallScreenSize ??
31 | largeScreenSize ??
32 | extraLargeSize ??
33 | ipadSize ??
34 | mobileSize;
35 | largeScreenSize = largeScreenSize ??
36 | extraLargeSize ??
37 | smallScreenSize ??
38 | ipadSize ??
39 | mobileSize;
40 | extraLargeSize = extraLargeSize ??
41 | largeScreenSize ??
42 | smallScreenSize ??
43 | ipadSize ??
44 | mobileSize;
45 | }
46 |
47 | double? getSize() {
48 | if (deviceWidth < DeviceType.mobile.getMaxWidth()) {
49 | return mobileSize;
50 | } else if (deviceWidth < DeviceType.mobile.getMaxWidth()) {
51 | return mobileSize;
52 | } else if (deviceWidth < DeviceType.ipad.getMaxWidth()) {
53 | return ipadSize;
54 | } else if (deviceWidth < DeviceType.smallScreenLaptop.getMaxWidth()) {
55 | return smallScreenSize;
56 | } else if (deviceWidth < DeviceType.largeScreenDesktop.getMaxWidth()) {
57 | return largeScreenSize;
58 | } else {
59 | return extraLargeSize;
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 |
4 | import 'bloc_observer.dart';
5 | import 'portfolio_app.dart';
6 |
7 | void main() {
8 | Bloc.observer = MyBlocObserver();
9 | runApp(const PortfolioApp());
10 | }
11 |
--------------------------------------------------------------------------------
/lib/portfolio_app.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 |
4 | import 'config/theme_manager.dart';
5 | import 'presentation/blocs/home_bloc/home_bloc.dart';
6 | import 'presentation/views/home_view.dart';
7 |
8 | class PortfolioApp extends StatelessWidget {
9 | const PortfolioApp({super.key});
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return MaterialApp(
14 | debugShowCheckedModeBanner: false,
15 | theme: CustomTheme.darkTheme(),
16 | title: 'Rady Haggag',
17 | home: BlocProvider(
18 | create: (context) => HomeBloc(),
19 | child: const HomeView(),
20 | ),
21 | );
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/presentation/blocs/home_bloc/home_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:equatable/equatable.dart';
4 | import 'package:flutter_bloc/flutter_bloc.dart';
5 |
6 | import '../../../core/utils/app_enums.dart';
7 |
8 | part 'home_event.dart';
9 | part 'home_state.dart';
10 |
11 | class HomeBloc extends Bloc {
12 | HomeBloc() : super(HomeInitial()) {
13 | on(_changeAppBarHeadersIndex);
14 | on(_changeAppBarHeadersAxis);
15 | on(_changeAppBarHeadersColorByColor);
16 | }
17 | int _appBarHeaderIndex = 0;
18 | int get appBarHeaderIndex => _appBarHeaderIndex;
19 |
20 | FutureOr _changeAppBarHeadersIndex(
21 | ChangeAppBarHeadersIndex event,
22 | Emitter emit,
23 | ) {
24 | _appBarHeaderIndex = event.index;
25 | emit(AppBarHeadersIndexChanged(_appBarHeaderIndex));
26 | }
27 |
28 | FutureOr _changeAppBarHeadersColorByColor(
29 | ChangeAppBarHeadersColorByColor event,
30 | Emitter emit,
31 | ) {
32 | _appBarHeaderIndex = event.index;
33 | emit(AppBarHeadersColorChangedByIndex(_appBarHeaderIndex));
34 | }
35 |
36 | AppBarHeadersAxis _appBarHeaderAxis = AppBarHeadersAxis.horizontal;
37 | AppBarHeadersAxis get appBarHeaderAxis => _appBarHeaderAxis;
38 |
39 | FutureOr _changeAppBarHeadersAxis(
40 | ChangeAppBarHeadersAxis event,
41 | Emitter emit,
42 | ) {
43 | _appBarHeaderAxis = event.headersAxis;
44 | emit(AppBarHeadersAxisChanged(_appBarHeaderAxis));
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/presentation/blocs/home_bloc/home_event.dart:
--------------------------------------------------------------------------------
1 | part of 'home_bloc.dart';
2 |
3 | abstract class HomeEvent extends Equatable {
4 | @override
5 | List