├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── kleberandrade │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── images │ └── logo.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── components │ ├── centered_message.dart │ ├── centered_progress.dart │ └── filter_button.dart ├── controllers │ ├── contact_controller.dart │ └── home_controller.dart ├── helpers │ ├── image_helper.dart │ └── url_helper.dart ├── main.dart ├── models │ ├── contact.dart │ ├── course.dart │ ├── navbar_link.dart │ └── project.dart ├── pages │ ├── home │ │ ├── about │ │ │ └── about_section.dart │ │ ├── contact │ │ │ ├── contact_dialog.dart │ │ │ ├── contact_form_button.dart │ │ │ └── contact_text_field.dart │ │ ├── course │ │ │ ├── course_card.dart │ │ │ └── course_section.dart │ │ ├── cover │ │ │ ├── cover_button.dart │ │ │ ├── cover_button_list.dart │ │ │ └── cover_section.dart │ │ ├── footer │ │ │ └── footer.dart │ │ ├── navbar │ │ │ ├── navbar_item.dart │ │ │ └── navbar_logo.dart │ │ ├── project │ │ │ ├── project_card.dart │ │ │ └── project_section.dart │ │ └── sections │ │ │ ├── section_description.dart │ │ │ ├── section_filter_list.dart │ │ │ └── section_title.dart │ └── home_page.dart ├── services │ ├── contact_api.dart │ ├── course_api.dart │ └── project_api.dart └── themes │ └── dark_theme.dart ├── pubspec.lock ├── pubspec.yaml ├── screenshots └── kleberandrade.gif └── web ├── favicon.png ├── icons ├── Icon-192.png └── Icon-512.png ├── index.html └── manifest.json /.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 | .dart_tool/ 26 | .flutter-plugins 27 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Symbolication related 37 | app.*.symbols 38 | 39 | # Obfuscation related 40 | app.*.map.json 41 | 42 | # Exceptions to above rules. 43 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 44 | -------------------------------------------------------------------------------- /.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: d3ed9ec945f8869f0e136c357d0c2a6be2b60c98 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Kleber Andrade 2 | 3 | Site do pesquisador, professor e programador Kleber de Oliveira Andrade criado em Flutter 4 | 5 | ## Ferramentas 6 | 7 | * Dart 8 | * Flutter 9 | * URL Launcher 10 | * Font Awesome Flutter 11 | * Http 12 | * Flushbar 13 | 14 | ## Screenshot 15 | 16 |

17 | 18 |

19 | 20 | ## Licença 21 | 22 | Copyright 2020 Kleber de Oliveira Andrade 23 | 24 | Permission is hereby granted, free of charge, to any person obtaining a copy 25 | of this software and associated documentation files (the "Software"), to deal 26 | in the Software without restriction, including without limitation the rights 27 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 28 | copies of the Software, and to permit persons to whom the Software is 29 | furnished to do so, subject to the following conditions: 30 | 31 | The above copyright notice and this permission notice shall be included in all 32 | copies or substantial portions of the Software. 33 | 34 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 35 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 36 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 37 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 38 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 39 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 40 | SOFTWARE. 41 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /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 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.kleberandrade" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/kleberandrade/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.kleberandrade 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 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.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /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-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/assets/images/logo.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 97C146F11CF9000F007C117D /* Supporting Files */, 94 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 95 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 96 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 97 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 98 | ); 99 | path = Runner; 100 | sourceTree = ""; 101 | }; 102 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | ); 106 | name = "Supporting Files"; 107 | sourceTree = ""; 108 | }; 109 | /* End PBXGroup section */ 110 | 111 | /* Begin PBXNativeTarget section */ 112 | 97C146ED1CF9000F007C117D /* Runner */ = { 113 | isa = PBXNativeTarget; 114 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 115 | buildPhases = ( 116 | 9740EEB61CF901F6004384FC /* Run Script */, 117 | 97C146EA1CF9000F007C117D /* Sources */, 118 | 97C146EB1CF9000F007C117D /* Frameworks */, 119 | 97C146EC1CF9000F007C117D /* Resources */, 120 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 121 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 122 | ); 123 | buildRules = ( 124 | ); 125 | dependencies = ( 126 | ); 127 | name = Runner; 128 | productName = Runner; 129 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 130 | productType = "com.apple.product-type.application"; 131 | }; 132 | /* End PBXNativeTarget section */ 133 | 134 | /* Begin PBXProject section */ 135 | 97C146E61CF9000F007C117D /* Project object */ = { 136 | isa = PBXProject; 137 | attributes = { 138 | LastUpgradeCheck = 1020; 139 | ORGANIZATIONNAME = ""; 140 | TargetAttributes = { 141 | 97C146ED1CF9000F007C117D = { 142 | CreatedOnToolsVersion = 7.3.1; 143 | LastSwiftMigration = 1100; 144 | }; 145 | }; 146 | }; 147 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 148 | compatibilityVersion = "Xcode 9.3"; 149 | developmentRegion = en; 150 | hasScannedForEncodings = 0; 151 | knownRegions = ( 152 | en, 153 | Base, 154 | ); 155 | mainGroup = 97C146E51CF9000F007C117D; 156 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 157 | projectDirPath = ""; 158 | projectRoot = ""; 159 | targets = ( 160 | 97C146ED1CF9000F007C117D /* Runner */, 161 | ); 162 | }; 163 | /* End PBXProject section */ 164 | 165 | /* Begin PBXResourcesBuildPhase section */ 166 | 97C146EC1CF9000F007C117D /* Resources */ = { 167 | isa = PBXResourcesBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 171 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 172 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 173 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 174 | ); 175 | runOnlyForDeploymentPostprocessing = 0; 176 | }; 177 | /* End PBXResourcesBuildPhase section */ 178 | 179 | /* Begin PBXShellScriptBuildPhase section */ 180 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 181 | isa = PBXShellScriptBuildPhase; 182 | buildActionMask = 2147483647; 183 | files = ( 184 | ); 185 | inputPaths = ( 186 | ); 187 | name = "Thin Binary"; 188 | outputPaths = ( 189 | ); 190 | runOnlyForDeploymentPostprocessing = 0; 191 | shellPath = /bin/sh; 192 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 193 | }; 194 | 9740EEB61CF901F6004384FC /* Run Script */ = { 195 | isa = PBXShellScriptBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | ); 199 | inputPaths = ( 200 | ); 201 | name = "Run Script"; 202 | outputPaths = ( 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | shellPath = /bin/sh; 206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 207 | }; 208 | /* End PBXShellScriptBuildPhase section */ 209 | 210 | /* Begin PBXSourcesBuildPhase section */ 211 | 97C146EA1CF9000F007C117D /* Sources */ = { 212 | isa = PBXSourcesBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 216 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | }; 220 | /* End PBXSourcesBuildPhase section */ 221 | 222 | /* Begin PBXVariantGroup section */ 223 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C146FB1CF9000F007C117D /* Base */, 227 | ); 228 | name = Main.storyboard; 229 | sourceTree = ""; 230 | }; 231 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 232 | isa = PBXVariantGroup; 233 | children = ( 234 | 97C147001CF9000F007C117D /* Base */, 235 | ); 236 | name = LaunchScreen.storyboard; 237 | sourceTree = ""; 238 | }; 239 | /* End PBXVariantGroup section */ 240 | 241 | /* Begin XCBuildConfiguration section */ 242 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 243 | isa = XCBuildConfiguration; 244 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 245 | buildSettings = { 246 | ALWAYS_SEARCH_USER_PATHS = NO; 247 | CLANG_ANALYZER_NONNULL = YES; 248 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 249 | CLANG_CXX_LIBRARY = "libc++"; 250 | CLANG_ENABLE_MODULES = YES; 251 | CLANG_ENABLE_OBJC_ARC = YES; 252 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 253 | CLANG_WARN_BOOL_CONVERSION = YES; 254 | CLANG_WARN_COMMA = YES; 255 | CLANG_WARN_CONSTANT_CONVERSION = YES; 256 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 257 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 258 | CLANG_WARN_EMPTY_BODY = YES; 259 | CLANG_WARN_ENUM_CONVERSION = YES; 260 | CLANG_WARN_INFINITE_RECURSION = YES; 261 | CLANG_WARN_INT_CONVERSION = YES; 262 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 263 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 264 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 265 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 266 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 267 | CLANG_WARN_STRICT_PROTOTYPES = YES; 268 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 269 | CLANG_WARN_UNREACHABLE_CODE = YES; 270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 271 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 272 | COPY_PHASE_STRIP = NO; 273 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 274 | ENABLE_NS_ASSERTIONS = NO; 275 | ENABLE_STRICT_OBJC_MSGSEND = YES; 276 | GCC_C_LANGUAGE_STANDARD = gnu99; 277 | GCC_NO_COMMON_BLOCKS = YES; 278 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 279 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 280 | GCC_WARN_UNDECLARED_SELECTOR = YES; 281 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 282 | GCC_WARN_UNUSED_FUNCTION = YES; 283 | GCC_WARN_UNUSED_VARIABLE = YES; 284 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 285 | MTL_ENABLE_DEBUG_INFO = NO; 286 | SDKROOT = iphoneos; 287 | SUPPORTED_PLATFORMS = iphoneos; 288 | TARGETED_DEVICE_FAMILY = "1,2"; 289 | VALIDATE_PRODUCT = YES; 290 | }; 291 | name = Profile; 292 | }; 293 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 294 | isa = XCBuildConfiguration; 295 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 296 | buildSettings = { 297 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 298 | CLANG_ENABLE_MODULES = YES; 299 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 300 | ENABLE_BITCODE = NO; 301 | FRAMEWORK_SEARCH_PATHS = ( 302 | "$(inherited)", 303 | "$(PROJECT_DIR)/Flutter", 304 | ); 305 | INFOPLIST_FILE = Runner/Info.plist; 306 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 307 | LIBRARY_SEARCH_PATHS = ( 308 | "$(inherited)", 309 | "$(PROJECT_DIR)/Flutter", 310 | ); 311 | PRODUCT_BUNDLE_IDENTIFIER = com.example.kleberandrade; 312 | PRODUCT_NAME = "$(TARGET_NAME)"; 313 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 314 | SWIFT_VERSION = 5.0; 315 | VERSIONING_SYSTEM = "apple-generic"; 316 | }; 317 | name = Profile; 318 | }; 319 | 97C147031CF9000F007C117D /* Debug */ = { 320 | isa = XCBuildConfiguration; 321 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 322 | buildSettings = { 323 | ALWAYS_SEARCH_USER_PATHS = NO; 324 | CLANG_ANALYZER_NONNULL = YES; 325 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 326 | CLANG_CXX_LIBRARY = "libc++"; 327 | CLANG_ENABLE_MODULES = YES; 328 | CLANG_ENABLE_OBJC_ARC = YES; 329 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 330 | CLANG_WARN_BOOL_CONVERSION = YES; 331 | CLANG_WARN_COMMA = YES; 332 | CLANG_WARN_CONSTANT_CONVERSION = YES; 333 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 335 | CLANG_WARN_EMPTY_BODY = YES; 336 | CLANG_WARN_ENUM_CONVERSION = YES; 337 | CLANG_WARN_INFINITE_RECURSION = YES; 338 | CLANG_WARN_INT_CONVERSION = YES; 339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 340 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 341 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 343 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 344 | CLANG_WARN_STRICT_PROTOTYPES = YES; 345 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 346 | CLANG_WARN_UNREACHABLE_CODE = YES; 347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 349 | COPY_PHASE_STRIP = NO; 350 | DEBUG_INFORMATION_FORMAT = dwarf; 351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 352 | ENABLE_TESTABILITY = YES; 353 | GCC_C_LANGUAGE_STANDARD = gnu99; 354 | GCC_DYNAMIC_NO_PIC = NO; 355 | GCC_NO_COMMON_BLOCKS = YES; 356 | GCC_OPTIMIZATION_LEVEL = 0; 357 | GCC_PREPROCESSOR_DEFINITIONS = ( 358 | "DEBUG=1", 359 | "$(inherited)", 360 | ); 361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 363 | GCC_WARN_UNDECLARED_SELECTOR = YES; 364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 365 | GCC_WARN_UNUSED_FUNCTION = YES; 366 | GCC_WARN_UNUSED_VARIABLE = YES; 367 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 368 | MTL_ENABLE_DEBUG_INFO = YES; 369 | ONLY_ACTIVE_ARCH = YES; 370 | SDKROOT = iphoneos; 371 | TARGETED_DEVICE_FAMILY = "1,2"; 372 | }; 373 | name = Debug; 374 | }; 375 | 97C147041CF9000F007C117D /* Release */ = { 376 | isa = XCBuildConfiguration; 377 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 378 | buildSettings = { 379 | ALWAYS_SEARCH_USER_PATHS = NO; 380 | CLANG_ANALYZER_NONNULL = YES; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 386 | CLANG_WARN_BOOL_CONVERSION = YES; 387 | CLANG_WARN_COMMA = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 391 | CLANG_WARN_EMPTY_BODY = YES; 392 | CLANG_WARN_ENUM_CONVERSION = YES; 393 | CLANG_WARN_INFINITE_RECURSION = YES; 394 | CLANG_WARN_INT_CONVERSION = YES; 395 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNREACHABLE_CODE = YES; 403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 407 | ENABLE_NS_ASSERTIONS = NO; 408 | ENABLE_STRICT_OBJC_MSGSEND = YES; 409 | GCC_C_LANGUAGE_STANDARD = gnu99; 410 | GCC_NO_COMMON_BLOCKS = YES; 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 418 | MTL_ENABLE_DEBUG_INFO = NO; 419 | SDKROOT = iphoneos; 420 | SUPPORTED_PLATFORMS = iphoneos; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 422 | TARGETED_DEVICE_FAMILY = "1,2"; 423 | VALIDATE_PRODUCT = YES; 424 | }; 425 | name = Release; 426 | }; 427 | 97C147061CF9000F007C117D /* Debug */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | FRAMEWORK_SEARCH_PATHS = ( 436 | "$(inherited)", 437 | "$(PROJECT_DIR)/Flutter", 438 | ); 439 | INFOPLIST_FILE = Runner/Info.plist; 440 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 441 | LIBRARY_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "$(PROJECT_DIR)/Flutter", 444 | ); 445 | PRODUCT_BUNDLE_IDENTIFIER = com.example.kleberandrade; 446 | PRODUCT_NAME = "$(TARGET_NAME)"; 447 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 448 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 449 | SWIFT_VERSION = 5.0; 450 | VERSIONING_SYSTEM = "apple-generic"; 451 | }; 452 | name = Debug; 453 | }; 454 | 97C147071CF9000F007C117D /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 457 | buildSettings = { 458 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 459 | CLANG_ENABLE_MODULES = YES; 460 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 461 | ENABLE_BITCODE = NO; 462 | FRAMEWORK_SEARCH_PATHS = ( 463 | "$(inherited)", 464 | "$(PROJECT_DIR)/Flutter", 465 | ); 466 | INFOPLIST_FILE = Runner/Info.plist; 467 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 468 | LIBRARY_SEARCH_PATHS = ( 469 | "$(inherited)", 470 | "$(PROJECT_DIR)/Flutter", 471 | ); 472 | PRODUCT_BUNDLE_IDENTIFIER = com.example.kleberandrade; 473 | PRODUCT_NAME = "$(TARGET_NAME)"; 474 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 475 | SWIFT_VERSION = 5.0; 476 | VERSIONING_SYSTEM = "apple-generic"; 477 | }; 478 | name = Release; 479 | }; 480 | /* End XCBuildConfiguration section */ 481 | 482 | /* Begin XCConfigurationList section */ 483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | 97C147031CF9000F007C117D /* Debug */, 487 | 97C147041CF9000F007C117D /* Release */, 488 | 249021D3217E4FDB00AE95B9 /* Profile */, 489 | ); 490 | defaultConfigurationIsVisible = 0; 491 | defaultConfigurationName = Release; 492 | }; 493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 494 | isa = XCConfigurationList; 495 | buildConfigurations = ( 496 | 97C147061CF9000F007C117D /* Debug */, 497 | 97C147071CF9000F007C117D /* Release */, 498 | 249021D4217E4FDB00AE95B9 /* Profile */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | defaultConfigurationName = Release; 502 | }; 503 | /* End XCConfigurationList section */ 504 | }; 505 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 506 | } 507 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/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 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/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 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | kleberandrade 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/components/centered_message.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CenteredMessage extends StatelessWidget { 4 | final String text; 5 | 6 | CenteredMessage(this.text); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Center( 11 | child: Text( 12 | text, 13 | style: TextStyle( 14 | color: Theme.of(context).primaryColor, 15 | fontSize: 20.0, 16 | fontWeight: FontWeight.w300, 17 | ), 18 | ), 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/components/centered_progress.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class CenteredProgress extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return Center( 8 | child: CircularProgressIndicator( 9 | backgroundColor: Theme.of(context).primaryColor, 10 | ), 11 | ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/components/filter_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class FilterButton extends StatelessWidget { 5 | final FormFieldSetter onSaved; 6 | final int initialValue; 7 | final double borderRadius; 8 | final List items; 9 | final double space; 10 | 11 | FilterButton({ 12 | this.onSaved, 13 | this.initialValue, 14 | this.borderRadius = 4.0, 15 | this.items, 16 | this.space = 10.0, 17 | }); 18 | 19 | List _buildRowList( 20 | {BuildContext context, FormFieldState state}) { 21 | List itemWidget = []; 22 | for (int i = 0; i < items.length; i++) { 23 | itemWidget.add( 24 | _buildCustomButton( 25 | context: context, 26 | state: state, 27 | option: i, 28 | label: items[i], 29 | ), 30 | ); 31 | 32 | if (i != items.length - 1) { 33 | itemWidget.add( 34 | SizedBox( 35 | width: 10.0, 36 | ), 37 | ); 38 | } 39 | } 40 | return itemWidget; 41 | } 42 | 43 | @override 44 | Widget build(BuildContext context) { 45 | return FormField( 46 | initialValue: initialValue, 47 | onSaved: onSaved, 48 | builder: (state) { 49 | return Row( 50 | children: _buildRowList(context: context, state: state), 51 | ); 52 | }, 53 | ); 54 | } 55 | 56 | Widget _buildCustomButton( 57 | {FormFieldState state, 58 | BuildContext context, 59 | int option, 60 | String label = ''}) { 61 | return Expanded( 62 | child: GestureDetector( 63 | onTap: () { 64 | print('Change state to $option'); 65 | state.didChange(option); 66 | onSaved(option); 67 | }, 68 | child: Container( 69 | height: 40.0, 70 | decoration: BoxDecoration( 71 | borderRadius: BorderRadius.circular(borderRadius), 72 | border: Border.all( 73 | color: state.value != option 74 | ? Theme.of(context).primaryColor 75 | : Theme.of(context).disabledColor, 76 | ), 77 | color: state.value != option 78 | ? Colors.white 79 | : Theme.of(context).primaryColor, 80 | ), 81 | alignment: Alignment.center, 82 | child: Text( 83 | label, 84 | style: TextStyle( 85 | fontWeight: FontWeight.w500, 86 | color: state.value == option 87 | ? Colors.white 88 | : Theme.of(context).primaryColor, 89 | ), 90 | ), 91 | ), 92 | ), 93 | ); 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /lib/controllers/contact_controller.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:another_flushbar/flushbar.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:kleberandrade/models/contact.dart'; 7 | import 'package:kleberandrade/services/contact_api.dart'; 8 | 9 | class ContactController { 10 | Future sendEmail(Contact contact) async { 11 | final response = await ContactApi.fetch(contact); 12 | if (response == null) return false; 13 | 14 | return json.decode(response.body)['status'] == 'SUCCESS'; 15 | } 16 | 17 | void showSuccessDialog(BuildContext context) { 18 | _showDialog( 19 | context: context, 20 | title: "Sucesso", 21 | message: "Email enviado com sucesso!", 22 | color: Colors.green, 23 | ); 24 | } 25 | 26 | void showFailureDialog(BuildContext context) { 27 | _showDialog( 28 | context: context, 29 | title: "Erro", 30 | message: "Falha ao tentar enviar o email", 31 | color: Colors.red, 32 | ); 33 | } 34 | 35 | void _showDialog( 36 | {BuildContext context, String title, String message, Color color}) { 37 | Flushbar( 38 | flushbarPosition: FlushbarPosition.TOP, 39 | margin: EdgeInsets.symmetric(vertical: 100.0, horizontal: 20.0), 40 | maxWidth: 500.0, 41 | title: title, 42 | message: message, 43 | backgroundColor: color.withOpacity(0.5), 44 | duration: Duration(seconds: 3), 45 | )..show(context); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/controllers/home_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | 3 | class HomeController { 4 | static final HomeController _singleton = new HomeController._internal(); 5 | 6 | factory HomeController() { 7 | return _singleton; 8 | } 9 | 10 | HomeController._internal(); 11 | 12 | final scrollController = ScrollController(); 13 | final coverSectionKey = GlobalKey(); 14 | final aboutSectionKey = GlobalKey(); 15 | final courseSectionKey = GlobalKey(); 16 | final projectSectionKey = GlobalKey(); 17 | final courseFilterItems = ['Todos', 'ADS', 'Jogos', 'Udemy']; 18 | final projectFilterItems = ['Todos', 'Arduino', 'Desktop', 'IA', 'Jogos', 'Mobile']; 19 | 20 | int courseFilterSelected = 0; 21 | int projectFilterSelected = 0; 22 | 23 | String get courseFilterItemSelected => courseFilterItems[courseFilterSelected]; 24 | String get projectFilterItemSelected => projectFilterItems[projectFilterSelected]; 25 | 26 | double _coverHeight; 27 | double _aboutHeight; 28 | double _courseHeight; 29 | double _projectHeight; 30 | 31 | void _jumpTo(double offset, {int milliseconds = 300}) { 32 | scrollController.animateTo( 33 | offset, 34 | curve: Curves.easeInOut, 35 | duration: Duration(milliseconds: milliseconds), 36 | ); 37 | } 38 | 39 | void jumpToHome() { 40 | _updateSizes(); 41 | _jumpTo(0.0); 42 | } 43 | 44 | void jumpToAbout() { 45 | _updateSizes(); 46 | _jumpTo(_coverHeight); 47 | } 48 | 49 | void jumpToCourse() { 50 | _updateSizes(); 51 | _jumpTo(_coverHeight + _aboutHeight); 52 | } 53 | 54 | void jumpToProject() { 55 | _updateSizes(); 56 | if (_courseHeight == null) 57 | _jumpTo(scrollController.position.maxScrollExtent); 58 | else 59 | _jumpTo(_coverHeight + _aboutHeight + _courseHeight); 60 | } 61 | 62 | void _updateSizes() { 63 | _coverHeight = 64 | _coverHeight ?? coverSectionKey?.currentContext?.size?.height; 65 | _aboutHeight = 66 | _aboutHeight ?? aboutSectionKey?.currentContext?.size?.height; 67 | _courseHeight = 68 | _courseHeight ?? courseSectionKey?.currentContext?.size?.height; 69 | _projectHeight = 70 | _projectHeight ?? projectSectionKey?.currentContext?.size?.height; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /lib/helpers/image_helper.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ImageHelper { 4 | static Image fromNetwork(String url) { 5 | return Image.network( 6 | url, 7 | fit: BoxFit.cover, 8 | loadingBuilder: ( 9 | BuildContext context, 10 | Widget child, 11 | ImageChunkEvent loadingProgress, 12 | ) { 13 | if (loadingProgress == null) { 14 | return child; 15 | } 16 | 17 | return Center( 18 | child: CircularProgressIndicator( 19 | backgroundColor: Theme.of(context).primaryColor, 20 | ), 21 | ); 22 | }, 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/helpers/url_helper.dart: -------------------------------------------------------------------------------- 1 | import 'package:url_launcher/url_launcher.dart'; 2 | 3 | class UrlHelper { 4 | static Future open(String url) async { 5 | if (await canLaunch(url)) { 6 | await launch( 7 | url, 8 | forceSafariVC: false, 9 | forceWebView: false, 10 | headers: {'my_header_key': 'my_header_value'}, 11 | ); 12 | } else { 13 | throw 'Could not launch $url'; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kleberandrade/pages/home_page.dart'; 3 | 4 | import 'themes/dark_theme.dart'; 5 | 6 | void main() { 7 | runApp(MyApp()); 8 | } 9 | 10 | class MyApp extends StatelessWidget { 11 | @override 12 | Widget build(BuildContext context) { 13 | return MaterialApp( 14 | debugShowCheckedModeBanner: false, 15 | title: 'Kleber Andrade', 16 | theme: myTheme, 17 | home: HomePage(), 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/models/contact.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | class Contact { 4 | String name; 5 | String email; 6 | String message; 7 | 8 | Contact({ 9 | this.name, 10 | this.email, 11 | this.message, 12 | }); 13 | 14 | String toParams() => "?name=$name&email=$email&message=$message"; 15 | 16 | Contact copyWith({ 17 | String name, 18 | String email, 19 | String message, 20 | }) { 21 | return Contact( 22 | name: name ?? this.name, 23 | email: email ?? this.email, 24 | message: message ?? this.message, 25 | ); 26 | } 27 | 28 | Map toMap() { 29 | return { 30 | 'name': name, 31 | 'email': email, 32 | 'message': message, 33 | }; 34 | } 35 | 36 | static Contact fromMap(Map map) { 37 | if (map == null) return null; 38 | 39 | return Contact( 40 | name: map['name'], 41 | email: map['email'], 42 | message: map['message'], 43 | ); 44 | } 45 | 46 | String toJson() => json.encode(toMap()); 47 | 48 | static Contact fromJson(String source) => fromMap(json.decode(source)); 49 | 50 | @override 51 | String toString() => 'Contact(name: $name, email: $email, message: $message)'; 52 | 53 | @override 54 | bool operator ==(Object o) { 55 | if (identical(this, o)) return true; 56 | 57 | return o is Contact && 58 | o.name == name && 59 | o.email == email && 60 | o.message == message; 61 | } 62 | 63 | @override 64 | int get hashCode => name.hashCode ^ email.hashCode ^ message.hashCode; 65 | } 66 | -------------------------------------------------------------------------------- /lib/models/course.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | class Course { 4 | String title; 5 | String tag; 6 | String description; 7 | String picture; 8 | String github; 9 | 10 | Course({ 11 | this.title, 12 | this.tag, 13 | this.description, 14 | this.picture, 15 | this.github, 16 | }); 17 | 18 | Course copyWith({ 19 | String title, 20 | String tag, 21 | String description, 22 | String picture, 23 | String github, 24 | }) { 25 | return Course( 26 | title: title ?? this.title, 27 | tag: tag ?? this.tag, 28 | description: description ?? this.description, 29 | picture: picture ?? this.picture, 30 | github: github ?? this.github, 31 | ); 32 | } 33 | 34 | Map toMap() { 35 | return { 36 | 'title': title, 37 | 'tag': tag, 38 | 'description': description, 39 | 'picture': picture, 40 | 'github': github, 41 | }; 42 | } 43 | 44 | static Course fromMap(Map map) { 45 | if (map == null) return null; 46 | 47 | return Course( 48 | title: map['title'], 49 | tag: map['tag'], 50 | description: map['description'], 51 | picture: map['picture'], 52 | github: map['github'], 53 | ); 54 | } 55 | 56 | String toJson() => json.encode(toMap()); 57 | 58 | static Course fromJson(String source) => fromMap(json.decode(source)); 59 | 60 | @override 61 | String toString() { 62 | return 'Course(title: $title, tag: $tag, description: $description, picture: $picture, github: $github)'; 63 | } 64 | 65 | @override 66 | bool operator ==(Object o) { 67 | if (identical(this, o)) return true; 68 | 69 | return o is Course && 70 | o.title == title && 71 | o.tag == tag && 72 | o.description == description && 73 | o.picture == picture && 74 | o.github == github; 75 | } 76 | 77 | @override 78 | int get hashCode { 79 | return title.hashCode ^ 80 | tag.hashCode ^ 81 | description.hashCode ^ 82 | picture.hashCode ^ 83 | github.hashCode; 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /lib/models/navbar_link.dart: -------------------------------------------------------------------------------- 1 | class NavbarLink { 2 | String title; 3 | String url; 4 | Function onPressed; 5 | 6 | NavbarLink({ 7 | this.title, 8 | this.url, 9 | this.onPressed, 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /lib/models/project.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | class Project { 4 | String title; 5 | String description; 6 | String tag; 7 | String picture; 8 | String github; 9 | String facebook; 10 | String youtube; 11 | String playstore; 12 | String itchio; 13 | String medium; 14 | String paper; 15 | String applestore; 16 | 17 | Project({ 18 | this.title, 19 | this.description, 20 | this.tag, 21 | this.picture, 22 | this.github, 23 | this.facebook, 24 | this.youtube, 25 | this.playstore, 26 | this.itchio, 27 | this.medium, 28 | this.paper, 29 | this.applestore, 30 | }); 31 | 32 | Project copyWith({ 33 | String title, 34 | String description, 35 | String tag, 36 | String picture, 37 | String github, 38 | String facebook, 39 | String youtube, 40 | String playstore, 41 | String itchio, 42 | String medium, 43 | String paper, 44 | String applestore, 45 | }) { 46 | return Project( 47 | title: title ?? this.title, 48 | description: description ?? this.description, 49 | tag: tag ?? this.tag, 50 | picture: picture ?? this.picture, 51 | github: github ?? this.github, 52 | facebook: facebook ?? this.facebook, 53 | youtube: youtube ?? this.youtube, 54 | playstore: playstore ?? this.playstore, 55 | itchio: itchio ?? this.itchio, 56 | medium: medium ?? this.medium, 57 | paper: paper ?? this.paper, 58 | applestore: applestore ?? this.applestore, 59 | ); 60 | } 61 | 62 | Map toMap() { 63 | return { 64 | 'title': title, 65 | 'description': description, 66 | 'tag': tag, 67 | 'picture': picture, 68 | 'github': github, 69 | 'facebook': facebook, 70 | 'youtube': youtube, 71 | 'playstore': playstore, 72 | 'itchio': itchio, 73 | 'medium': medium, 74 | 'paper': paper, 75 | 'applestore': applestore, 76 | }; 77 | } 78 | 79 | static Project fromMap(Map map) { 80 | if (map == null) return null; 81 | 82 | return Project( 83 | title: map['title'], 84 | description: map['description'], 85 | tag: map['tag'], 86 | picture: map['picture'], 87 | github: map['github'], 88 | facebook: map['facebook'], 89 | youtube: map['youtube'], 90 | playstore: map['playstore'], 91 | itchio: map['itchio'], 92 | medium: map['medium'], 93 | paper: map['paper'], 94 | applestore: map['applestore'], 95 | ); 96 | } 97 | 98 | String toJson() => json.encode(toMap()); 99 | 100 | static Project fromJson(String source) => fromMap(json.decode(source)); 101 | 102 | @override 103 | String toString() { 104 | return 'Project(title: $title, description: $description, tag: $tag, picture: $picture, github: $github, facebook: $facebook, youtube: $youtube, playstore: $playstore, itchio: $itchio, medium: $medium, paper: $paper, applestore: $applestore)'; 105 | } 106 | 107 | @override 108 | bool operator ==(Object o) { 109 | if (identical(this, o)) return true; 110 | 111 | return o is Project && 112 | o.title == title && 113 | o.description == description && 114 | o.tag == tag && 115 | o.picture == picture && 116 | o.github == github && 117 | o.facebook == facebook && 118 | o.youtube == youtube && 119 | o.playstore == playstore && 120 | o.itchio == itchio && 121 | o.medium == medium && 122 | o.paper == paper && 123 | o.applestore == applestore; 124 | } 125 | 126 | @override 127 | int get hashCode { 128 | return title.hashCode ^ 129 | description.hashCode ^ 130 | tag.hashCode ^ 131 | picture.hashCode ^ 132 | github.hashCode ^ 133 | facebook.hashCode ^ 134 | youtube.hashCode ^ 135 | playstore.hashCode ^ 136 | itchio.hashCode ^ 137 | medium.hashCode ^ 138 | paper.hashCode ^ 139 | applestore.hashCode; 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /lib/pages/home/about/about_section.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:kleberandrade/controllers/home_controller.dart'; 4 | import 'package:kleberandrade/pages/home/sections/section_description.dart'; 5 | import 'package:kleberandrade/pages/home/sections/section_title.dart'; 6 | 7 | class AboutSection extends StatelessWidget { 8 | final _controller = HomeController(); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return Container( 13 | key: _controller.aboutSectionKey, 14 | color: Colors.white, 15 | child: Column( 16 | crossAxisAlignment: CrossAxisAlignment.center, 17 | children: [ 18 | SectionTitle( 19 | text: 'Sobre o autor', 20 | ), 21 | Padding( 22 | padding: const EdgeInsets.fromLTRB(20.0, 52.0, 20.0, 20.0), 23 | child: SizedBox( 24 | height: 120, 25 | width: 120, 26 | child: Center( 27 | child: Image.asset('assets/images/logo.png'), 28 | ), 29 | ), 30 | ), 31 | SectionDescription( 32 | description: 33 | 'Possui graduação em Ciência da Computação pela Escola de Engenharia de Piracicaba (2008). Mestrado e doutorado em Engenharia Mecânica pela Universidade de São Paulo (2011/2016). Especialização em Game Design pela Universidade Positivo (2018). Atualmente é professor assistente na Faculdade de Tecnologia Americana e professor no Centro Universitário Salesiano São Paulo campus São José - Campinas. Tem experiência na área de Ciência da Computação, com ênfase em Inteligência Artificial, atuando principalmente nos seguintes temas: Computação Evolutiva, Redes Neurais, Serious Games, Reabilitação Robótica e Robótica Móvel.', 34 | ), 35 | ], 36 | ), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/pages/home/contact/contact_dialog.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kleberandrade/controllers/contact_controller.dart'; 3 | import 'package:kleberandrade/models/contact.dart'; 4 | import 'package:kleberandrade/pages/home/contact/contact_form_button.dart'; 5 | import 'package:kleberandrade/pages/home/contact/contact_text_field.dart'; 6 | import 'package:kleberandrade/pages/home/sections/section_description.dart'; 7 | import 'package:kleberandrade/pages/home/sections/section_title.dart'; 8 | 9 | class ContactDialog extends StatefulWidget { 10 | @override 11 | _ContactDialogState createState() => _ContactDialogState(); 12 | } 13 | 14 | class _ContactDialogState extends State { 15 | final _formKey = GlobalKey(); 16 | final _controller = ContactController(); 17 | final _contact = Contact(); 18 | 19 | bool sending = false; 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return AlertDialog( 24 | backgroundColor: Colors.white, 25 | title: SectionTitle( 26 | text: 'Contato', 27 | ), 28 | content: Form( 29 | key: _formKey, 30 | child: Column( 31 | mainAxisSize: MainAxisSize.min, 32 | children: [ 33 | SectionDescription( 34 | description: 'Você tem alguma pergunta?', 35 | vertical: 16.0, 36 | ), 37 | ContactTextField( 38 | hintText: 'Nome', 39 | icon: Icons.person, 40 | onSaved: (text) => _contact.name = text, 41 | enabled: !sending, 42 | keyboardType: TextInputType.text, 43 | ), 44 | ContactTextField( 45 | hintText: 'Email', 46 | icon: Icons.email, 47 | onSaved: (text) => _contact.email = text, 48 | enabled: !sending, 49 | keyboardType: TextInputType.emailAddress, 50 | ), 51 | ContactTextField( 52 | hintText: 'Mensagem', 53 | maxLines: 5, 54 | icon: Icons.message, 55 | onSaved: (text) => _contact.message = text, 56 | enabled: !sending, 57 | keyboardType: TextInputType.multiline, 58 | ), 59 | ], 60 | ), 61 | ), 62 | actionsPadding: EdgeInsets.all(16.0), 63 | actions: [ 64 | ContactFormButton( 65 | text: 'Cancelar', 66 | onPressed: () { 67 | Navigator.of(context).pop(); 68 | }, 69 | ), 70 | ContactFormButton( 71 | text: 'Enviar', 72 | loading: sending, 73 | onPressed: () async { 74 | if (_formKey.currentState.validate()) { 75 | _formKey.currentState.save(); 76 | 77 | setState(() { 78 | sending = true; 79 | }); 80 | 81 | final result = await _controller.sendEmail(_contact); 82 | 83 | if (result) { 84 | Navigator.of(context).pop(); 85 | _controller.showSuccessDialog(context); 86 | } else { 87 | setState(() { 88 | sending = false; 89 | }); 90 | 91 | _controller.showFailureDialog(context); 92 | } 93 | } 94 | }, 95 | ), 96 | ], 97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /lib/pages/home/contact/contact_form_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ContactFormButton extends StatelessWidget { 4 | final String text; 5 | final Function onPressed; 6 | final bool loading; 7 | 8 | const ContactFormButton({ 9 | Key key, 10 | this.text, 11 | this.onPressed, 12 | this.loading = false, 13 | }) : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return RaisedButton( 18 | child: Container( 19 | height: 50.0, 20 | width: MediaQuery.of(context).size.width < 720 ? 100.0 : 200.0, 21 | child: Center( 22 | child: loading 23 | ? Container( 24 | width: 24.0, 25 | height: 24.0, 26 | child: CircularProgressIndicator( 27 | backgroundColor: Colors.white, 28 | ), 29 | ) 30 | : Text( 31 | text.toUpperCase(), 32 | ), 33 | ), 34 | ), 35 | onPressed: onPressed, 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /lib/pages/home/contact/contact_text_field.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ContactTextField extends StatelessWidget { 4 | final String hintText; 5 | final int maxLines; 6 | final IconData icon; 7 | final Function(String) onSaved; 8 | final TextInputType keyboardType; 9 | final bool enabled; 10 | 11 | const ContactTextField({ 12 | Key key, 13 | this.hintText, 14 | this.maxLines = 1, 15 | this.icon, 16 | this.onSaved, 17 | this.keyboardType = TextInputType.text, 18 | this.enabled = true, 19 | }) : super(key: key); 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return Padding( 24 | padding: const EdgeInsets.symmetric(vertical: 8.0), 25 | child: TextFormField( 26 | enabled: enabled, 27 | maxLines: maxLines, 28 | keyboardType: keyboardType, 29 | style: TextStyle( 30 | color: Theme.of(context).primaryColor, 31 | ), 32 | decoration: new InputDecoration( 33 | prefixIcon: Icon( 34 | icon, 35 | color: Colors.grey, 36 | ), 37 | hintText: hintText, 38 | hintStyle: TextStyle( 39 | color: Colors.grey, 40 | ), 41 | enabledBorder: OutlineInputBorder( 42 | borderSide: BorderSide( 43 | color: Colors.grey, 44 | ), 45 | ), 46 | disabledBorder: OutlineInputBorder( 47 | borderSide: BorderSide( 48 | color: Colors.grey, 49 | ), 50 | ), 51 | focusedBorder: OutlineInputBorder( 52 | borderSide: BorderSide(), 53 | ), 54 | errorBorder: OutlineInputBorder( 55 | borderSide: BorderSide( 56 | color: Colors.red, 57 | ), 58 | ), 59 | focusedErrorBorder: OutlineInputBorder( 60 | borderSide: BorderSide(), 61 | ), 62 | ), 63 | validator: (text) { 64 | if (text.isEmpty) return 'Campo obrigatório'; 65 | return null; 66 | }, 67 | onSaved: onSaved, 68 | ), 69 | ); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /lib/pages/home/course/course_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:kleberandrade/helpers/image_helper.dart'; 4 | import 'package:kleberandrade/helpers/url_helper.dart'; 5 | import 'package:kleberandrade/models/course.dart'; 6 | 7 | class CourseCard extends StatelessWidget { 8 | final Course course; 9 | 10 | const CourseCard({ 11 | Key key, 12 | this.course, 13 | }) : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Card( 18 | margin: EdgeInsets.all(8.0), 19 | color: Colors.white, 20 | child: Container( 21 | height: 320.0, 22 | width: 320.0, 23 | child: Column( 24 | crossAxisAlignment: CrossAxisAlignment.stretch, 25 | children: [ 26 | Container( 27 | height: 180.0, 28 | child: ImageHelper.fromNetwork(course.picture), 29 | ), 30 | Padding( 31 | padding: const EdgeInsets.all(16.0), 32 | child: Text( 33 | course.title ?? 'Sem título', 34 | style: TextStyle( 35 | fontSize: 20.0, 36 | fontWeight: FontWeight.w700, 37 | color: Theme.of(context).primaryColor, 38 | ), 39 | textAlign: TextAlign.left, 40 | ), 41 | ), 42 | Expanded( 43 | child: Padding( 44 | padding: const EdgeInsets.fromLTRB(16.0, 4.0, 16.0, 8.0), 45 | child: Text( 46 | course.description ?? 'Sem descrição', 47 | maxLines: 5, 48 | style: TextStyle( 49 | fontSize: 16.0, 50 | height: 1.5, 51 | fontWeight: FontWeight.w300, 52 | color: Theme.of(context).primaryColor, 53 | ), 54 | textAlign: TextAlign.justify, 55 | ), 56 | ), 57 | ), 58 | Padding( 59 | padding: const EdgeInsets.symmetric( 60 | vertical: 8.0, 61 | horizontal: 8.0, 62 | ), 63 | child: Row( 64 | mainAxisAlignment: MainAxisAlignment.end, 65 | crossAxisAlignment: CrossAxisAlignment.center, 66 | children: [ 67 | _buildIconButton( 68 | context, 69 | FontAwesomeIcons.github, 70 | course.github ?? '', 71 | ), 72 | ], 73 | ), 74 | ) 75 | ], 76 | ), 77 | ), 78 | ); 79 | } 80 | 81 | _buildIconButton(BuildContext context, IconData icon, String url) { 82 | return Visibility( 83 | visible: url != null && url.length > 0, 84 | child: IconButton( 85 | icon: Icon( 86 | icon, 87 | color: Theme.of(context).primaryColor, 88 | ), 89 | onPressed: () { 90 | UrlHelper.open(url); 91 | }, 92 | ), 93 | ); 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /lib/pages/home/course/course_section.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:kleberandrade/components/centered_message.dart'; 4 | import 'package:kleberandrade/components/centered_progress.dart'; 5 | import 'package:kleberandrade/controllers/home_controller.dart'; 6 | import 'package:kleberandrade/models/course.dart'; 7 | import 'package:kleberandrade/pages/home/sections/section_description.dart'; 8 | import 'package:kleberandrade/pages/home/sections/section_filter_list.dart'; 9 | import 'package:kleberandrade/pages/home/sections/section_title.dart'; 10 | import 'package:kleberandrade/services/course_api.dart'; 11 | 12 | import 'course_card.dart'; 13 | 14 | class CourseSection extends StatefulWidget { 15 | @override 16 | _CourseSectionState createState() => _CourseSectionState(); 17 | } 18 | 19 | class _CourseSectionState extends State 20 | with AutomaticKeepAliveClientMixin { 21 | final _controller = HomeController(); 22 | 23 | @override 24 | @mustCallSuper 25 | Widget build(BuildContext context) { 26 | super.build(context); 27 | 28 | return Container( 29 | key: _controller.courseSectionKey, 30 | color: Color(0xFFF8F9FA), 31 | child: Column( 32 | crossAxisAlignment: CrossAxisAlignment.center, 33 | mainAxisSize: MainAxisSize.min, 34 | children: [ 35 | SectionTitle( 36 | text: 'Cursos', 37 | ), 38 | SectionDescription( 39 | description: 40 | 'Espaço destinado aos materiais dos cursos criados e ministrados por mim.', 41 | ), 42 | SectionFilterList( 43 | filterList: _controller.courseFilterItems, 44 | onSaved: (index) { 45 | setState(() { 46 | _controller.courseFilterSelected = index; 47 | }); 48 | }, 49 | ), 50 | Padding( 51 | padding: const EdgeInsets.fromLTRB(20.0, 0.0, 20.0, 32.0), 52 | child: Container( 53 | width: 1080, 54 | height: 460.0, 55 | child: _buildList(), 56 | ), 57 | ) 58 | ], 59 | ), 60 | ); 61 | } 62 | 63 | Widget _buildList() { 64 | return FutureBuilder>( 65 | future: CourseApi.fetch(), 66 | builder: (context, snapshot) { 67 | if (snapshot.hasData) { 68 | List data = snapshot.data; 69 | return ListView.builder( 70 | shrinkWrap: true, 71 | addAutomaticKeepAlives: true, 72 | scrollDirection: Axis.horizontal, 73 | itemCount: data.length, 74 | itemBuilder: (BuildContext ctxt, int index) { 75 | final course = data[index]; 76 | if (_controller.courseFilterItemSelected == _controller.courseFilterItems[0] || 77 | course.tag.contains(_controller.courseFilterItemSelected)) 78 | return CourseCard( 79 | course: course, 80 | ); 81 | 82 | return SizedBox(); 83 | }, 84 | ); 85 | } else if (snapshot.hasError) { 86 | return CenteredMessage(snapshot.error); 87 | } 88 | return CenteredProgress(); 89 | }, 90 | ); 91 | } 92 | 93 | @override 94 | bool get wantKeepAlive => true; 95 | } 96 | -------------------------------------------------------------------------------- /lib/pages/home/cover/cover_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class CoverButton extends StatelessWidget { 5 | final IconData icon; 6 | final Function onPressed; 7 | 8 | CoverButton({this.icon, this.onPressed}); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return IconButton( 13 | icon: Icon(icon), 14 | color: Colors.white54, 15 | iconSize: 32, 16 | onPressed: onPressed, 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/pages/home/cover/cover_button_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:kleberandrade/helpers/url_helper.dart'; 4 | import 'package:kleberandrade/pages/home/contact/contact_dialog.dart'; 5 | 6 | import 'cover_button.dart'; 7 | 8 | class CoverButtonList extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Padding( 12 | padding: const EdgeInsets.symmetric(vertical: 32.0, horizontal: 20.0), 13 | child: Container( 14 | width: 720, 15 | child: Row( 16 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 17 | crossAxisAlignment: CrossAxisAlignment.center, 18 | children: [ 19 | CoverButton( 20 | icon: Icons.mail, 21 | onPressed: () { 22 | showDialog( 23 | context: context, 24 | barrierDismissible: false, 25 | builder: (BuildContext context) { 26 | return ContactDialog(); 27 | }, 28 | ); 29 | }, 30 | ), 31 | CoverButton( 32 | icon: FontAwesomeIcons.researchgate, 33 | onPressed: () { 34 | UrlHelper.open( 35 | 'https://www.researchgate.net/profile/Kleber_Andrade2'); 36 | }, 37 | ), 38 | CoverButton( 39 | icon: FontAwesomeIcons.twitter, 40 | onPressed: () { 41 | UrlHelper.open('https://twitter.com/pdjkleber'); 42 | }, 43 | ), 44 | CoverButton( 45 | icon: FontAwesomeIcons.linkedin, 46 | onPressed: () { 47 | UrlHelper.open('https://www.linkedin.com/in/kleberandrade/'); 48 | }, 49 | ), 50 | CoverButton( 51 | icon: FontAwesomeIcons.medium, 52 | onPressed: () { 53 | UrlHelper.open('https://medium.com/@kleberandrade'); 54 | }, 55 | ), 56 | CoverButton( 57 | icon: FontAwesomeIcons.youtube, 58 | onPressed: () { 59 | UrlHelper.open('https://www.youtube.com/user/pdjkleber'); 60 | }, 61 | ), 62 | CoverButton( 63 | icon: FontAwesomeIcons.github, 64 | onPressed: () { 65 | UrlHelper.open('https://github.com/kleberandrade'); 66 | }, 67 | ), 68 | CoverButton( 69 | icon: FontAwesomeIcons.itchIo, 70 | onPressed: () { 71 | UrlHelper.open('https://kleberandrade.itch.io'); 72 | }, 73 | ), 74 | ], 75 | ), 76 | ), 77 | ); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /lib/pages/home/cover/cover_section.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kleberandrade/controllers/home_controller.dart'; 3 | import 'cover_button_list.dart'; 4 | 5 | class CoverSection extends StatelessWidget { 6 | final _controller = HomeController(); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Container( 11 | key: _controller.coverSectionKey, 12 | width: 900.0, 13 | height: MediaQuery.of(context).size.height, 14 | child: Column( 15 | mainAxisAlignment: MainAxisAlignment.center, 16 | children: [ 17 | Padding( 18 | padding: const EdgeInsets.symmetric( 19 | vertical: 8.0, 20 | horizontal: 20.0, 21 | ), 22 | child: Text( 23 | 'Kleber Andrade', 24 | textAlign: TextAlign.center, 25 | style: TextStyle( 26 | fontSize: 80.0, 27 | fontWeight: FontWeight.w800, 28 | ), 29 | ), 30 | ), 31 | Padding( 32 | padding: const EdgeInsets.symmetric( 33 | horizontal: 20.0, 34 | ), 35 | child: Center( 36 | child: Divider( 37 | height: 0.2, 38 | color: Colors.white, 39 | ), 40 | ), 41 | ), 42 | Padding( 43 | padding: const EdgeInsets.symmetric( 44 | vertical: 16.0, 45 | horizontal: 20.0, 46 | ), 47 | child: Text( 48 | 'Pesquisador - Professor - Programador', 49 | textAlign: TextAlign.center, 50 | style: TextStyle( 51 | fontSize: 18.0, 52 | fontWeight: FontWeight.w300, 53 | ), 54 | ), 55 | ), 56 | CoverButtonList(), 57 | ], 58 | ), 59 | ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/pages/home/footer/footer.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Footer extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return Container( 7 | height: 80.0, 8 | color: Theme.of(context).primaryColor, 9 | child: Center( 10 | child: Padding( 11 | padding: const EdgeInsets.symmetric( 12 | vertical: 8.0, 13 | horizontal: 20.0, 14 | ), 15 | child: Text( 16 | '© 2020 Copyright Kleber de Oliveira Andrade. Todos os direitos reservados.', 17 | textAlign: TextAlign.center, 18 | ), 19 | ), 20 | ), 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/pages/home/navbar/navbar_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class NavbarItem extends StatelessWidget { 4 | final String title; 5 | final Function onPressed; 6 | 7 | const NavbarItem({ 8 | Key key, 9 | this.title, 10 | this.onPressed, 11 | }) : super(key: key); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return FlatButton( 16 | child: Text( 17 | title.toUpperCase(), 18 | style: TextStyle(fontSize: 14), 19 | ), 20 | onPressed: onPressed, 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/pages/home/navbar/navbar_logo.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kleberandrade/controllers/home_controller.dart'; 3 | 4 | class NavbarLogo extends StatelessWidget { 5 | final _controller = HomeController(); 6 | 7 | @override 8 | Widget build(BuildContext context) { 9 | return GestureDetector( 10 | onTap: () { 11 | _controller.jumpToHome(); 12 | }, 13 | child: Row( 14 | children: [ 15 | SizedBox( 16 | height: 32, 17 | width: 32, 18 | child: Center(child: Image.asset('assets/images/logo.png')), 19 | ), 20 | Padding( 21 | padding: const EdgeInsets.only(left: 16.0), 22 | child: Text( 23 | 'Kleber Andrade', 24 | style: TextStyle( 25 | fontSize: 18.0, 26 | fontWeight: FontWeight.w500, 27 | ), 28 | ), 29 | ) 30 | ], 31 | ), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/pages/home/project/project_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:kleberandrade/helpers/image_helper.dart'; 4 | import 'package:kleberandrade/helpers/url_helper.dart'; 5 | import 'package:kleberandrade/models/project.dart'; 6 | 7 | class ProjectCard extends StatelessWidget { 8 | final Project project; 9 | 10 | const ProjectCard({ 11 | Key key, 12 | this.project, 13 | }) : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Card( 18 | margin: EdgeInsets.all(8.0), 19 | color: Colors.white, 20 | child: Container( 21 | height: 350.0, 22 | width: 320.0, 23 | child: Column( 24 | crossAxisAlignment: CrossAxisAlignment.stretch, 25 | children: [ 26 | Container( 27 | height: 180.0, 28 | child: ImageHelper.fromNetwork(project.picture), 29 | ), 30 | Padding( 31 | padding: const EdgeInsets.all(16.0), 32 | child: Text( 33 | project.title ?? 'Sem título', 34 | style: TextStyle( 35 | fontSize: 20.0, 36 | fontWeight: FontWeight.w700, 37 | color: Theme.of(context).primaryColor, 38 | ), 39 | textAlign: TextAlign.left, 40 | ), 41 | ), 42 | Expanded( 43 | child: Padding( 44 | padding: const EdgeInsets.fromLTRB(16.0, 4.0, 16.0, 8.0), 45 | child: Text( 46 | project.description ?? 'Sem descrição', 47 | maxLines: 5, 48 | style: TextStyle( 49 | fontSize: 16.0, 50 | height: 1.5, 51 | fontWeight: FontWeight.w300, 52 | color: Theme.of(context).primaryColor, 53 | ), 54 | textAlign: TextAlign.justify, 55 | ), 56 | ), 57 | ), 58 | Padding( 59 | padding: const EdgeInsets.symmetric( 60 | vertical: 8.0, 61 | horizontal: 8.0, 62 | ), 63 | child: Row( 64 | mainAxisAlignment: MainAxisAlignment.end, 65 | crossAxisAlignment: CrossAxisAlignment.center, 66 | children: [ 67 | _buildIconButton( 68 | context, 69 | FontAwesomeIcons.facebook, 70 | project.facebook ?? '', 71 | ), 72 | _buildIconButton( 73 | context, 74 | FontAwesomeIcons.github, 75 | project.github ?? '', 76 | ), 77 | _buildIconButton( 78 | context, 79 | FontAwesomeIcons.itchIo, 80 | project.itchio ?? '', 81 | ), 82 | _buildIconButton( 83 | context, 84 | FontAwesomeIcons.youtube, 85 | project.youtube ?? '', 86 | ), 87 | _buildIconButton( 88 | context, 89 | FontAwesomeIcons.googlePlay, 90 | project.playstore ?? '', 91 | ), 92 | _buildIconButton( 93 | context, 94 | FontAwesomeIcons.appleAlt, 95 | project.applestore ?? '', 96 | ), 97 | _buildIconButton( 98 | context, 99 | FontAwesomeIcons.researchgate, 100 | project.paper ?? '', 101 | ), 102 | _buildIconButton( 103 | context, 104 | FontAwesomeIcons.medium, 105 | project.medium ?? '', 106 | ), 107 | ], 108 | ), 109 | ) 110 | ], 111 | ), 112 | ), 113 | ); 114 | } 115 | 116 | _buildIconButton(BuildContext context, IconData icon, String url) { 117 | return Visibility( 118 | visible: url != null && url.length > 0, 119 | child: IconButton( 120 | icon: Icon( 121 | icon, 122 | color: Theme.of(context).primaryColor, 123 | ), 124 | onPressed: () { 125 | UrlHelper.open(url); 126 | }, 127 | ), 128 | ); 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /lib/pages/home/project/project_section.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kleberandrade/components/centered_message.dart'; 3 | import 'package:kleberandrade/components/centered_progress.dart'; 4 | import 'package:kleberandrade/controllers/home_controller.dart'; 5 | import 'package:kleberandrade/models/project.dart'; 6 | import 'package:kleberandrade/pages/home/project/project_card.dart'; 7 | import 'package:kleberandrade/pages/home/sections/section_description.dart'; 8 | import 'package:kleberandrade/pages/home/sections/section_filter_list.dart'; 9 | import 'package:kleberandrade/pages/home/sections/section_title.dart'; 10 | import 'package:kleberandrade/services/project_api.dart'; 11 | 12 | class ProjectSection extends StatefulWidget { 13 | @override 14 | _ProjectSectionState createState() => _ProjectSectionState(); 15 | } 16 | 17 | class _ProjectSectionState extends State 18 | with AutomaticKeepAliveClientMixin { 19 | final _controller = HomeController(); 20 | 21 | @override 22 | @mustCallSuper 23 | Widget build(BuildContext context) { 24 | super.build(context); 25 | return Container( 26 | key: _controller.projectSectionKey, 27 | color: Colors.white, 28 | child: Column( 29 | crossAxisAlignment: CrossAxisAlignment.center, 30 | children: [ 31 | SectionTitle( 32 | text: 'Projetos', 33 | ), 34 | SectionDescription( 35 | description: 36 | 'Espaço destinado aos projetos desenvolvidos, tais como: aplicativos, jogos, robôs e sistemas', 37 | ), 38 | SectionFilterList( 39 | filterList: _controller.projectFilterItems, 40 | onSaved: (index) { 41 | setState(() { 42 | _controller.projectFilterSelected = index; 43 | print( 44 | 'Project selected: ${_controller.projectFilterItemSelected}'); 45 | }); 46 | }, 47 | ), 48 | Padding( 49 | padding: const EdgeInsets.fromLTRB(20.0, 0.0, 20.0, 32.0), 50 | child: Container( 51 | width: 1080, 52 | height: 460.0, 53 | child: _buildList(), 54 | ), 55 | ) 56 | ], 57 | ), 58 | ); 59 | } 60 | 61 | Widget _buildList() { 62 | return FutureBuilder>( 63 | future: ProjectApi.fetch(), 64 | builder: (context, snapshot) { 65 | if (snapshot.hasData) { 66 | List data = snapshot.data; 67 | return ListView.builder( 68 | shrinkWrap: true, 69 | addAutomaticKeepAlives: true, 70 | scrollDirection: Axis.horizontal, 71 | itemCount: data.length, 72 | itemBuilder: (BuildContext ctxt, int index) { 73 | final project = data[index]; 74 | 75 | if (_controller.projectFilterItemSelected == 76 | _controller.projectFilterItems[0] || 77 | project.tag.contains(_controller.projectFilterItemSelected)) 78 | return ProjectCard( 79 | project: project, 80 | ); 81 | 82 | return SizedBox(); 83 | }, 84 | ); 85 | } else if (snapshot.hasError) { 86 | return CenteredMessage(snapshot.error); 87 | } 88 | return CenteredProgress(); 89 | }, 90 | ); 91 | } 92 | 93 | @override 94 | bool get wantKeepAlive => true; 95 | } 96 | -------------------------------------------------------------------------------- /lib/pages/home/sections/section_description.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SectionDescription extends StatelessWidget { 4 | final String description; 5 | final double vertical; 6 | 7 | SectionDescription({this.description, this.vertical = 32.0}); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Container( 12 | width: 1080.0, 13 | child: Padding( 14 | padding: EdgeInsets.symmetric(vertical: vertical, horizontal: 20.0), 15 | child: Text( 16 | description, 17 | textAlign: TextAlign.center, 18 | style: TextStyle( 19 | fontSize: 18.0, 20 | height: 1.5, 21 | color: Theme.of(context).primaryColor, 22 | fontWeight: FontWeight.w300, 23 | ), 24 | ), 25 | ), 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/pages/home/sections/section_filter_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kleberandrade/components/filter_button.dart'; 3 | 4 | class SectionFilterList extends StatelessWidget { 5 | final List filterList; 6 | final Function(int) onSaved; 7 | 8 | const SectionFilterList({ 9 | Key key, 10 | this.filterList, 11 | this.onSaved, 12 | }) : super(key: key); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Padding( 17 | padding: const EdgeInsets.fromLTRB(20, 0, 20, 8), 18 | child: Container( 19 | width: 1080.0, 20 | child: FilterButton( 21 | borderRadius: 0.0, 22 | initialValue: 0, 23 | space: 4.0, 24 | items: filterList, 25 | onSaved: onSaved, 26 | ), 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/pages/home/sections/section_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SectionTitle extends StatelessWidget { 4 | final double width; 5 | final String text; 6 | 7 | SectionTitle({this.text, this.width = 400.0}); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Container( 12 | width: width, 13 | child: Column( 14 | crossAxisAlignment: CrossAxisAlignment.center, 15 | mainAxisAlignment: MainAxisAlignment.center, 16 | mainAxisSize: MainAxisSize.min, 17 | children: [ 18 | Padding( 19 | padding: const EdgeInsets.fromLTRB(20.0, 32.0, 20.0, 20.0), 20 | child: Center( 21 | child: Text( 22 | text, 23 | style: TextStyle( 24 | color: Theme.of(context).primaryColor, 25 | fontSize: 42.0, 26 | fontWeight: FontWeight.w500, 27 | ), 28 | ), 29 | ), 30 | ), 31 | Container( 32 | width: 600.0, 33 | padding: EdgeInsets.symmetric(vertical: 4.0, horizontal: 20.0), 34 | child: Center( 35 | child: Divider( 36 | color: Theme.of(context).primaryColor, 37 | height: 0.1, 38 | ), 39 | ), 40 | ), 41 | ], 42 | ), 43 | ); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /lib/pages/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kleberandrade/controllers/home_controller.dart'; 3 | import 'package:kleberandrade/helpers/url_helper.dart'; 4 | import 'package:kleberandrade/pages/home/navbar/navbar_logo.dart'; 5 | import 'home/about/about_section.dart'; 6 | import 'home/contact/contact_dialog.dart'; 7 | import 'home/course/course_section.dart'; 8 | import 'home/cover/cover_section.dart'; 9 | import 'home/footer/footer.dart'; 10 | import 'home/navbar/navbar_item.dart'; 11 | import 'home/project/project_section.dart'; 12 | 13 | class HomePage extends StatefulWidget { 14 | static const routeName = '/home'; 15 | @override 16 | _HomePageState createState() => _HomePageState(); 17 | } 18 | 19 | class _HomePageState extends State 20 | with AutomaticKeepAliveClientMixin { 21 | final controller = HomeController(); 22 | 23 | final _mobileWidth = 750.0; 24 | double _width; 25 | 26 | @override 27 | @mustCallSuper 28 | Widget build(BuildContext context) { 29 | super.build(context); 30 | 31 | _width = MediaQuery.of(context).size.width; 32 | 33 | return Scaffold( 34 | appBar: _buildAppBar(), 35 | backgroundColor: Theme.of(context).primaryColor, 36 | endDrawer: _buildNavbarDrawer(), 37 | body: ListView( 38 | controller: controller.scrollController, 39 | shrinkWrap: true, 40 | addAutomaticKeepAlives: true, 41 | children: [ 42 | CoverSection(), 43 | AboutSection(), 44 | CourseSection(), 45 | ProjectSection(), 46 | Footer(), 47 | ], 48 | ), 49 | ); 50 | } 51 | 52 | _buildAppBar() { 53 | return AppBar( 54 | elevation: 0.0, 55 | title: NavbarLogo(), 56 | actions: _buildNavbarItems(), 57 | ); 58 | } 59 | 60 | _getItems(bool usePop) { 61 | return [ 62 | new NavbarItem( 63 | title: 'Autor', 64 | onPressed: () { 65 | controller.jumpToAbout(); 66 | if (usePop) Navigator.of(context).pop(); 67 | }, 68 | ), 69 | new NavbarItem( 70 | title: 'Cursos', 71 | onPressed: () { 72 | controller.jumpToCourse(); 73 | if (usePop) Navigator.of(context).pop(); 74 | }, 75 | ), 76 | new NavbarItem( 77 | title: 'Projetos', 78 | onPressed: () { 79 | controller.jumpToProject(); 80 | if (usePop) Navigator.of(context).pop(); 81 | }, 82 | ), 83 | new NavbarItem( 84 | title: 'Currículo', 85 | onPressed: () => 86 | UrlHelper.open('http://lattes.cnpq.br/1498251399219988'), 87 | ), 88 | new NavbarItem( 89 | title: 'Contato', 90 | onPressed: () { 91 | showDialog( 92 | context: context, 93 | barrierDismissible: false, 94 | builder: (BuildContext context) { 95 | return ContactDialog(); 96 | }, 97 | ); 98 | }, 99 | ), 100 | ]; 101 | } 102 | 103 | _buildNavbarDrawer() { 104 | if (_width >= _mobileWidth) return null; 105 | 106 | return Drawer( 107 | child: ListView( 108 | children: _getItems(true), 109 | ), 110 | ); 111 | } 112 | 113 | _buildNavbarItems() { 114 | if (_width < _mobileWidth) return null; 115 | 116 | return _getItems(false); 117 | } 118 | 119 | @override 120 | bool get wantKeepAlive => true; 121 | } 122 | -------------------------------------------------------------------------------- /lib/services/contact_api.dart: -------------------------------------------------------------------------------- 1 | import 'package:http/http.dart' as http; 2 | import 'package:http/http.dart'; 3 | import 'package:kleberandrade/models/contact.dart'; 4 | 5 | class ContactApi { 6 | static Future fetch(Contact contact) async { 7 | try { 8 | var url = 9 | 'https://script.google.com/macros/s/AKfycbxOjOnonM8anZ4MD1ZxI7OHe4kXmoqC6SUtPUdhEKxpYP-3Mw4/exec'; 10 | var response = await http.get(Uri.parse(url + contact.toParams())); 11 | 12 | return response; 13 | } catch (error) { 14 | return null; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/services/course_api.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:http/http.dart' as http; 4 | import 'package:kleberandrade/models/course.dart'; 5 | 6 | class CourseApi { 7 | static Future> fetch() async { 8 | try { 9 | var url = 10 | 'https://script.google.com/macros/s/AKfycbyDkS6x-yBzYtD2caq-gMbDu40UFQQa1jOARzmAqMgztmh-AeYv/exec'; 11 | var response = await http.get(Uri.parse(url)); 12 | 13 | if (response.statusCode == 200) { 14 | var data = json.decode(response.body); 15 | return List.from(data["courses"].map((x) => Course.fromMap(x))); 16 | } else { 17 | return []; 18 | } 19 | } catch (error) { 20 | return []; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/services/project_api.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:http/http.dart' as http; 4 | import 'package:kleberandrade/models/project.dart'; 5 | 6 | class ProjectApi { 7 | static Future> fetch() async { 8 | try { 9 | var url = 10 | 'https://script.google.com/macros/s/AKfycbzEN7MqHrU-a2V3BBlCbmYoGoR3boH1SZcVWgw9BPI51WrsIDXN/exec'; 11 | var response = await http.get(Uri.parse(url)); 12 | 13 | if (response.statusCode == 200) { 14 | var data = json.decode(response.body); 15 | return List.from( 16 | data["projects"].map((x) => Project.fromMap(x))); 17 | } else { 18 | return []; 19 | } 20 | } catch (error) { 21 | return []; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/themes/dark_theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | final ThemeData myTheme = ThemeData( 4 | brightness: Brightness.dark, 5 | primaryColor: Color(0xFF212121), 6 | accentColor: Colors.deepOrange, 7 | primarySwatch: Colors.deepOrange, 8 | ); 9 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | another_flushbar: 5 | dependency: "direct main" 6 | description: 7 | name: another_flushbar 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "1.10.20" 11 | async: 12 | dependency: transitive 13 | description: 14 | name: async 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.5.0" 18 | boolean_selector: 19 | dependency: transitive 20 | description: 21 | name: boolean_selector 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.1.0" 25 | characters: 26 | dependency: transitive 27 | description: 28 | name: characters 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.1.0" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.2.0" 39 | clock: 40 | dependency: transitive 41 | description: 42 | name: clock 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.1.0" 46 | collection: 47 | dependency: transitive 48 | description: 49 | name: collection 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.15.0" 53 | fake_async: 54 | dependency: transitive 55 | description: 56 | name: fake_async 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.2.0" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_test: 66 | dependency: "direct dev" 67 | description: flutter 68 | source: sdk 69 | version: "0.0.0" 70 | flutter_web_plugins: 71 | dependency: transitive 72 | description: flutter 73 | source: sdk 74 | version: "0.0.0" 75 | font_awesome_flutter: 76 | dependency: "direct main" 77 | description: 78 | name: font_awesome_flutter 79 | url: "https://pub.dartlang.org" 80 | source: hosted 81 | version: "9.0.0" 82 | http: 83 | dependency: "direct main" 84 | description: 85 | name: http 86 | url: "https://pub.dartlang.org" 87 | source: hosted 88 | version: "0.13.1" 89 | http_parser: 90 | dependency: transitive 91 | description: 92 | name: http_parser 93 | url: "https://pub.dartlang.org" 94 | source: hosted 95 | version: "4.0.0" 96 | js: 97 | dependency: transitive 98 | description: 99 | name: js 100 | url: "https://pub.dartlang.org" 101 | source: hosted 102 | version: "0.6.3" 103 | matcher: 104 | dependency: transitive 105 | description: 106 | name: matcher 107 | url: "https://pub.dartlang.org" 108 | source: hosted 109 | version: "0.12.10" 110 | meta: 111 | dependency: transitive 112 | description: 113 | name: meta 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "1.3.0" 117 | path: 118 | dependency: transitive 119 | description: 120 | name: path 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.8.0" 124 | pedantic: 125 | dependency: transitive 126 | description: 127 | name: pedantic 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.11.0" 131 | plugin_platform_interface: 132 | dependency: transitive 133 | description: 134 | name: plugin_platform_interface 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "2.0.0" 138 | sky_engine: 139 | dependency: transitive 140 | description: flutter 141 | source: sdk 142 | version: "0.0.99" 143 | source_span: 144 | dependency: transitive 145 | description: 146 | name: source_span 147 | url: "https://pub.dartlang.org" 148 | source: hosted 149 | version: "1.8.0" 150 | stack_trace: 151 | dependency: transitive 152 | description: 153 | name: stack_trace 154 | url: "https://pub.dartlang.org" 155 | source: hosted 156 | version: "1.10.0" 157 | stream_channel: 158 | dependency: transitive 159 | description: 160 | name: stream_channel 161 | url: "https://pub.dartlang.org" 162 | source: hosted 163 | version: "2.1.0" 164 | string_scanner: 165 | dependency: transitive 166 | description: 167 | name: string_scanner 168 | url: "https://pub.dartlang.org" 169 | source: hosted 170 | version: "1.1.0" 171 | term_glyph: 172 | dependency: transitive 173 | description: 174 | name: term_glyph 175 | url: "https://pub.dartlang.org" 176 | source: hosted 177 | version: "1.2.0" 178 | test_api: 179 | dependency: transitive 180 | description: 181 | name: test_api 182 | url: "https://pub.dartlang.org" 183 | source: hosted 184 | version: "0.2.19" 185 | typed_data: 186 | dependency: transitive 187 | description: 188 | name: typed_data 189 | url: "https://pub.dartlang.org" 190 | source: hosted 191 | version: "1.3.0" 192 | url_launcher: 193 | dependency: "direct main" 194 | description: 195 | name: url_launcher 196 | url: "https://pub.dartlang.org" 197 | source: hosted 198 | version: "6.0.3" 199 | url_launcher_linux: 200 | dependency: transitive 201 | description: 202 | name: url_launcher_linux 203 | url: "https://pub.dartlang.org" 204 | source: hosted 205 | version: "2.0.0" 206 | url_launcher_macos: 207 | dependency: transitive 208 | description: 209 | name: url_launcher_macos 210 | url: "https://pub.dartlang.org" 211 | source: hosted 212 | version: "2.0.0" 213 | url_launcher_platform_interface: 214 | dependency: transitive 215 | description: 216 | name: url_launcher_platform_interface 217 | url: "https://pub.dartlang.org" 218 | source: hosted 219 | version: "2.0.2" 220 | url_launcher_web: 221 | dependency: transitive 222 | description: 223 | name: url_launcher_web 224 | url: "https://pub.dartlang.org" 225 | source: hosted 226 | version: "2.0.0" 227 | url_launcher_windows: 228 | dependency: transitive 229 | description: 230 | name: url_launcher_windows 231 | url: "https://pub.dartlang.org" 232 | source: hosted 233 | version: "2.0.0" 234 | vector_math: 235 | dependency: transitive 236 | description: 237 | name: vector_math 238 | url: "https://pub.dartlang.org" 239 | source: hosted 240 | version: "2.1.0" 241 | sdks: 242 | dart: ">=2.12.0 <3.0.0" 243 | flutter: ">=1.22.0" 244 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: kleberandrade 2 | description: Site do pesquisador, professor e programador Kleber de Oliveira Andrade. 3 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 4 | version: 1.0.0+1 5 | 6 | environment: 7 | sdk: ">=2.10.0 <3.0.0" 8 | 9 | dependencies: 10 | flutter: 11 | sdk: flutter 12 | another_flushbar: ^1.10.20 13 | font_awesome_flutter: ^9.0.0 14 | http: ^0.13.1 15 | url_launcher: ^6.0.3 16 | 17 | dev_dependencies: 18 | flutter_test: 19 | sdk: flutter 20 | 21 | flutter: 22 | uses-material-design: true 23 | 24 | assets: 25 | - assets/images/ 26 | -------------------------------------------------------------------------------- /screenshots/kleberandrade.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/screenshots/kleberandrade.gif -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kleberandrade/profile-flutter-web/c6bc860201308e835bbc5fdaa4ea2f99c8ee09ed/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | kleberandrade 18 | 19 | 20 | 21 | 24 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kleberandrade", 3 | "short_name": "kleberandrade", 4 | "start_url": ".", 5 | "display": "minimal-ui", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "Site do pesquisador, professor e programador Kleber de Oliveira Andrade.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | --------------------------------------------------------------------------------