├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcworkspace │ └── contents.xcworkspacedata ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj └── .gitignore ├── screenshots ├── screenshot01.png ├── screenshot02.png └── screenshot03.png ├── android ├── gradle.properties ├── .gitignore ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── desafio_github_search_09112019 │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── lib ├── app │ ├── app_bloc.dart │ ├── pages │ │ ├── github_page │ │ │ ├── github_page_bloc.dart │ │ │ ├── github_page_module.dart │ │ │ └── github_page_page.dart │ │ ├── usuarios │ │ │ ├── widgets │ │ │ │ └── card_github │ │ │ │ │ ├── card_github_bloc.dart │ │ │ │ │ └── card_github_widget.dart │ │ │ ├── usuarios_module.dart │ │ │ ├── repositories │ │ │ │ └── github_repository.dart │ │ │ ├── usuarios_bloc.dart │ │ │ ├── models │ │ │ │ ├── github_list_model.dart │ │ │ │ └── github_model.dart │ │ │ └── usuarios_page.dart │ │ └── dados_perfil │ │ │ ├── repositories │ │ │ └── dados_perfil_repository.dart │ │ │ ├── dados_perfil_module.dart │ │ │ ├── dados_perfil_bloc.dart │ │ │ ├── models │ │ │ ├── owner_model.dart │ │ │ └── repos_model.dart │ │ │ └── dados_perfil_page.dart │ ├── shared │ │ └── componenents │ │ │ └── button_animation │ │ │ ├── button_animation_bloc.dart │ │ │ └── button_animation.dart │ ├── app_module.dart │ └── app_widget.dart └── main.dart ├── .metadata ├── .gitignore ├── test └── widget_test.dart ├── README.md ├── pubspec.yaml └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /screenshots/screenshot01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/screenshots/screenshot01.png -------------------------------------------------------------------------------- /screenshots/screenshot02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/screenshots/screenshot02.png -------------------------------------------------------------------------------- /screenshots/screenshot03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/screenshots/screenshot03.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flutterando/github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/app/app_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_modular/flutter_modular.dart'; 2 | 3 | class AppBloc extends Disposable { 4 | //dispose will be called automatically by closing its streams 5 | @override 6 | void dispose() {} 7 | } 8 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:desafio_github/app/app_module.dart'; 3 | import 'package:flutter_modular/flutter_modular.dart'; 4 | 5 | void main() => runApp(ModularWidget(module: AppModule())); 6 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/app/pages/github_page/github_page_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_modular/flutter_modular.dart'; 2 | 3 | class GithubPageBloc extends Disposable { 4 | //dispose will be called automatically by closing its streams 5 | @override 6 | void dispose() {} 7 | } 8 | -------------------------------------------------------------------------------- /lib/app/pages/usuarios/widgets/card_github/card_github_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_modular/flutter_modular.dart'; 2 | 3 | class CardGithubBloc extends Disposable { 4 | //dispose will be called automatically by closing its streams 5 | @override 6 | void dispose() {} 7 | } 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /lib/app/shared/componenents/button_animation/button_animation_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_modular/flutter_modular.dart'; 2 | 3 | class ButtonAnimationBloc extends Disposable { 4 | //dispose will be called automatically by closing its streams 5 | @override 6 | void dispose() { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 27321ebbad34b0a3fafe99fac037102196d655ff 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 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 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/desafio_github_search_09112019/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.desafio_github 2 | 3 | import androidx.annotation.NonNull; 4 | import io.flutter.embedding.android.FlutterActivity 5 | import io.flutter.embedding.engine.FlutterEngine 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) { 10 | GeneratedPluginRegistrant.registerWith(flutterEngine); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/app/pages/github_page/github_page_module.dart: -------------------------------------------------------------------------------- 1 | import 'package:desafio_github/app/pages/github_page/github_page_bloc.dart'; 2 | import 'package:desafio_github/app/pages/github_page/github_page_page.dart'; 3 | import 'package:flutter_modular/flutter_modular.dart'; 4 | 5 | class GithubPageModule extends ChildModule { 6 | static Inject get to => Inject.of(); 7 | 8 | @override 9 | List get binds => [ 10 | Bind((i) => GithubPageBloc()), 11 | ]; 12 | 13 | @override 14 | List get routers => [ 15 | Router("/", child: (context, args) => GithubPagePage(args.data)), 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /lib/app/pages/dados_perfil/repositories/dados_perfil_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_modular/flutter_modular.dart'; 2 | import 'package:desafio_github/app/pages/dados_perfil/models/repos_model.dart'; 3 | import 'package:dio/dio.dart'; 4 | 5 | class DadosPerfilRepository extends Disposable { 6 | final Dio client; 7 | 8 | DadosPerfilRepository(this.client); 9 | 10 | Future getDadosPerfil(String url) async { 11 | final response = await client.get(url); 12 | return (response.data as List).map((data) => RepoModel.fromJson(data)).toList(); 13 | } 14 | 15 | //dispose will be called automatically 16 | @override 17 | void dispose() {} 18 | } 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.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 | # Exceptions to above rules. 37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 38 | -------------------------------------------------------------------------------- /lib/app/pages/github_page/github_page_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:webview_flutter/webview_flutter.dart'; 5 | 6 | class GithubPagePage extends StatefulWidget { 7 | final String title; 8 | final String url; 9 | 10 | const GithubPagePage(this.url, {Key key, this.title = "GithubPage"}) 11 | : super(key: key); 12 | 13 | @override 14 | _GithubPagePageState createState() => _GithubPagePageState(); 15 | } 16 | 17 | class _GithubPagePageState extends State { 18 | @override 19 | Widget build(BuildContext context) { 20 | return Scaffold( 21 | appBar: AppBar( 22 | title: Text(widget.title), 23 | ), 24 | body: WebView( 25 | initialUrl: widget.url, 26 | javascriptMode: JavascriptMode.unrestricted, 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/app/pages/dados_perfil/dados_perfil_module.dart: -------------------------------------------------------------------------------- 1 | import 'package:desafio_github/app/pages/dados_perfil/repositories/dados_perfil_repository.dart'; 2 | import 'package:dio/dio.dart'; 3 | import 'package:flutter_modular/flutter_modular.dart'; 4 | 5 | import 'dados_perfil_bloc.dart'; 6 | import 'dados_perfil_page.dart'; 7 | 8 | class DadosPerfilModule extends ChildModule { 9 | @override 10 | List get binds => [ 11 | Bind((i) => DadosPerfilBloc(i.params["model"], i.get())), 12 | Bind((i) => DadosPerfilRepository(i.get())), 13 | Bind((i) => Dio()), 14 | ]; 15 | 16 | static Inject get to => Inject.of(); 17 | 18 | @override 19 | List get routers => [ 20 | Router( 21 | "/", 22 | child: (context, args) => DadosPerfilPage(model: args.data), 23 | transition: TransitionType.rotate, 24 | ), 25 | ]; 26 | } 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/app/pages/usuarios/usuarios_module.dart: -------------------------------------------------------------------------------- 1 | import 'package:desafio_github/app/pages/usuarios/repositories/github_repository.dart'; 2 | import 'package:desafio_github/app/pages/usuarios/usuarios_bloc.dart'; 3 | import 'package:desafio_github/app/pages/usuarios/usuarios_page.dart'; 4 | import 'package:desafio_github/app/pages/usuarios/widgets/card_github/card_github_bloc.dart'; 5 | import 'package:dio/dio.dart'; 6 | import 'package:flutter_modular/flutter_modular.dart'; 7 | 8 | class UsuariosModule extends ChildModule { 9 | static Inject get to => Inject.of(); 10 | 11 | @override 12 | List get binds => [ 13 | Bind((i) => CardGithubBloc()), 14 | Bind((i) => UsuariosBloc(i.get())), 15 | Bind((i) => GithubRepository(i.get())), 16 | Bind((i) => Dio()), 17 | ]; 18 | 19 | @override 20 | List get routers => [ 21 | Router("/", child: (context, args) => UsuariosPage()), 22 | ]; 23 | } 24 | -------------------------------------------------------------------------------- /lib/app/pages/usuarios/repositories/github_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_modular/flutter_modular.dart'; 2 | import 'package:desafio_github/app/pages/usuarios/models/github_list_model.dart'; 3 | import 'package:desafio_github/app/pages/usuarios/models/github_model.dart'; 4 | 5 | import 'package:dio/dio.dart'; 6 | 7 | class GithubRepository extends Disposable { 8 | final Dio client; 9 | 10 | GithubRepository(this.client); 11 | 12 | Future> getListOfGithub(String searchText) async { 13 | final response = 14 | await client.get('https://api.github.com/search/users?q=$searchText'); 15 | 16 | return GithubListModel.fromJsonList(response.data["items"]); 17 | } 18 | 19 | Future getUserInfos(String user) async { 20 | final response = await client.get('https://api.github.com/users/$user'); 21 | return GithubModel.fromJson(response.data); 22 | } 23 | 24 | @override 25 | void dispose() {} 26 | } 27 | -------------------------------------------------------------------------------- /lib/app/app_module.dart: -------------------------------------------------------------------------------- 1 | import 'package:desafio_github/app/app_bloc.dart'; 2 | import 'package:desafio_github/app/app_widget.dart'; 3 | import 'package:desafio_github/app/pages/dados_perfil/dados_perfil_module.dart'; 4 | import 'package:desafio_github/app/pages/github_page/github_page_module.dart'; 5 | import 'package:desafio_github/app/pages/usuarios/usuarios_module.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:flutter_modular/flutter_modular.dart'; 8 | 9 | class AppModule extends MainModule { 10 | static Inject get to => Inject.of(); 11 | 12 | @override 13 | List get binds => [ 14 | Bind((i) => AppBloc()), 15 | ]; 16 | 17 | @override 18 | Widget get bootstrap => AppWidget(); 19 | 20 | @override 21 | List get routers => [ 22 | Router("/", module: UsuariosModule()), 23 | Router("/githubpage", module: GithubPageModule()), 24 | Router("/dadosperfil", module: DadosPerfilModule()), 25 | ]; 26 | } 27 | -------------------------------------------------------------------------------- /lib/app/app_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:flutter_modular/flutter_modular.dart'; 4 | 5 | class AppWidget extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | SystemChrome.setPreferredOrientations([ 9 | DeviceOrientation.portraitUp, 10 | DeviceOrientation.portraitDown, 11 | ]); 12 | 13 | SystemChrome.setSystemUIOverlayStyle( 14 | const SystemUiOverlayStyle( 15 | statusBarColor: Colors.black45, 16 | systemNavigationBarColor: Color(0xff664EB8), 17 | systemNavigationBarDividerColor: Colors.black, 18 | systemNavigationBarIconBrightness: Brightness.light, 19 | ), 20 | ); 21 | 22 | return MaterialApp( 23 | title: 'Flutter Slidy', 24 | theme: ThemeData( 25 | primaryColor: Color(0xff664EB8), 26 | // primaryTextTheme: TextTheme( 27 | // button: TextStyle( 28 | // color: Colors.white 29 | // ) 30 | // ) 31 | ), 32 | initialRoute: "/", 33 | onGenerateRoute: Modular.generateRoute, 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:desafio_github/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Desafio Github Search 2 | 3 | Projeto desenvolvido no desafio quizenal realizado pela equipe Flutterando e comunidade. 4 | Foram realizadas adaptações para implementação do padrão de projeto open-source [Flutter Modular](https://pub.dev/packages/flutter_modular). 5 | 6 | 7 | 8 | 9 | ## Getting Started 10 | This project is a starting point for a Flutter application. 11 | 12 | A few resources to get you started if this is your first Flutter project: 13 | 14 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 15 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 16 | 17 | For help getting started with Flutter, view our 18 | [online documentation](https://flutter.dev/docs), which offers tutorials, 19 | samples, guidance on mobile development, and a full API reference. 20 | -------------------------------------------------------------------------------- /lib/app/pages/dados_perfil/dados_perfil_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_modular/flutter_modular.dart'; 2 | import 'package:desafio_github/app/pages/dados_perfil/models/repos_model.dart'; 3 | import 'package:desafio_github/app/pages/dados_perfil/repositories/dados_perfil_repository.dart'; 4 | import 'package:desafio_github/app/pages/usuarios/models/github_model.dart'; 5 | import 'package:rxdart/rxdart.dart'; 6 | 7 | class DadosPerfilBloc extends Disposable { 8 | final GithubModel githubModel; 9 | final DadosPerfilRepository dadosPerfilRepository; 10 | DadosPerfilBloc(this.githubModel, this.dadosPerfilRepository) { 11 | githubModel$.add(githubModel); 12 | dadosPerfilRepository 13 | .getDadosPerfil(githubModel.reposUrl) 14 | .then((dadosPerfil) { 15 | repoModel$.add(dadosPerfil); 16 | }); 17 | } 18 | 19 | BehaviorSubject githubModel$ = BehaviorSubject(); 20 | 21 | BehaviorSubject> repoModel$ = BehaviorSubject>(); 22 | 23 | //dispose will be called automatically by closing its streams 24 | @override 25 | void dispose() { 26 | githubModel$.close(); 27 | repoModel$.close(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/app/pages/usuarios/usuarios_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:desafio_github/app/pages/usuarios/repositories/github_repository.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | import 'package:flutter_modular/flutter_modular.dart'; 6 | import 'package:hydrated/hydrated.dart'; 7 | 8 | import 'models/github_list_model.dart'; 9 | import 'models/github_model.dart'; 10 | 11 | class UsuariosBloc extends Disposable { 12 | final GithubRepository githubRepository; 13 | 14 | var textController = TextEditingController(); 15 | 16 | UsuariosBloc(this.githubRepository); 17 | 18 | var usuarios$ = HydratedSubject>("usuarios", 19 | seedValue: [], 20 | hydrate: (String s) => s == null ? [] : (json.decode(s) as List).map((item) => GithubModel.fromJson(item)).toList(), 21 | persist: (users) => json.encode(users.map((user) => user.toJson()).toList())); 22 | 23 | Future> searchGithub(String searchText) async { 24 | return await githubRepository.getListOfGithub(searchText); 25 | } 26 | 27 | Future addUser(GithubListModel user) async { 28 | var items = usuarios$.value; 29 | 30 | var usuario = await githubRepository.getUserInfos(user.login); 31 | 32 | items.add(usuario); 33 | usuarios$.add(items); 34 | } 35 | 36 | @override 37 | void dispose() { 38 | usuarios$.close(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /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 | desafio_github 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 | -------------------------------------------------------------------------------- /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.desafio_github" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'androidx.test:runner:1.1.1' 66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 67 | } 68 | -------------------------------------------------------------------------------- /lib/app/pages/usuarios/widgets/card_github/card_github_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:desafio_github/app/pages/dados_perfil/dados_perfil_module.dart'; 2 | import 'package:desafio_github/app/pages/usuarios/models/github_model.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | class CardGithubWidget extends StatelessWidget { 6 | final GithubModel githubModel; 7 | final Function hideButtom; 8 | final Function showButtom; 9 | 10 | const CardGithubWidget( 11 | {Key key, this.githubModel, this.hideButtom, this.showButtom}) 12 | : super(key: key); 13 | @override 14 | Widget build(BuildContext context) { 15 | return Padding( 16 | padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 20), 17 | child: Column( 18 | children: [ 19 | CircleAvatar( 20 | radius: 40, 21 | backgroundImage: NetworkImage(githubModel.avatarUrl), 22 | ), 23 | SizedBox( 24 | height: 10, 25 | ), 26 | Text( 27 | githubModel?.name, 28 | style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold), 29 | ), 30 | SizedBox( 31 | height: 10, 32 | ), 33 | Text( 34 | githubModel?.bio ?? "Nao informado", 35 | style: TextStyle(color: Colors.black54), 36 | textAlign: TextAlign.center, 37 | ), 38 | SizedBox( 39 | height: 10, 40 | ), 41 | Text( 42 | githubModel?.blog ?? "Nao informado", 43 | style: TextStyle(color: Colors.black54), 44 | ), 45 | Container( 46 | width: MediaQuery.of(context).size.width * .7, 47 | child: RaisedButton( 48 | onPressed: () async { 49 | hideButtom(); 50 | await Navigator.pushNamed( 51 | context, 52 | "/dadosperfil", 53 | arguments: githubModel, 54 | ); 55 | showButtom(); 56 | }, 57 | child: Text( 58 | "Ver Perfil", 59 | style: TextStyle( 60 | color: Theme.of(context).primaryTextTheme.button.color), 61 | ), 62 | color: Theme.of(context).primaryColor, 63 | )) 64 | ], 65 | ), 66 | ); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /lib/app/pages/dados_perfil/models/owner_model.dart: -------------------------------------------------------------------------------- 1 | 2 | class OwnerModel { 3 | String login; 4 | int id; 5 | String nodeId; 6 | String avatarUrl; 7 | String gravatarId; 8 | String url; 9 | String htmlUrl; 10 | String followersUrl; 11 | String followingUrl; 12 | String gistsUrl; 13 | String starredUrl; 14 | String subscriptionsUrl; 15 | String organizationsUrl; 16 | String reposUrl; 17 | String eventsUrl; 18 | String receivedEventsUrl; 19 | String type; 20 | bool siteAdmin; 21 | 22 | OwnerModel({ 23 | this.login, 24 | this.id, 25 | this.nodeId, 26 | this.avatarUrl, 27 | this.gravatarId, 28 | this.url, 29 | this.htmlUrl, 30 | this.followersUrl, 31 | this.followingUrl, 32 | this.gistsUrl, 33 | this.starredUrl, 34 | this.subscriptionsUrl, 35 | this.organizationsUrl, 36 | this.reposUrl, 37 | this.eventsUrl, 38 | this.receivedEventsUrl, 39 | this.type, 40 | this.siteAdmin, 41 | }); 42 | 43 | static OwnerModel fromJson(Map json) => OwnerModel( 44 | login: json["login"], 45 | id: json["id"], 46 | nodeId: json["node_id"], 47 | avatarUrl: json["avatar_url"], 48 | gravatarId: json["gravatar_id"], 49 | url: json["url"], 50 | htmlUrl: json["html_url"], 51 | followersUrl: json["followers_url"], 52 | followingUrl: json["following_url"], 53 | gistsUrl: json["gists_url"], 54 | starredUrl: json["starred_url"], 55 | subscriptionsUrl: json["subscriptions_url"], 56 | organizationsUrl: json["organizations_url"], 57 | reposUrl: json["repos_url"], 58 | eventsUrl: json["events_url"], 59 | receivedEventsUrl: json["received_events_url"], 60 | type: json["type"], 61 | siteAdmin: json["site_admin"], 62 | ); 63 | 64 | Map toJson() => { 65 | "login": login, 66 | "id": id, 67 | "node_id": nodeId, 68 | "avatar_url": avatarUrl, 69 | "gravatar_id": gravatarId, 70 | "url": url, 71 | "html_url": htmlUrl, 72 | "followers_url": followersUrl, 73 | "following_url": followingUrl, 74 | "gists_url": gistsUrl, 75 | "starred_url": starredUrl, 76 | "subscriptions_url": subscriptionsUrl, 77 | "organizations_url": organizationsUrl, 78 | "repos_url": reposUrl, 79 | "events_url": eventsUrl, 80 | "received_events_url": receivedEventsUrl, 81 | "type": type, 82 | "site_admin": siteAdmin, 83 | }; 84 | } 85 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: desafio_github 2 | description: A new Flutter project. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter_modular: ^0.0.12 21 | webview_flutter: ^0.3.15+1 22 | hydrated: ^1.2.4 23 | select_dialog: ^1.0.6+1 24 | dio: ^3.0.4 25 | rxdart: ^0.22.6 26 | flutter: 27 | sdk: flutter 28 | 29 | # The following adds the Cupertino Icons font to your application. 30 | # Use with the CupertinoIcons class for iOS style icons. 31 | cupertino_icons: ^0.1.2 32 | 33 | dev_dependencies: 34 | mockito: ^4.1.1 35 | flutter_test: 36 | sdk: flutter 37 | 38 | 39 | # For information on the generic Dart part of this file, see the 40 | # following page: https://dart.dev/tools/pub/pubspec 41 | 42 | # The following section is specific to Flutter. 43 | flutter: 44 | 45 | # The following line ensures that the Material Icons font is 46 | # included with your application, so that you can use the icons in 47 | # the material Icons class. 48 | uses-material-design: true 49 | 50 | # To add assets to your application, add an assets section, like this: 51 | # assets: 52 | # - images/a_dot_burr.jpeg 53 | # - images/a_dot_ham.jpeg 54 | 55 | # An image asset can refer to one or more resolution-specific "variants", see 56 | # https://flutter.dev/assets-and-images/#resolution-aware. 57 | 58 | # For details regarding adding assets from package dependencies, see 59 | # https://flutter.dev/assets-and-images/#from-packages 60 | 61 | # To add custom fonts to your application, add a fonts section here, 62 | # in this "flutter" section. Each entry in this list should have a 63 | # "family" key with the font family name, and a "fonts" key with a 64 | # list giving the asset and other descriptors for the font. For 65 | # example: 66 | # fonts: 67 | # - family: Schyler 68 | # fonts: 69 | # - asset: fonts/Schyler-Regular.ttf 70 | # - asset: fonts/Schyler-Italic.ttf 71 | # style: italic 72 | # - family: Trajan Pro 73 | # fonts: 74 | # - asset: fonts/TrajanPro.ttf 75 | # - asset: fonts/TrajanPro_Bold.ttf 76 | # weight: 700 77 | # 78 | # For details regarding fonts from package dependencies, 79 | # see https://flutter.dev/custom-fonts/#from-packages -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/app/pages/usuarios/models/github_list_model.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | GithubListModel githubListModelFromJson(String str) => 4 | GithubListModel.fromJson(json.decode(str)); 5 | 6 | String githubModelListToJson(GithubListModel data) => json.encode(data.toJson()); 7 | 8 | class GithubListModel { 9 | String login; 10 | int id; 11 | String nodeId; 12 | String avatarUrl; 13 | String gravatarId; 14 | String url; 15 | String htmlUrl; 16 | String followersUrl; 17 | String followingUrl; 18 | String gistsUrl; 19 | String starredUrl; 20 | String subscriptionsUrl; 21 | String organizationsUrl; 22 | String reposUrl; 23 | String eventsUrl; 24 | String receivedEventsUrl; 25 | String type; 26 | bool siteAdmin; 27 | double score; 28 | 29 | GithubListModel({ 30 | this.login, 31 | this.id, 32 | this.nodeId, 33 | this.avatarUrl, 34 | this.gravatarId, 35 | this.url, 36 | this.htmlUrl, 37 | this.followersUrl, 38 | this.followingUrl, 39 | this.gistsUrl, 40 | this.starredUrl, 41 | this.subscriptionsUrl, 42 | this.organizationsUrl, 43 | this.reposUrl, 44 | this.eventsUrl, 45 | this.receivedEventsUrl, 46 | this.type, 47 | this.siteAdmin, 48 | this.score, 49 | }); 50 | 51 | static GithubListModel fromJson(Map json) { 52 | if (json == null) return null; 53 | 54 | return GithubListModel( 55 | login: json["login"], 56 | id: json["id"], 57 | nodeId: json["node_id"], 58 | avatarUrl: json["avatar_url"], 59 | gravatarId: json["gravatar_id"], 60 | url: json["url"], 61 | htmlUrl: json["html_url"], 62 | followersUrl: json["followers_url"], 63 | followingUrl: json["following_url"], 64 | gistsUrl: json["gists_url"], 65 | starredUrl: json["starred_url"], 66 | subscriptionsUrl: json["subscriptions_url"], 67 | organizationsUrl: json["organizations_url"], 68 | reposUrl: json["repos_url"], 69 | eventsUrl: json["events_url"], 70 | receivedEventsUrl: json["received_events_url"], 71 | type: json["type"], 72 | siteAdmin: json["site_admin"], 73 | score: json["score"].toDouble(), 74 | ); 75 | } 76 | 77 | Map toJson() => { 78 | "login": login, 79 | "id": id, 80 | "node_id": nodeId, 81 | "avatar_url": avatarUrl, 82 | "gravatar_id": gravatarId, 83 | "url": url, 84 | "html_url": htmlUrl, 85 | "followers_url": followersUrl, 86 | "following_url": followingUrl, 87 | "gists_url": gistsUrl, 88 | "starred_url": starredUrl, 89 | "subscriptions_url": subscriptionsUrl, 90 | "organizations_url": organizationsUrl, 91 | "repos_url": reposUrl, 92 | "events_url": eventsUrl, 93 | "received_events_url": receivedEventsUrl, 94 | "type": type, 95 | "site_admin": siteAdmin, 96 | "score": score, 97 | }; 98 | 99 | static List fromJsonList(List json) { 100 | if (json == null) return null; 101 | return json.cast>().map(fromJson).toList(); 102 | } 103 | 104 | @override 105 | String toString() => login; 106 | 107 | @override 108 | operator ==(o) => o is GithubListModel && o.id == id; 109 | 110 | @override 111 | int get hashCode => id.hashCode ^ login.hashCode ^ nodeId.hashCode; 112 | } 113 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/app/shared/componenents/button_animation/button_animation.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | mixin ButtonAnimation on State { 4 | final scrollController = ScrollController(); 5 | void onAddButtomTap(); 6 | 7 | void showButtom() { 8 | isVisible = true; 9 | _overlayEntry.markNeedsBuild(); 10 | } 11 | 12 | void hideButtom() { 13 | isVisible = false; 14 | _overlayEntry.markNeedsBuild(); 15 | } 16 | 17 | Duration animationDuration = Duration(milliseconds: 1000); 18 | bool isVisible = true; 19 | 20 | ButtonProperties get _bottomProperties { 21 | return scrollController.positions.isEmpty 22 | ? ButtonProperties(false) 23 | : ButtonProperties(scrollController.offset > 44); 24 | } 25 | 26 | OverlayEntry _overlayEntry; 27 | 28 | @override 29 | void initState() { 30 | super.initState(); 31 | WidgetsBinding.instance.addPostFrameCallback((duration) { 32 | this._overlayEntry = this._createOverlayEntry(); 33 | Overlay.of(context).insert(this._overlayEntry); 34 | }); 35 | } 36 | 37 | OverlayEntry _createOverlayEntry() { 38 | return OverlayEntry( 39 | builder: (context) => (!isVisible) 40 | ? Container() 41 | : Padding( 42 | padding: EdgeInsets.only( 43 | top: MediaQuery.of(context).padding.top + kToolbarHeight, 44 | ), 45 | child: AnimatedBuilder( 46 | animation: scrollController, 47 | builder: (context, child) { 48 | return AnimatedContainer( 49 | duration: animationDuration, 50 | curve: Curves.easeOutExpo, 51 | alignment: _bottomProperties.alignment, 52 | padding: EdgeInsets.only(bottom: 15), 53 | child: FittedBox( 54 | child: RaisedButton( 55 | color: Theme.of(context).primaryColor, 56 | textColor: Colors.white, 57 | elevation: 4, 58 | onPressed: onAddButtomTap, 59 | shape: _bottomProperties.shape, 60 | child: Padding( 61 | padding: EdgeInsets.symmetric( 62 | horizontal: 10, 63 | vertical: _bottomProperties.padding, 64 | ), 65 | child: Row( 66 | children: [ 67 | Icon(Icons.add), 68 | if (!_bottomProperties.isBottom) 69 | SizedBox(width: 15), 70 | // Padding(padding: EdgeInsets.only(left: 15)), 71 | if (!_bottomProperties.isBottom) 72 | Text("ADICIONAR USUARIO"), 73 | ], 74 | ), 75 | ), 76 | ), 77 | ), 78 | ); 79 | }, 80 | ), 81 | ), 82 | ); 83 | } 84 | } 85 | 86 | class ButtonProperties { 87 | final bool isBottom; 88 | 89 | Alignment get alignment { 90 | return isBottom ? Alignment.bottomRight : Alignment.topCenter; 91 | } 92 | 93 | double get padding { 94 | return isBottom ? 20 : 8; 95 | } 96 | 97 | ShapeBorder get shape { 98 | return isBottom 99 | ? CircleBorder() 100 | : RoundedRectangleBorder( 101 | borderRadius: BorderRadius.circular(25), 102 | ); 103 | } 104 | 105 | ButtonProperties(bool isBottom) : isBottom = isBottom; 106 | } 107 | -------------------------------------------------------------------------------- /lib/app/pages/usuarios/usuarios_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:desafio_github/app/pages/usuarios/usuarios_module.dart'; 2 | import 'package:desafio_github/app/pages/usuarios/widgets/card_github/card_github_widget.dart'; 3 | import 'package:desafio_github/app/shared/componenents/button_animation/button_animation.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:select_dialog/select_dialog.dart'; 7 | 8 | import 'models/github_list_model.dart'; 9 | import 'models/github_model.dart'; 10 | import 'usuarios_bloc.dart'; 11 | 12 | class UsuariosPage extends StatefulWidget { 13 | final String title; 14 | const UsuariosPage({Key key, this.title = "Usuarios"}) : super(key: key); 15 | 16 | @override 17 | _UsuariosPageState createState() => _UsuariosPageState(); 18 | } 19 | 20 | class _UsuariosPageState extends State with ButtonAnimation { 21 | UsuariosBloc bloc = UsuariosModule.to.get(); 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | return Scaffold( 26 | appBar: AppBar( 27 | title: Text(widget.title), 28 | ), 29 | body: StreamBuilder>( 30 | stream: bloc.usuarios$.stream, 31 | builder: (context, snapshot) { 32 | return ListView.separated( 33 | padding: EdgeInsets.only(top: 60), 34 | controller: scrollController, 35 | itemCount: snapshot?.data?.length ?? 0, 36 | itemBuilder: (BuildContext context, int index) { 37 | if (!snapshot.hasData) { 38 | return Center( 39 | child: CircularProgressIndicator(), 40 | ); 41 | } 42 | return CardGithubWidget( 43 | hideButtom: () => hideButtom(), 44 | showButtom: () => showButtom(), 45 | githubModel: snapshot.data.reversed.elementAt(index), 46 | ); 47 | }, 48 | separatorBuilder: (BuildContext context, int index) { 49 | return SizedBox( 50 | height: 0, 51 | ); 52 | }, 53 | // children: [ 54 | // Column( 55 | // children: [ 56 | // Padding( 57 | // padding: const EdgeInsets.all(8.0), 58 | // child: Row( 59 | // children: [ 60 | // Expanded( 61 | // child: TextField( 62 | // controller: bloc.textController, 63 | // decoration: InputDecoration( 64 | // fillColor: Colors.grey.withOpacity(.2), 65 | // filled: true, 66 | // border: InputBorder.none), 67 | // ), 68 | // ), 69 | // SizedBox( 70 | // width: 10, 71 | // ), 72 | // RaisedButton( 73 | // color: Theme.of(context).primaryColor, 74 | // child: Icon( 75 | // Icons.add, 76 | // color: Colors.white, 77 | // ), 78 | // onPressed: () {}, 79 | // ) 80 | // ], 81 | // ), 82 | // ), 83 | // ], 84 | // ), 85 | // ], 86 | ); 87 | }), 88 | ); 89 | } 90 | 91 | @override 92 | void onAddButtomTap() async { 93 | hideButtom(); 94 | await SelectDialog.showModal( 95 | context, 96 | onFind: (searchText) async { 97 | if (searchText == null || searchText == "") searchText = "a"; 98 | return await bloc.searchGithub(searchText); 99 | }, 100 | itemBuilder: (_, item, isSelected) { 101 | return ListTile( 102 | title: Text(item.login), 103 | subtitle: Text(item.gistsUrl), 104 | leading: CircleAvatar( 105 | backgroundImage: NetworkImage(item.avatarUrl), 106 | ), 107 | ); 108 | }, 109 | onChange: (user) { 110 | bloc.addUser(user); 111 | }, 112 | ); 113 | 114 | showButtom(); 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /lib/app/pages/usuarios/models/github_model.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | GithubModel githubModelFromJson(String str) => GithubModel.fromJson(json.decode(str)); 4 | 5 | String githubModelToJson(GithubModel data) => json.encode(data.toJson()); 6 | 7 | class GithubModel { 8 | String login; 9 | int id; 10 | String nodeId; 11 | String avatarUrl; 12 | String gravatarId; 13 | String url; 14 | String htmlUrl; 15 | String followersUrl; 16 | String followingUrl; 17 | String gistsUrl; 18 | String starredUrl; 19 | String subscriptionsUrl; 20 | String organizationsUrl; 21 | String reposUrl; 22 | String eventsUrl; 23 | String receivedEventsUrl; 24 | String type; 25 | bool siteAdmin; 26 | String name; 27 | String company; 28 | String blog; 29 | String location; 30 | dynamic email; 31 | dynamic hireable; 32 | dynamic bio; 33 | int publicRepos; 34 | int publicGists; 35 | int followers; 36 | int following; 37 | DateTime createdAt; 38 | DateTime updatedAt; 39 | 40 | GithubModel({ 41 | this.login, 42 | this.id, 43 | this.nodeId, 44 | this.avatarUrl, 45 | this.gravatarId, 46 | this.url, 47 | this.htmlUrl, 48 | this.followersUrl, 49 | this.followingUrl, 50 | this.gistsUrl, 51 | this.starredUrl, 52 | this.subscriptionsUrl, 53 | this.organizationsUrl, 54 | this.reposUrl, 55 | this.eventsUrl, 56 | this.receivedEventsUrl, 57 | this.type, 58 | this.siteAdmin, 59 | this.name, 60 | this.company, 61 | this.blog, 62 | this.location, 63 | this.email, 64 | this.hireable, 65 | this.bio, 66 | this.publicRepos, 67 | this.publicGists, 68 | this.followers, 69 | this.following, 70 | this.createdAt, 71 | this.updatedAt, 72 | }); 73 | 74 | static GithubModel fromJson(Map json) { 75 | if (json == null) return null; 76 | 77 | return GithubModel( 78 | login: json["login"], 79 | id: json["id"], 80 | nodeId: json["node_id"], 81 | avatarUrl: json["avatar_url"], 82 | gravatarId: json["gravatar_id"], 83 | url: json["url"], 84 | htmlUrl: json["html_url"], 85 | followersUrl: json["followers_url"], 86 | followingUrl: json["following_url"], 87 | gistsUrl: json["gists_url"], 88 | starredUrl: json["starred_url"], 89 | subscriptionsUrl: json["subscriptions_url"], 90 | organizationsUrl: json["organizations_url"], 91 | reposUrl: json["repos_url"], 92 | eventsUrl: json["events_url"], 93 | receivedEventsUrl: json["received_events_url"], 94 | type: json["type"], 95 | siteAdmin: json["site_admin"], 96 | name: json["name"], 97 | company: json["company"], 98 | blog: json["blog"], 99 | location: json["location"], 100 | email: json["email"], 101 | hireable: json["hireable"], 102 | bio: json["bio"], 103 | publicRepos: json["public_repos"], 104 | publicGists: json["public_gists"], 105 | followers: json["followers"], 106 | following: json["following"], 107 | createdAt: DateTime.parse(json["created_at"]), 108 | updatedAt: DateTime.parse(json["updated_at"]), 109 | ); 110 | } 111 | 112 | Map toJson() => { 113 | "login": login, 114 | "id": id, 115 | "node_id": nodeId, 116 | "avatar_url": avatarUrl, 117 | "gravatar_id": gravatarId, 118 | "url": url, 119 | "html_url": htmlUrl, 120 | "followers_url": followersUrl, 121 | "following_url": followingUrl, 122 | "gists_url": gistsUrl, 123 | "starred_url": starredUrl, 124 | "subscriptions_url": subscriptionsUrl, 125 | "organizations_url": organizationsUrl, 126 | "repos_url": reposUrl, 127 | "events_url": eventsUrl, 128 | "received_events_url": receivedEventsUrl, 129 | "type": type, 130 | "site_admin": siteAdmin, 131 | "name": name, 132 | "company": company, 133 | "blog": blog, 134 | "location": location, 135 | "email": email, 136 | "hireable": hireable, 137 | "bio": bio, 138 | "public_repos": publicRepos, 139 | "public_gists": publicGists, 140 | "followers": followers, 141 | "following": following, 142 | "created_at": createdAt.toIso8601String(), 143 | "updated_at": updatedAt.toIso8601String(), 144 | }; 145 | 146 | static List fromJsonList(List json) { 147 | if (json == null) return null; 148 | return json.cast>().map(fromJson).toList(); 149 | } 150 | 151 | @override 152 | String toString() => login; 153 | 154 | @override 155 | operator ==(o) => o is GithubModel && o.id == id; 156 | 157 | @override 158 | int get hashCode => id.hashCode ^ login.hashCode ^ nodeId.hashCode; 159 | } 160 | -------------------------------------------------------------------------------- /lib/app/pages/dados_perfil/dados_perfil_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:desafio_github/app/pages/dados_perfil/models/repos_model.dart'; 2 | import 'package:desafio_github/app/pages/github_page/github_page_module.dart'; 3 | import 'package:desafio_github/app/pages/usuarios/models/github_model.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_modular/flutter_modular.dart'; 7 | 8 | import 'dados_perfil_bloc.dart'; 9 | import 'dados_perfil_module.dart'; 10 | 11 | class DadosPerfilPage extends StatefulWidget { 12 | final GithubModel model; 13 | 14 | const DadosPerfilPage({Key key, this.model}) : super(key: key); 15 | 16 | @override 17 | _DadosPerfilPageState createState() => _DadosPerfilPageState(); 18 | } 19 | 20 | class _DadosPerfilPageState extends State 21 | with InjectMixin { 22 | DadosPerfilBloc bloc; 23 | 24 | @override 25 | void initState() { 26 | super.initState(); 27 | bloc = DadosPerfilModule.to.get({"model": widget.model}); 28 | } 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | return Scaffold( 33 | appBar: AppBar( 34 | title: Text("Dados Perfil"), 35 | ), 36 | body: StreamBuilder( 37 | stream: bloc.githubModel$, 38 | builder: (context, snapshot) { 39 | if (!snapshot.hasData) { 40 | return Center( 41 | child: CircularProgressIndicator(), 42 | ); 43 | } 44 | 45 | var githubModel = snapshot.data; 46 | 47 | return StreamBuilder>( 48 | stream: bloc.repoModel$, 49 | builder: (context, snapshotRepo) { 50 | if (!snapshotRepo.hasData) { 51 | return Center( 52 | child: CircularProgressIndicator(), 53 | ); 54 | } 55 | 56 | return ListView.separated( 57 | padding: EdgeInsets.all(20), 58 | itemCount: snapshotRepo.data.length + 1, 59 | itemBuilder: (BuildContext context, int index) { 60 | var repo = snapshotRepo.data; 61 | 62 | if (index == 0) { 63 | return Column( 64 | mainAxisSize: MainAxisSize.min, 65 | children: [ 66 | SizedBox( 67 | height: 30, 68 | ), 69 | CircleAvatar( 70 | radius: 40, 71 | backgroundImage: 72 | NetworkImage(githubModel.avatarUrl), 73 | ), 74 | SizedBox( 75 | height: 10, 76 | ), 77 | Text( 78 | githubModel?.name, 79 | style: TextStyle( 80 | fontSize: 14, fontWeight: FontWeight.bold), 81 | ), 82 | SizedBox( 83 | height: 10, 84 | ), 85 | Text( 86 | githubModel?.bio ?? "Nao informado", 87 | style: TextStyle(color: Colors.black54), 88 | textAlign: TextAlign.center, 89 | ), 90 | SizedBox( 91 | height: 10, 92 | ), 93 | Text( 94 | githubModel?.blog ?? "Nao informado", 95 | style: TextStyle(color: Colors.black54), 96 | ), 97 | SizedBox( 98 | height: 30, 99 | ), 100 | ]); 101 | } 102 | 103 | return InkWell( 104 | onTap: () { 105 | Navigator.of(context).pushNamed( 106 | "/githubpage", 107 | arguments: repo[index - 1].htmlUrl, 108 | ); 109 | }, 110 | child: Container( 111 | padding: EdgeInsets.all(5), 112 | decoration: BoxDecoration( 113 | color: Theme.of(context) 114 | .disabledColor 115 | .withOpacity(.1), 116 | borderRadius: BorderRadius.circular(10)), 117 | child: ListTile( 118 | title: Text(repo[index - 1].name), 119 | subtitle: Text(repo[index - 1].url), 120 | trailing: Icon(Icons.arrow_forward_ios), 121 | ), 122 | ), 123 | ); 124 | }, 125 | separatorBuilder: (BuildContext context, int index) { 126 | return SizedBox( 127 | height: 10, 128 | ); 129 | }, 130 | ); 131 | }); 132 | }), 133 | ); 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.3" 60 | cupertino_icons: 61 | dependency: "direct main" 62 | description: 63 | name: cupertino_icons 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.1.3" 67 | dio: 68 | dependency: "direct main" 69 | description: 70 | name: dio 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "3.0.7" 74 | flutter: 75 | dependency: "direct main" 76 | description: flutter 77 | source: sdk 78 | version: "0.0.0" 79 | flutter_modular: 80 | dependency: "direct main" 81 | description: 82 | name: flutter_modular 83 | url: "https://pub.dartlang.org" 84 | source: hosted 85 | version: "0.0.12" 86 | flutter_test: 87 | dependency: "direct dev" 88 | description: flutter 89 | source: sdk 90 | version: "0.0.0" 91 | flutter_web_plugins: 92 | dependency: transitive 93 | description: flutter 94 | source: sdk 95 | version: "0.0.0" 96 | http_parser: 97 | dependency: transitive 98 | description: 99 | name: http_parser 100 | url: "https://pub.dartlang.org" 101 | source: hosted 102 | version: "3.1.3" 103 | hydrated: 104 | dependency: "direct main" 105 | description: 106 | name: hydrated 107 | url: "https://pub.dartlang.org" 108 | source: hosted 109 | version: "1.2.4" 110 | image: 111 | dependency: transitive 112 | description: 113 | name: image 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "2.1.4" 117 | matcher: 118 | dependency: transitive 119 | description: 120 | name: matcher 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "0.12.6" 124 | meta: 125 | dependency: transitive 126 | description: 127 | name: meta 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.1.8" 131 | mockito: 132 | dependency: "direct dev" 133 | description: 134 | name: mockito 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "4.1.1" 138 | path: 139 | dependency: transitive 140 | description: 141 | name: path 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.6.4" 145 | pedantic: 146 | dependency: transitive 147 | description: 148 | name: pedantic 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.8.0+1" 152 | petitparser: 153 | dependency: transitive 154 | description: 155 | name: petitparser 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "2.4.0" 159 | quiver: 160 | dependency: transitive 161 | description: 162 | name: quiver 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "2.0.5" 166 | rxdart: 167 | dependency: "direct main" 168 | description: 169 | name: rxdart 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "0.22.6" 173 | select_dialog: 174 | dependency: "direct main" 175 | description: 176 | name: select_dialog 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "1.0.6+1" 180 | shared_preferences: 181 | dependency: transitive 182 | description: 183 | name: shared_preferences 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "0.5.6" 187 | shared_preferences_macos: 188 | dependency: transitive 189 | description: 190 | name: shared_preferences_macos 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "0.0.1+3" 194 | shared_preferences_platform_interface: 195 | dependency: transitive 196 | description: 197 | name: shared_preferences_platform_interface 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "1.0.1" 201 | shared_preferences_web: 202 | dependency: transitive 203 | description: 204 | name: shared_preferences_web 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "0.1.2+2" 208 | sky_engine: 209 | dependency: transitive 210 | description: flutter 211 | source: sdk 212 | version: "0.0.99" 213 | source_span: 214 | dependency: transitive 215 | description: 216 | name: source_span 217 | url: "https://pub.dartlang.org" 218 | source: hosted 219 | version: "1.5.5" 220 | stack_trace: 221 | dependency: transitive 222 | description: 223 | name: stack_trace 224 | url: "https://pub.dartlang.org" 225 | source: hosted 226 | version: "1.9.3" 227 | stream_channel: 228 | dependency: transitive 229 | description: 230 | name: stream_channel 231 | url: "https://pub.dartlang.org" 232 | source: hosted 233 | version: "2.0.0" 234 | string_scanner: 235 | dependency: transitive 236 | description: 237 | name: string_scanner 238 | url: "https://pub.dartlang.org" 239 | source: hosted 240 | version: "1.0.5" 241 | term_glyph: 242 | dependency: transitive 243 | description: 244 | name: term_glyph 245 | url: "https://pub.dartlang.org" 246 | source: hosted 247 | version: "1.1.0" 248 | test_api: 249 | dependency: transitive 250 | description: 251 | name: test_api 252 | url: "https://pub.dartlang.org" 253 | source: hosted 254 | version: "0.2.11" 255 | typed_data: 256 | dependency: transitive 257 | description: 258 | name: typed_data 259 | url: "https://pub.dartlang.org" 260 | source: hosted 261 | version: "1.1.6" 262 | vector_math: 263 | dependency: transitive 264 | description: 265 | name: vector_math 266 | url: "https://pub.dartlang.org" 267 | source: hosted 268 | version: "2.0.8" 269 | webview_flutter: 270 | dependency: "direct main" 271 | description: 272 | name: webview_flutter 273 | url: "https://pub.dartlang.org" 274 | source: hosted 275 | version: "0.3.18+1" 276 | xml: 277 | dependency: transitive 278 | description: 279 | name: xml 280 | url: "https://pub.dartlang.org" 281 | source: hosted 282 | version: "3.5.0" 283 | sdks: 284 | dart: ">2.4.0 <3.0.0" 285 | flutter: ">=1.12.13+hotfix.4 <2.0.0" 286 | -------------------------------------------------------------------------------- /lib/app/pages/dados_perfil/models/repos_model.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'dart:convert'; 3 | 4 | import 'owner_model.dart'; 5 | 6 | RepoModel repoModelFromJson(String str) => RepoModel.fromJson(json.decode(str)); 7 | 8 | String repoModelToJson(RepoModel data) => json.encode(data.toJson()); 9 | 10 | class RepoModel { 11 | int id; 12 | String nodeId; 13 | String name; 14 | String fullName; 15 | bool private; 16 | OwnerModel owner; 17 | String htmlUrl; 18 | String description; 19 | bool fork; 20 | String url; 21 | String forksUrl; 22 | String keysUrl; 23 | String collaboratorsUrl; 24 | String teamsUrl; 25 | String hooksUrl; 26 | String issueEventsUrl; 27 | String eventsUrl; 28 | String assigneesUrl; 29 | String branchesUrl; 30 | String tagsUrl; 31 | String blobsUrl; 32 | String gitTagsUrl; 33 | String gitRefsUrl; 34 | String treesUrl; 35 | String statusesUrl; 36 | String languagesUrl; 37 | String stargazersUrl; 38 | String contributorsUrl; 39 | String subscribersUrl; 40 | String subscriptionUrl; 41 | String commitsUrl; 42 | String gitCommitsUrl; 43 | String commentsUrl; 44 | String issueCommentUrl; 45 | String contentsUrl; 46 | String compareUrl; 47 | String mergesUrl; 48 | String archiveUrl; 49 | String downloadsUrl; 50 | String issuesUrl; 51 | String pullsUrl; 52 | String milestonesUrl; 53 | String notificationsUrl; 54 | String labelsUrl; 55 | String releasesUrl; 56 | String deploymentsUrl; 57 | DateTime createdAt; 58 | DateTime updatedAt; 59 | DateTime pushedAt; 60 | String gitUrl; 61 | String sshUrl; 62 | String cloneUrl; 63 | String svnUrl; 64 | String homepage; 65 | int size; 66 | int stargazersCount; 67 | int watchersCount; 68 | dynamic language; 69 | bool hasIssues; 70 | bool hasProjects; 71 | bool hasDownloads; 72 | bool hasWiki; 73 | bool hasPages; 74 | int forksCount; 75 | dynamic mirrorUrl; 76 | bool archived; 77 | bool disabled; 78 | int openIssuesCount; 79 | dynamic license; 80 | int forks; 81 | int openIssues; 82 | int watchers; 83 | String defaultBranch; 84 | 85 | RepoModel({ 86 | this.id, 87 | this.nodeId, 88 | this.name, 89 | this.fullName, 90 | this.private, 91 | this.owner, 92 | this.htmlUrl, 93 | this.description, 94 | this.fork, 95 | this.url, 96 | this.forksUrl, 97 | this.keysUrl, 98 | this.collaboratorsUrl, 99 | this.teamsUrl, 100 | this.hooksUrl, 101 | this.issueEventsUrl, 102 | this.eventsUrl, 103 | this.assigneesUrl, 104 | this.branchesUrl, 105 | this.tagsUrl, 106 | this.blobsUrl, 107 | this.gitTagsUrl, 108 | this.gitRefsUrl, 109 | this.treesUrl, 110 | this.statusesUrl, 111 | this.languagesUrl, 112 | this.stargazersUrl, 113 | this.contributorsUrl, 114 | this.subscribersUrl, 115 | this.subscriptionUrl, 116 | this.commitsUrl, 117 | this.gitCommitsUrl, 118 | this.commentsUrl, 119 | this.issueCommentUrl, 120 | this.contentsUrl, 121 | this.compareUrl, 122 | this.mergesUrl, 123 | this.archiveUrl, 124 | this.downloadsUrl, 125 | this.issuesUrl, 126 | this.pullsUrl, 127 | this.milestonesUrl, 128 | this.notificationsUrl, 129 | this.labelsUrl, 130 | this.releasesUrl, 131 | this.deploymentsUrl, 132 | this.createdAt, 133 | this.updatedAt, 134 | this.pushedAt, 135 | this.gitUrl, 136 | this.sshUrl, 137 | this.cloneUrl, 138 | this.svnUrl, 139 | this.homepage, 140 | this.size, 141 | this.stargazersCount, 142 | this.watchersCount, 143 | this.language, 144 | this.hasIssues, 145 | this.hasProjects, 146 | this.hasDownloads, 147 | this.hasWiki, 148 | this.hasPages, 149 | this.forksCount, 150 | this.mirrorUrl, 151 | this.archived, 152 | this.disabled, 153 | this.openIssuesCount, 154 | this.license, 155 | this.forks, 156 | this.openIssues, 157 | this.watchers, 158 | this.defaultBranch, 159 | }); 160 | 161 | factory RepoModel.fromJson(Map json) => RepoModel( 162 | id: json["id"], 163 | nodeId: json["node_id"], 164 | name: json["name"], 165 | fullName: json["full_name"], 166 | private: json["private"], 167 | owner: OwnerModel.fromJson(json["owner"]), 168 | htmlUrl: json["html_url"], 169 | description: json["description"], 170 | fork: json["fork"], 171 | url: json["url"], 172 | forksUrl: json["forks_url"], 173 | keysUrl: json["keys_url"], 174 | collaboratorsUrl: json["collaborators_url"], 175 | teamsUrl: json["teams_url"], 176 | hooksUrl: json["hooks_url"], 177 | issueEventsUrl: json["issue_events_url"], 178 | eventsUrl: json["events_url"], 179 | assigneesUrl: json["assignees_url"], 180 | branchesUrl: json["branches_url"], 181 | tagsUrl: json["tags_url"], 182 | blobsUrl: json["blobs_url"], 183 | gitTagsUrl: json["git_tags_url"], 184 | gitRefsUrl: json["git_refs_url"], 185 | treesUrl: json["trees_url"], 186 | statusesUrl: json["statuses_url"], 187 | languagesUrl: json["languages_url"], 188 | stargazersUrl: json["stargazers_url"], 189 | contributorsUrl: json["contributors_url"], 190 | subscribersUrl: json["subscribers_url"], 191 | subscriptionUrl: json["subscription_url"], 192 | commitsUrl: json["commits_url"], 193 | gitCommitsUrl: json["git_commits_url"], 194 | commentsUrl: json["comments_url"], 195 | issueCommentUrl: json["issue_comment_url"], 196 | contentsUrl: json["contents_url"], 197 | compareUrl: json["compare_url"], 198 | mergesUrl: json["merges_url"], 199 | archiveUrl: json["archive_url"], 200 | downloadsUrl: json["downloads_url"], 201 | issuesUrl: json["issues_url"], 202 | pullsUrl: json["pulls_url"], 203 | milestonesUrl: json["milestones_url"], 204 | notificationsUrl: json["notifications_url"], 205 | labelsUrl: json["labels_url"], 206 | releasesUrl: json["releases_url"], 207 | deploymentsUrl: json["deployments_url"], 208 | createdAt: DateTime.parse(json["created_at"]), 209 | updatedAt: DateTime.parse(json["updated_at"]), 210 | pushedAt: DateTime.parse(json["pushed_at"]), 211 | gitUrl: json["git_url"], 212 | sshUrl: json["ssh_url"], 213 | cloneUrl: json["clone_url"], 214 | svnUrl: json["svn_url"], 215 | homepage: json["homepage"], 216 | size: json["size"], 217 | stargazersCount: json["stargazers_count"], 218 | watchersCount: json["watchers_count"], 219 | language: json["language"], 220 | hasIssues: json["has_issues"], 221 | hasProjects: json["has_projects"], 222 | hasDownloads: json["has_downloads"], 223 | hasWiki: json["has_wiki"], 224 | hasPages: json["has_pages"], 225 | forksCount: json["forks_count"], 226 | mirrorUrl: json["mirror_url"], 227 | archived: json["archived"], 228 | disabled: json["disabled"], 229 | openIssuesCount: json["open_issues_count"], 230 | license: json["license"], 231 | forks: json["forks"], 232 | openIssues: json["open_issues"], 233 | watchers: json["watchers"], 234 | defaultBranch: json["default_branch"], 235 | ); 236 | 237 | Map toJson() => { 238 | "id": id, 239 | "node_id": nodeId, 240 | "name": name, 241 | "full_name": fullName, 242 | "private": private, 243 | "owner": owner.toJson(), 244 | "html_url": htmlUrl, 245 | "description": description, 246 | "fork": fork, 247 | "url": url, 248 | "forks_url": forksUrl, 249 | "keys_url": keysUrl, 250 | "collaborators_url": collaboratorsUrl, 251 | "teams_url": teamsUrl, 252 | "hooks_url": hooksUrl, 253 | "issue_events_url": issueEventsUrl, 254 | "events_url": eventsUrl, 255 | "assignees_url": assigneesUrl, 256 | "branches_url": branchesUrl, 257 | "tags_url": tagsUrl, 258 | "blobs_url": blobsUrl, 259 | "git_tags_url": gitTagsUrl, 260 | "git_refs_url": gitRefsUrl, 261 | "trees_url": treesUrl, 262 | "statuses_url": statusesUrl, 263 | "languages_url": languagesUrl, 264 | "stargazers_url": stargazersUrl, 265 | "contributors_url": contributorsUrl, 266 | "subscribers_url": subscribersUrl, 267 | "subscription_url": subscriptionUrl, 268 | "commits_url": commitsUrl, 269 | "git_commits_url": gitCommitsUrl, 270 | "comments_url": commentsUrl, 271 | "issue_comment_url": issueCommentUrl, 272 | "contents_url": contentsUrl, 273 | "compare_url": compareUrl, 274 | "merges_url": mergesUrl, 275 | "archive_url": archiveUrl, 276 | "downloads_url": downloadsUrl, 277 | "issues_url": issuesUrl, 278 | "pulls_url": pullsUrl, 279 | "milestones_url": milestonesUrl, 280 | "notifications_url": notificationsUrl, 281 | "labels_url": labelsUrl, 282 | "releases_url": releasesUrl, 283 | "deployments_url": deploymentsUrl, 284 | "created_at": createdAt.toIso8601String(), 285 | "updated_at": updatedAt.toIso8601String(), 286 | "pushed_at": pushedAt.toIso8601String(), 287 | "git_url": gitUrl, 288 | "ssh_url": sshUrl, 289 | "clone_url": cloneUrl, 290 | "svn_url": svnUrl, 291 | "homepage": homepage, 292 | "size": size, 293 | "stargazers_count": stargazersCount, 294 | "watchers_count": watchersCount, 295 | "language": language, 296 | "has_issues": hasIssues, 297 | "has_projects": hasProjects, 298 | "has_downloads": hasDownloads, 299 | "has_wiki": hasWiki, 300 | "has_pages": hasPages, 301 | "forks_count": forksCount, 302 | "mirror_url": mirrorUrl, 303 | "archived": archived, 304 | "disabled": disabled, 305 | "open_issues_count": openIssuesCount, 306 | "license": license, 307 | "forks": forks, 308 | "open_issues": openIssues, 309 | "watchers": watchers, 310 | "default_branch": defaultBranch, 311 | }; 312 | } 313 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXCopyFilesBuildPhase section */ 23 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 24 | isa = PBXCopyFilesBuildPhase; 25 | buildActionMask = 2147483647; 26 | dstPath = ""; 27 | dstSubfolderSpec = 10; 28 | files = ( 29 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 30 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 31 | ); 32 | name = "Embed Frameworks"; 33 | runOnlyForDeploymentPostprocessing = 0; 34 | }; 35 | /* End PBXCopyFilesBuildPhase section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 39 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 40 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 41 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 42 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 43 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 46 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 47 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 48 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 50 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 51 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 52 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 61 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 9740EEB11CF90186004384FC /* Flutter */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 3B80C3931E831B6300D905FE /* App.framework */, 72 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 73 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 75 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 76 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 77 | ); 78 | name = Flutter; 79 | sourceTree = ""; 80 | }; 81 | 97C146E51CF9000F007C117D = { 82 | isa = PBXGroup; 83 | children = ( 84 | 9740EEB11CF90186004384FC /* Flutter */, 85 | 97C146F01CF9000F007C117D /* Runner */, 86 | 97C146EF1CF9000F007C117D /* Products */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 97C146EF1CF9000F007C117D /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 97C146EE1CF9000F007C117D /* Runner.app */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 97C146F01CF9000F007C117D /* Runner */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 102 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 103 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 104 | 97C147021CF9000F007C117D /* Info.plist */, 105 | 97C146F11CF9000F007C117D /* Supporting Files */, 106 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 107 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 108 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 109 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 110 | ); 111 | path = Runner; 112 | sourceTree = ""; 113 | }; 114 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | ); 118 | name = "Supporting Files"; 119 | sourceTree = ""; 120 | }; 121 | /* End PBXGroup section */ 122 | 123 | /* Begin PBXNativeTarget section */ 124 | 97C146ED1CF9000F007C117D /* Runner */ = { 125 | isa = PBXNativeTarget; 126 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 127 | buildPhases = ( 128 | 9740EEB61CF901F6004384FC /* Run Script */, 129 | 97C146EA1CF9000F007C117D /* Sources */, 130 | 97C146EB1CF9000F007C117D /* Frameworks */, 131 | 97C146EC1CF9000F007C117D /* Resources */, 132 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 133 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | ); 139 | name = Runner; 140 | productName = Runner; 141 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 142 | productType = "com.apple.product-type.application"; 143 | }; 144 | /* End PBXNativeTarget section */ 145 | 146 | /* Begin PBXProject section */ 147 | 97C146E61CF9000F007C117D /* Project object */ = { 148 | isa = PBXProject; 149 | attributes = { 150 | LastUpgradeCheck = 1020; 151 | ORGANIZATIONNAME = "The Chromium Authors"; 152 | TargetAttributes = { 153 | 97C146ED1CF9000F007C117D = { 154 | CreatedOnToolsVersion = 7.3.1; 155 | LastSwiftMigration = 1100; 156 | }; 157 | }; 158 | }; 159 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 160 | compatibilityVersion = "Xcode 3.2"; 161 | developmentRegion = en; 162 | hasScannedForEncodings = 0; 163 | knownRegions = ( 164 | en, 165 | Base, 166 | ); 167 | mainGroup = 97C146E51CF9000F007C117D; 168 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 169 | projectDirPath = ""; 170 | projectRoot = ""; 171 | targets = ( 172 | 97C146ED1CF9000F007C117D /* Runner */, 173 | ); 174 | }; 175 | /* End PBXProject section */ 176 | 177 | /* Begin PBXResourcesBuildPhase section */ 178 | 97C146EC1CF9000F007C117D /* Resources */ = { 179 | isa = PBXResourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 183 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 184 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 185 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXResourcesBuildPhase section */ 190 | 191 | /* Begin PBXShellScriptBuildPhase section */ 192 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 193 | isa = PBXShellScriptBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | inputPaths = ( 198 | ); 199 | name = "Thin Binary"; 200 | outputPaths = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | shellPath = /bin/sh; 204 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 205 | }; 206 | 9740EEB61CF901F6004384FC /* Run Script */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | ); 213 | name = "Run Script"; 214 | outputPaths = ( 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | shellPath = /bin/sh; 218 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 219 | }; 220 | /* End PBXShellScriptBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 97C146EA1CF9000F007C117D /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 228 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXVariantGroup section */ 235 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 97C146FB1CF9000F007C117D /* Base */, 239 | ); 240 | name = Main.storyboard; 241 | sourceTree = ""; 242 | }; 243 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 97C147001CF9000F007C117D /* Base */, 247 | ); 248 | name = LaunchScreen.storyboard; 249 | sourceTree = ""; 250 | }; 251 | /* End PBXVariantGroup section */ 252 | 253 | /* Begin XCBuildConfiguration section */ 254 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 255 | isa = XCBuildConfiguration; 256 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 257 | buildSettings = { 258 | ALWAYS_SEARCH_USER_PATHS = NO; 259 | CLANG_ANALYZER_NONNULL = YES; 260 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 261 | CLANG_CXX_LIBRARY = "libc++"; 262 | CLANG_ENABLE_MODULES = YES; 263 | CLANG_ENABLE_OBJC_ARC = YES; 264 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 265 | CLANG_WARN_BOOL_CONVERSION = YES; 266 | CLANG_WARN_COMMA = YES; 267 | CLANG_WARN_CONSTANT_CONVERSION = YES; 268 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 269 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 270 | CLANG_WARN_EMPTY_BODY = YES; 271 | CLANG_WARN_ENUM_CONVERSION = YES; 272 | CLANG_WARN_INFINITE_RECURSION = YES; 273 | CLANG_WARN_INT_CONVERSION = YES; 274 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 275 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 276 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 277 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 278 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 279 | CLANG_WARN_STRICT_PROTOTYPES = YES; 280 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 284 | COPY_PHASE_STRIP = NO; 285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 286 | ENABLE_NS_ASSERTIONS = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | GCC_C_LANGUAGE_STANDARD = gnu99; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 297 | MTL_ENABLE_DEBUG_INFO = NO; 298 | SDKROOT = iphoneos; 299 | SUPPORTED_PLATFORMS = iphoneos; 300 | TARGETED_DEVICE_FAMILY = "1,2"; 301 | VALIDATE_PRODUCT = YES; 302 | }; 303 | name = Profile; 304 | }; 305 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 306 | isa = XCBuildConfiguration; 307 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 308 | buildSettings = { 309 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 310 | CLANG_ENABLE_MODULES = YES; 311 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 312 | ENABLE_BITCODE = NO; 313 | FRAMEWORK_SEARCH_PATHS = ( 314 | "$(inherited)", 315 | "$(PROJECT_DIR)/Flutter", 316 | ); 317 | INFOPLIST_FILE = Runner/Info.plist; 318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 319 | LIBRARY_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "$(PROJECT_DIR)/Flutter", 322 | ); 323 | PRODUCT_BUNDLE_IDENTIFIER = com.example.desafioGithubSearch09112019; 324 | PRODUCT_NAME = "$(TARGET_NAME)"; 325 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 326 | SWIFT_VERSION = 5.0; 327 | VERSIONING_SYSTEM = "apple-generic"; 328 | }; 329 | name = Profile; 330 | }; 331 | 97C147031CF9000F007C117D /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 334 | buildSettings = { 335 | ALWAYS_SEARCH_USER_PATHS = NO; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 338 | CLANG_CXX_LIBRARY = "libc++"; 339 | CLANG_ENABLE_MODULES = YES; 340 | CLANG_ENABLE_OBJC_ARC = YES; 341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 342 | CLANG_WARN_BOOL_CONVERSION = YES; 343 | CLANG_WARN_COMMA = YES; 344 | CLANG_WARN_CONSTANT_CONVERSION = YES; 345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = dwarf; 363 | ENABLE_STRICT_OBJC_MSGSEND = YES; 364 | ENABLE_TESTABILITY = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_NO_COMMON_BLOCKS = YES; 368 | GCC_OPTIMIZATION_LEVEL = 0; 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 380 | MTL_ENABLE_DEBUG_INFO = YES; 381 | ONLY_ACTIVE_ARCH = YES; 382 | SDKROOT = iphoneos; 383 | TARGETED_DEVICE_FAMILY = "1,2"; 384 | }; 385 | name = Debug; 386 | }; 387 | 97C147041CF9000F007C117D /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_NONNULL = YES; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_MODULES = YES; 396 | CLANG_ENABLE_OBJC_ARC = YES; 397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_COMMA = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 403 | CLANG_WARN_EMPTY_BODY = YES; 404 | CLANG_WARN_ENUM_CONVERSION = YES; 405 | CLANG_WARN_INFINITE_RECURSION = YES; 406 | CLANG_WARN_INT_CONVERSION = YES; 407 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 409 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 412 | CLANG_WARN_STRICT_PROTOTYPES = YES; 413 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 414 | CLANG_WARN_UNREACHABLE_CODE = YES; 415 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 417 | COPY_PHASE_STRIP = NO; 418 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 419 | ENABLE_NS_ASSERTIONS = NO; 420 | ENABLE_STRICT_OBJC_MSGSEND = YES; 421 | GCC_C_LANGUAGE_STANDARD = gnu99; 422 | GCC_NO_COMMON_BLOCKS = YES; 423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 425 | GCC_WARN_UNDECLARED_SELECTOR = YES; 426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 427 | GCC_WARN_UNUSED_FUNCTION = YES; 428 | GCC_WARN_UNUSED_VARIABLE = YES; 429 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 430 | MTL_ENABLE_DEBUG_INFO = NO; 431 | SDKROOT = iphoneos; 432 | SUPPORTED_PLATFORMS = iphoneos; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.desafioGithubSearch09112019; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_VERSION = 5.0; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | }; 464 | name = Debug; 465 | }; 466 | 97C147071CF9000F007C117D /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_ENABLE_MODULES = YES; 472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 473 | ENABLE_BITCODE = NO; 474 | FRAMEWORK_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | INFOPLIST_FILE = Runner/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 480 | LIBRARY_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/Flutter", 483 | ); 484 | PRODUCT_BUNDLE_IDENTIFIER = com.example.desafioGithubSearch09112019; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 487 | SWIFT_VERSION = 5.0; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | }; 490 | name = Release; 491 | }; 492 | /* End XCBuildConfiguration section */ 493 | 494 | /* Begin XCConfigurationList section */ 495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 496 | isa = XCConfigurationList; 497 | buildConfigurations = ( 498 | 97C147031CF9000F007C117D /* Debug */, 499 | 97C147041CF9000F007C117D /* Release */, 500 | 249021D3217E4FDB00AE95B9 /* Profile */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 506 | isa = XCConfigurationList; 507 | buildConfigurations = ( 508 | 97C147061CF9000F007C117D /* Debug */, 509 | 97C147071CF9000F007C117D /* Release */, 510 | 249021D4217E4FDB00AE95B9 /* Profile */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | /* End XCConfigurationList section */ 516 | }; 517 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 518 | } 519 | --------------------------------------------------------------------------------