├── ios ├── 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 ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── .gitignore ├── Podfile.lock └── Podfile ├── .fvm └── fvm_config.json ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png ├── manifest.json └── index.html ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── flutter_github_search │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── test ├── helper.dart ├── api │ └── data │ │ └── data_test.dart ├── page │ └── search │ │ └── seach_page_state_notifier_test.dart └── dummy │ └── dummy_search_result.dart ├── Dangerfile ├── analysis_options.yaml ├── lib ├── ui │ ├── component │ │ ├── loading_view.dart │ │ ├── circle_image.dart │ │ ├── error_view.dart │ │ └── pagination_list_view.dart │ └── page │ │ ├── search │ │ ├── notifier │ │ │ ├── search_mode_notifier.dart │ │ │ └── search_state_notifier.dart │ │ ├── search_page_navigator.dart │ │ ├── search_page_state.dart │ │ ├── widgets │ │ │ ├── search_result_list_view.dart │ │ │ ├── search_result_list_tile.dart │ │ │ └── search_page_app_bar.dart │ │ └── search_page.dart │ │ └── detail │ │ ├── detail_data.dart │ │ └── detail_page.dart ├── api │ ├── data │ │ ├── owner.dart │ │ ├── repository_summary.dart │ │ ├── search_result.dart │ │ └── repository_detail.dart │ ├── dio.dart │ ├── repository_detail_api.dart │ └── search_api.dart └── main.dart ├── .metadata ├── README.md ├── .vscode └── launch.json ├── .gitignore ├── .github └── workflows │ └── test.yml ├── pubspec.yaml └── pubspec.lock /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /.fvm/fvm_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "flutterSdkVersion": "2.10.2", 3 | "flavors": {} 4 | } -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_github_search/HEAD/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_github_search/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_github_search/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_github_search/HEAD/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_github_search/HEAD/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /test/helper.dart: -------------------------------------------------------------------------------- 1 | import 'package:mockito/mockito.dart'; 2 | 3 | class Listener extends Mock { 4 | void call(T? previous, T value); 5 | } 6 | -------------------------------------------------------------------------------- /Dangerfile: -------------------------------------------------------------------------------- 1 | github.dismiss_out_of_range_messages 2 | 3 | flutter_lint.report_path = "flutter_analyze_report.txt" 4 | flutter_lint.lint(inline_mode: true) 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_github_search/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_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/watanavex/flutter_github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_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/watanavex/flutter_github_search/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watanavex/flutter_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/watanavex/flutter_github_search/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/flutter_github_search/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_github_search 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic_mono/analysis_options.yaml 2 | 3 | linter: 4 | rules: 5 | sort_pub_dependencies: false 6 | 7 | analyzer: 8 | exclude: 9 | - "**/*.g.dart" 10 | - "**/*.freezed.dart" 11 | - "**/*.mocks.dart" 12 | errors: 13 | invalid_annotation_target: ignore 14 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/ui/component/loading_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class LoadingView extends StatelessWidget { 4 | const LoadingView({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return const Center( 9 | child: CircularProgressIndicator(), 10 | ); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /.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: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /lib/api/data/owner.dart: -------------------------------------------------------------------------------- 1 | import 'package:freezed_annotation/freezed_annotation.dart'; 2 | 3 | part 'owner.freezed.dart'; 4 | part 'owner.g.dart'; 5 | 6 | @freezed 7 | class Owner with _$Owner { 8 | const factory Owner({ 9 | required String login, 10 | required String avatarUrl, 11 | }) = _Owner; 12 | 13 | factory Owner.fromJson(Map json) => _$OwnerFromJson(json); 14 | } 15 | -------------------------------------------------------------------------------- /lib/ui/page/search/notifier/search_mode_notifier.dart: -------------------------------------------------------------------------------- 1 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 2 | 3 | final searchModeStateNotifier = 4 | StateNotifierProvider( 5 | (ref) => SearchModeStateNotifier()); 6 | 7 | class SearchModeStateNotifier extends StateNotifier { 8 | SearchModeStateNotifier() : super(false); 9 | 10 | void toggle() => state = !state; 11 | } 12 | -------------------------------------------------------------------------------- /lib/api/dio.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 3 | 4 | final dioProvider = Provider((ref) { 5 | final dio = Dio(); 6 | 7 | // flutter run --debug --dart-define=API_TOKEN={YOUR_GITHUB_API_TOKEN} 8 | const apiToken = String.fromEnvironment('API_TOKEN'); 9 | if (apiToken.isNotEmpty) { 10 | dio.options.headers['Authorization'] = 'token $apiToken'; 11 | } 12 | return dio; 13 | }); 14 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_github_search 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /lib/api/data/repository_summary.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter_github_search/api/data/owner.dart'; 3 | import 'package:freezed_annotation/freezed_annotation.dart'; 4 | 5 | part 'repository_summary.freezed.dart'; 6 | part 'repository_summary.g.dart'; 7 | 8 | @freezed 9 | class RepositorySummary with _$RepositorySummary { 10 | const factory RepositorySummary({ 11 | required String name, 12 | required Owner owner, 13 | }) = _RepositorySummary; 14 | factory RepositorySummary.fromJson(Map json) => 15 | _$RepositorySummaryFromJson(json); 16 | } 17 | -------------------------------------------------------------------------------- /lib/api/data/search_result.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter_github_search/api/data/repository_summary.dart'; 3 | import 'package:freezed_annotation/freezed_annotation.dart'; 4 | 5 | part 'search_result.freezed.dart'; 6 | part 'search_result.g.dart'; 7 | 8 | @freezed 9 | class SearchResult with _$SearchResult { 10 | const factory SearchResult({ 11 | required int totalCount, 12 | required bool incompleteResults, 13 | required List items, 14 | }) = _SearchResult; 15 | factory SearchResult.fromJson(Map json) => 16 | _$SearchResultFromJson(json); 17 | } 18 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_github_search/ui/page/search/search_page.dart'; 3 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 4 | 5 | void main() { 6 | runApp( 7 | const ProviderScope( 8 | child: MyApp(), 9 | ), 10 | ); 11 | } 12 | 13 | class MyApp extends StatelessWidget { 14 | const MyApp({Key? key}) : super(key: key); 15 | 16 | // This widget is the root of your application. 17 | @override 18 | Widget build(BuildContext context) { 19 | return MaterialApp( 20 | theme: ThemeData( 21 | primarySwatch: Colors.blue, 22 | ), 23 | home: const SearchPage(), 24 | ); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.0' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /lib/ui/component/circle_image.dart: -------------------------------------------------------------------------------- 1 | import 'package:cached_network_image/cached_network_image.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class CircleImage extends StatelessWidget { 5 | const CircleImage({ 6 | Key? key, 7 | required this.imageUrl, 8 | required this.placeholder, 9 | }) : super(key: key); 10 | 11 | final String imageUrl; 12 | final Widget placeholder; 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return ClipOval( 17 | child: CachedNetworkImage( 18 | imageUrl: imageUrl, 19 | placeholder: (context, url) => placeholder, 20 | // ignore: implicit_dynamic_parameter 21 | errorWidget: (context, url, _) => placeholder, 22 | ), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/api/repository_detail_api.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:flutter_github_search/api/data/repository_detail.dart'; 3 | import 'package:flutter_github_search/api/dio.dart'; 4 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 5 | import 'package:retrofit/retrofit.dart'; 6 | 7 | part 'repository_detail_api.g.dart'; 8 | 9 | final repositoryApiProvider = 10 | Provider((ref) => RepositoryDetailApi(ref.watch(dioProvider))); 11 | 12 | @RestApi(baseUrl: 'https://api.github.com') 13 | abstract class RepositoryDetailApi { 14 | factory RepositoryDetailApi(Dio dio) = _RepositoryDetailApi; 15 | 16 | @GET('/repos/{owner}/{repo}') 17 | Future fetch( 18 | @Path() String owner, 19 | @Path() String repo, 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /lib/api/search_api.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:flutter_github_search/api/data/search_result.dart'; 3 | import 'package:flutter_github_search/api/dio.dart'; 4 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 5 | import 'package:retrofit/retrofit.dart'; 6 | 7 | part 'search_api.g.dart'; 8 | 9 | final searchApiProvider = Provider((ref) => SearchApi.withReader(ref.read)); 10 | 11 | @RestApi(baseUrl: 'https://api.github.com') 12 | abstract class SearchApi { 13 | factory SearchApi(Dio dio) = _SearchApi; 14 | factory SearchApi.withReader(Reader reader) => SearchApi(reader(dioProvider)); 15 | 16 | @GET('/search/repositories') 17 | Future search( 18 | @Query('q') String query, 19 | @Query('page') int page, 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "app", 9 | "request": "launch", 10 | "type": "dart" 11 | }, 12 | { 13 | "name": "app (profile mode)", 14 | "request": "launch", 15 | "type": "dart", 16 | "flutterMode": "profile" 17 | }, 18 | { 19 | "name": "app (release mode)", 20 | "request": "launch", 21 | "type": "dart", 22 | "flutterMode": "release" 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /lib/api/data/repository_detail.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter_github_search/api/data/owner.dart'; 3 | import 'package:freezed_annotation/freezed_annotation.dart'; 4 | 5 | part 'repository_detail.freezed.dart'; 6 | part 'repository_detail.g.dart'; 7 | 8 | @freezed 9 | class RepositoryDetail with _$RepositoryDetail { 10 | const factory RepositoryDetail({ 11 | required String name, 12 | required Owner owner, 13 | required int stargazersCount, 14 | required int forksCount, 15 | required int openIssuesCount, 16 | required int subscribersCount, 17 | String? description, 18 | String? language, 19 | }) = _RepositoryDetail; 20 | 21 | factory RepositoryDetail.fromJson(Map json) => 22 | _$RepositoryDetailFromJson(json); 23 | } 24 | -------------------------------------------------------------------------------- /lib/ui/component/error_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ErrorView extends StatelessWidget { 4 | const ErrorView({Key? key, this.message = 'エラーが発生しました。こりゃ大変だぁ。'}) 5 | : super(key: key); 6 | 7 | final String message; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Center( 12 | child: Column( 13 | mainAxisSize: MainAxisSize.min, 14 | children: [ 15 | Icon( 16 | Icons.error, 17 | size: 80, 18 | color: Theme.of(context).colorScheme.error, 19 | ), 20 | Text( 21 | message, 22 | style: const TextStyle( 23 | fontWeight: FontWeight.bold, 24 | ), 25 | textAlign: TextAlign.center, 26 | ) 27 | ], 28 | ), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/ui/page/search/search_page_navigator.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_github_search/ui/page/detail/detail_page.dart'; 3 | import 'package:flutter_github_search/ui/page/search/search_page_state.dart'; 4 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 5 | 6 | final searchPageNavigatorProvider = 7 | Provider((ref) => const SearchPageNavigator()); 8 | 9 | class SearchPageNavigator { 10 | const SearchPageNavigator(); 11 | Future pushDetailPage( 12 | BuildContext context, RepositorySummary repositorySummary) { 13 | return Navigator.push( 14 | context, 15 | MaterialPageRoute( 16 | builder: (_) => DetailPage( 17 | owner: repositorySummary.owner, 18 | name: repositorySummary.name, 19 | ), 20 | ), 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - FMDB (2.7.5): 4 | - FMDB/standard (= 2.7.5) 5 | - FMDB/standard (2.7.5) 6 | - path_provider_ios (0.0.1): 7 | - Flutter 8 | - sqflite (0.0.2): 9 | - Flutter 10 | - FMDB (>= 2.7.5) 11 | 12 | DEPENDENCIES: 13 | - Flutter (from `Flutter`) 14 | - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) 15 | - sqflite (from `.symlinks/plugins/sqflite/ios`) 16 | 17 | SPEC REPOS: 18 | trunk: 19 | - FMDB 20 | 21 | EXTERNAL SOURCES: 22 | Flutter: 23 | :path: Flutter 24 | path_provider_ios: 25 | :path: ".symlinks/plugins/path_provider_ios/ios" 26 | sqflite: 27 | :path: ".symlinks/plugins/sqflite/ios" 28 | 29 | SPEC CHECKSUMS: 30 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a 31 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a 32 | path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 33 | sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 34 | 35 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c 36 | 37 | COCOAPODS: 1.11.2 38 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | 48 | #fvm 49 | .fvm/flutter_sdk 50 | 51 | #freezed 52 | *.freezed.dart 53 | *.g.dart 54 | 55 | #mockit 56 | *.mocks.dart 57 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "flutter_github_search", 3 | "short_name": "flutter_github_search", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /lib/ui/page/search/search_page_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | 3 | import 'package:freezed_annotation/freezed_annotation.dart'; 4 | 5 | part 'search_page_state.freezed.dart'; 6 | 7 | @freezed 8 | class SearchState with _$SearchState { 9 | const factory SearchState.uninitialized() = SearchStateUninitialized; 10 | 11 | const factory SearchState.searching() = SearchStateSearching; 12 | 13 | const factory SearchState.success({ 14 | required List repositories, 15 | required String query, 16 | required int page, 17 | required bool hasNext, 18 | }) = SearchStateSuccess; 19 | 20 | const factory SearchState.fetchingNext({ 21 | required List repositories, 22 | required String query, 23 | required int page, 24 | }) = SearchStateFetchingNext; 25 | 26 | const factory SearchState.fail() = SearchStateFail; 27 | 28 | const factory SearchState.empty() = SearchStateEmpty; 29 | } 30 | 31 | @freezed 32 | class RepositorySummary with _$RepositorySummary { 33 | const factory RepositorySummary({ 34 | required String owner, 35 | required String name, 36 | required String imageUrl, 37 | }) = _RepositorySummary; 38 | } 39 | -------------------------------------------------------------------------------- /lib/ui/page/search/widgets/search_result_list_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_github_search/ui/component/pagination_list_view.dart'; 3 | import 'package:flutter_github_search/ui/page/search/notifier/search_state_notifier.dart'; 4 | import 'package:flutter_github_search/ui/page/search/search_page_state.dart'; 5 | import 'package:flutter_github_search/ui/page/search/widgets/search_result_list_tile.dart'; 6 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 7 | 8 | class SearchResultListView extends ConsumerWidget { 9 | const SearchResultListView({ 10 | Key? key, 11 | required this.repositories, 12 | required this.hasNext, 13 | }) : super(key: key); 14 | 15 | final List repositories; 16 | final bool hasNext; 17 | 18 | @override 19 | Widget build(BuildContext context, WidgetRef ref) { 20 | final notifier = ref.watch(searchStateNotifierProvider.notifier); 21 | return PaginationListView( 22 | itemCount: repositories.length, 23 | hasNext: hasNext, 24 | fetchNext: notifier.fetchNext, 25 | itemBuilder: (context, index) { 26 | return SearchResultListTile(repositorySummary: repositories[index]); 27 | }, 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/ui/component/pagination_list_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:flutter_github_search/ui/component/loading_view.dart'; 4 | 5 | class PaginationListView extends StatelessWidget { 6 | const PaginationListView({ 7 | Key? key, 8 | required this.itemCount, 9 | required this.hasNext, 10 | required this.fetchNext, 11 | required this.itemBuilder, 12 | }) : super(key: key); 13 | 14 | final int itemCount; 15 | final bool hasNext; 16 | final void Function() fetchNext; 17 | final Widget Function(BuildContext, int) itemBuilder; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return Scrollbar( 22 | child: NotificationListener( 23 | child: ListView.builder( 24 | itemCount: itemCount + (hasNext ? 1 : 0), 25 | itemBuilder: (context, index) { 26 | if (!hasNext || index < itemCount) { 27 | return itemBuilder(context, index); 28 | } 29 | return const LoadingView(); 30 | }, 31 | ), 32 | onNotification: (notification) { 33 | if (notification.metrics.atEdge && 34 | notification.metrics.extentAfter == 0) { 35 | fetchNext(); 36 | } 37 | return false; 38 | }, 39 | ), 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/ui/page/search/search_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_github_search/ui/component/error_view.dart'; 3 | import 'package:flutter_github_search/ui/component/loading_view.dart'; 4 | import 'package:flutter_github_search/ui/page/search/notifier/search_state_notifier.dart'; 5 | import 'package:flutter_github_search/ui/page/search/widgets/search_page_app_bar.dart'; 6 | import 'package:flutter_github_search/ui/page/search/widgets/search_result_list_view.dart'; 7 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 8 | 9 | class SearchPage extends ConsumerWidget { 10 | const SearchPage({Key? key}) : super(key: key); 11 | 12 | @override 13 | Widget build(BuildContext context, WidgetRef ref) { 14 | final searchState = ref.watch(searchStateNotifierProvider); 15 | return Scaffold( 16 | appBar: const SearchAppBar(), 17 | body: searchState.when( 18 | uninitialized: () => const SizedBox.shrink(), 19 | searching: () => const LoadingView(), 20 | fail: () => const ErrorView(), 21 | empty: () => const ErrorView(message: '検索結果は0件です'), 22 | fetchingNext: (repositories, query, page) => SearchResultListView( 23 | repositories: repositories, 24 | hasNext: true, 25 | ), 26 | success: (repositories, query, page, hasNext) => SearchResultListView( 27 | repositories: repositories, 28 | hasNext: hasNext, 29 | ), 30 | ), 31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/ui/page/search/widgets/search_result_list_tile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_github_search/ui/component/circle_image.dart'; 3 | import 'package:flutter_github_search/ui/page/search/search_page_navigator.dart'; 4 | import 'package:flutter_github_search/ui/page/search/search_page_state.dart'; 5 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 6 | 7 | class SearchResultListTile extends ConsumerWidget { 8 | const SearchResultListTile({Key? key, required this.repositorySummary}) 9 | : super(key: key); 10 | 11 | final RepositorySummary repositorySummary; 12 | static const _leadingSize = 56.0; 13 | static const _placeholder = Icon( 14 | Icons.person, 15 | size: _leadingSize, 16 | ); 17 | 18 | @override 19 | Widget build(BuildContext context, WidgetRef ref) { 20 | final searchPageNavigator = ref.watch(searchPageNavigatorProvider); 21 | return ListTile( 22 | leading: CircleImage( 23 | imageUrl: repositorySummary.imageUrl, 24 | placeholder: _placeholder, 25 | ), 26 | title: Text( 27 | repositorySummary.name, 28 | style: Theme.of(context).textTheme.headline6, 29 | ), 30 | subtitle: Text( 31 | repositorySummary.owner, 32 | style: Theme.of(context).textTheme.caption, 33 | ), 34 | minLeadingWidth: _leadingSize, 35 | onTap: () => 36 | searchPageNavigator.pushDetailPage(context, repositorySummary), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: "Test" 2 | on: 3 | pull_request: 4 | 5 | jobs: 6 | danger: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v2 10 | - uses: kuhnroyal/flutter-fvm-config-action@v1 11 | - uses: subosito/flutter-action@v2 12 | with: 13 | flutter-version: ${{ env.FLUTTER_VERSION }} 14 | cache: true 15 | cache-key: ${{ env.FLUTTER_VERSION }} 16 | - run: which flutter 17 | - name: bootstrap 18 | run: | 19 | flutter pub get 20 | flutter pub run build_runner build 21 | - name: Set up Ruby 22 | uses: ruby/setup-ruby@v1 23 | with: 24 | ruby-version: 2.6 25 | bundler-cache: true 26 | - name: Install Danger 27 | run: | 28 | gem install danger 29 | gem install danger-flutter_lint 30 | - name: Flutter analyze 31 | run: flutter analyze > flutter_analyze_report.txt 32 | - name: Run Danger 33 | if: ${{ always() }} 34 | run: danger 35 | env: 36 | DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} 37 | 38 | test: 39 | runs-on: ubuntu-latest 40 | steps: 41 | - uses: actions/checkout@v2 42 | - uses: kuhnroyal/flutter-fvm-config-action@v1 43 | - uses: subosito/flutter-action@v2 44 | with: 45 | flutter-version: ${{ env.FLUTTER_VERSION }} 46 | cache: true 47 | cache-key: ${{ env.FLUTTER_VERSION }} 48 | - run: which flutter 49 | - name: bootstrap 50 | run: | 51 | flutter pub get 52 | flutter pub run build_runner build 53 | - run: flutter test 54 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/ui/page/detail/detail_data.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter_github_search/api/data/repository_detail.dart' as api; 3 | import 'package:flutter_github_search/api/repository_detail_api.dart'; 4 | import 'package:freezed_annotation/freezed_annotation.dart'; 5 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 6 | 7 | part 'detail_data.freezed.dart'; 8 | 9 | @freezed 10 | class RepositoryDetail with _$RepositoryDetail { 11 | const factory RepositoryDetail({ 12 | required String owner, 13 | required String name, 14 | required String imageUrl, 15 | required String? language, 16 | required String? description, 17 | required int starCount, 18 | required int forksCount, 19 | required int watchersCount, 20 | required int issueCount, 21 | }) = _RepositoryDetail; 22 | } 23 | 24 | extension _Converter on api.RepositoryDetail { 25 | RepositoryDetail convert() { 26 | return RepositoryDetail( 27 | owner: owner.login, 28 | name: name, 29 | imageUrl: owner.avatarUrl, 30 | language: language, 31 | description: description, 32 | starCount: stargazersCount, 33 | forksCount: forksCount, 34 | watchersCount: subscribersCount, 35 | issueCount: openIssuesCount, 36 | ); 37 | } 38 | } 39 | 40 | @freezed 41 | class Argment with _$Argment { 42 | const factory Argment({ 43 | required String owner, 44 | required String name, 45 | }) = _Argment; 46 | } 47 | 48 | final repositoryDetailFutureProvider = FutureProvider.family 49 | .autoDispose((ref, arg) async { 50 | final api = ref.watch(repositoryApiProvider); 51 | 52 | return api.fetch(arg.owner, arg.name).then((value) => value.convert()); 53 | }); 54 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Flutter Github Search 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | flutter_github_search 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /lib/ui/page/search/widgets/search_page_app_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_github_search/ui/page/search/notifier/search_mode_notifier.dart'; 3 | import 'package:flutter_github_search/ui/page/search/notifier/search_state_notifier.dart'; 4 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 5 | 6 | class SearchAppBar extends ConsumerWidget implements PreferredSizeWidget { 7 | const SearchAppBar({Key? key}) : super(key: key); 8 | 9 | Icon get _searchIcon => const Icon(Icons.search); 10 | 11 | @override 12 | Size get preferredSize => const Size.fromHeight(kToolbarHeight); 13 | 14 | @override 15 | Widget build(BuildContext context, WidgetRef ref) { 16 | final isSearchMode = ref.watch(searchModeStateNotifier); 17 | return isSearchMode ? _buildSearchBar(ref) : _buildNormalBar(ref); 18 | } 19 | 20 | PreferredSizeWidget _buildNormalBar(WidgetRef ref) { 21 | final searchModeNotifier = ref.watch(searchModeStateNotifier.notifier); 22 | return AppBar( 23 | title: const Text('Github Search App'), 24 | actions: [ 25 | IconButton( 26 | onPressed: searchModeNotifier.toggle, 27 | icon: _searchIcon, 28 | ) 29 | ], 30 | ); 31 | } 32 | 33 | PreferredSizeWidget _buildSearchBar(WidgetRef ref) { 34 | final searchModeNotifier = ref.watch(searchModeStateNotifier.notifier); 35 | final searchStateNotifier = ref.watch(searchStateNotifierProvider.notifier); 36 | return AppBar( 37 | leading: _searchIcon, 38 | title: TextField( 39 | autofocus: true, 40 | decoration: const InputDecoration( 41 | hintText: '検索ワードを入力してください', 42 | ), 43 | textInputAction: TextInputAction.search, 44 | onSubmitted: searchStateNotifier.searchRepositories, 45 | ), 46 | actions: [ 47 | IconButton( 48 | onPressed: searchModeNotifier.toggle, 49 | icon: const Icon(Icons.close), 50 | ) 51 | ], 52 | ); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion flutter.compileSdkVersion 30 | 31 | compileOptions { 32 | sourceCompatibility JavaVersion.VERSION_1_8 33 | targetCompatibility JavaVersion.VERSION_1_8 34 | } 35 | 36 | kotlinOptions { 37 | jvmTarget = '1.8' 38 | } 39 | 40 | sourceSets { 41 | main.java.srcDirs += 'src/main/kotlin' 42 | } 43 | 44 | defaultConfig { 45 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 46 | applicationId "com.example.flutter_github_search" 47 | minSdkVersion flutter.minSdkVersion 48 | targetSdkVersion flutter.targetSdkVersion 49 | versionCode flutterVersionCode.toInteger() 50 | versionName flutterVersionName 51 | } 52 | 53 | buildTypes { 54 | release { 55 | // TODO: Add your own signing config for the release build. 56 | // Signing with the debug keys for now, so `flutter run --release` works. 57 | signingConfig signingConfigs.debug 58 | } 59 | } 60 | } 61 | 62 | flutter { 63 | source '../..' 64 | } 65 | 66 | dependencies { 67 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 68 | } 69 | -------------------------------------------------------------------------------- /test/api/data/data_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_github_search/api/data/repository_detail.dart'; 2 | import 'package:flutter_github_search/api/data/search_result.dart'; 3 | import 'package:flutter_test/flutter_test.dart'; 4 | 5 | void main() { 6 | test('Json deserialize to SearchResult', () { 7 | final json = { 8 | 'total_count': 40, 9 | 'incomplete_results': false, 10 | 'items': [ 11 | { 12 | 'name': 'swift', 13 | 'owner': { 14 | 'login': 'swift', 15 | 'avatar_url': 16 | 'https://avatars.githubusercontent.com/u/10639145?v=4', 17 | }, 18 | 'stargazers_count': 1, 19 | 'forks_count': 2, 20 | 'open_issues_count': 3, 21 | 'subscribers_count': 4, 22 | 'language': 'C++', 23 | 'description': 'description' 24 | } 25 | ] 26 | }; 27 | final result = SearchResult.fromJson(json); 28 | expect(result.totalCount, 40); 29 | expect(result.incompleteResults, false); 30 | expect(result.items.length, 1); 31 | 32 | expect(result.items.first.name, 'swift'); 33 | expect(result.items.first.owner.avatarUrl, 34 | 'https://avatars.githubusercontent.com/u/10639145?v=4'); 35 | expect(result.items.first.owner.login, 'swift'); 36 | }); 37 | 38 | test('Json deserialize to RepositoryDetail', () { 39 | final json = { 40 | 'name': 'swift', 41 | 'owner': { 42 | 'login': 'swift', 43 | 'avatar_url': 'https://avatars.githubusercontent.com/u/10639145?v=4', 44 | }, 45 | 'stargazers_count': 1, 46 | 'forks_count': 2, 47 | 'open_issues_count': 3, 48 | 'subscribers_count': 4, 49 | 'language': 'C++', 50 | 'description': 'description' 51 | }; 52 | 53 | final result = RepositoryDetail.fromJson(json); 54 | expect(result.name, 'swift'); 55 | expect(result.owner.avatarUrl, 56 | 'https://avatars.githubusercontent.com/u/10639145?v=4'); 57 | expect(result.owner.login, 'swift'); 58 | expect(result.stargazersCount, 1); 59 | expect(result.forksCount, 2); 60 | expect(result.openIssuesCount, 3); 61 | expect(result.subscribersCount, 4); 62 | expect(result.description, 'description'); 63 | expect(result.language, 'C++'); 64 | }); 65 | } 66 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/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/ui/page/search/notifier/search_state_notifier.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter_github_search/api/data/search_result.dart'; 3 | import 'package:flutter_github_search/api/search_api.dart'; 4 | import 'package:flutter_github_search/ui/page/search/search_page_state.dart'; 5 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 6 | 7 | final searchStateNotifierProvider = 8 | StateNotifierProvider.autoDispose( 9 | (ref) => SearchStateNotifier(ref.read)); 10 | 11 | class SearchStateNotifier extends StateNotifier { 12 | SearchStateNotifier(this._reade) : super(const SearchState.uninitialized()); 13 | 14 | final Reader _reade; 15 | SearchApi get _searchApi => _reade(searchApiProvider); 16 | 17 | Future searchRepositories(String query) async { 18 | if (state is SearchStateSearching) { 19 | return; 20 | } 21 | 22 | state = const SearchState.searching(); 23 | 24 | const page = 1; 25 | final SearchResult result; 26 | try { 27 | result = await _searchApi.search(query, page); 28 | } on Exception catch (e) { 29 | debugPrint('$e'); 30 | state = const SearchState.fail(); 31 | return; 32 | } 33 | 34 | if (result.items.isEmpty) { 35 | state = const SearchState.empty(); 36 | return; 37 | } 38 | 39 | state = SearchState.success( 40 | repositories: result.repositories, 41 | query: query, 42 | page: page, 43 | hasNext: result.hasNext, 44 | ); 45 | } 46 | 47 | Future fetchNext() async { 48 | if (state is SearchStateSearching || state is SearchStateFetchingNext) { 49 | return; 50 | } 51 | 52 | final currentState = state.maybeMap( 53 | success: (value) => value, 54 | orElse: () { 55 | AssertionError(); 56 | }, 57 | )!; 58 | 59 | final query = currentState.query; 60 | final page = currentState.page + 1; 61 | state = SearchState.fetchingNext( 62 | repositories: currentState.repositories, 63 | query: query, 64 | page: page, 65 | ); 66 | 67 | final SearchResult result; 68 | try { 69 | result = await _searchApi.search(query, page); 70 | } on Exception catch (e) { 71 | debugPrint('$e'); 72 | state = SearchState.success( 73 | repositories: currentState.repositories, 74 | query: query, 75 | page: page, 76 | hasNext: false, 77 | ); 78 | return; 79 | } 80 | 81 | state = SearchState.success( 82 | repositories: currentState.repositories + result.repositories, 83 | query: query, 84 | page: page, 85 | hasNext: result.hasNext, 86 | ); 87 | } 88 | 89 | @visibleForTesting 90 | set debugState(SearchState state) { 91 | assert(() { 92 | this.state = state; 93 | return true; 94 | }(), ''); 95 | } 96 | } 97 | 98 | extension Pagination on SearchResult { 99 | bool get hasNext => totalCount > items.length; 100 | 101 | List get repositories => items 102 | .map((repo) => RepositorySummary( 103 | owner: repo.owner.login, 104 | name: repo.name, 105 | imageUrl: repo.owner.avatarUrl, 106 | )) 107 | .toList(); 108 | } 109 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | flutter_github_search 33 | 34 | 35 | 36 | 39 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_github_search 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.15.1 <3.0.0" 22 | 23 | # Dependencies specify other packages that your package needs in order to work. 24 | # To automatically upgrade your package dependencies to the latest versions 25 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 26 | # dependencies can be manually updated by changing the version numbers below to 27 | # the latest version available on pub.dev. To see which dependencies have newer 28 | # versions available, run `flutter pub outdated`. 29 | dependencies: 30 | flutter: 31 | sdk: flutter 32 | 33 | 34 | # The following adds the Cupertino Icons font to your application. 35 | # Use with the CupertinoIcons class for iOS style icons. 36 | cupertino_icons: ^1.0.2 37 | freezed_annotation: any 38 | flutter_hooks: any 39 | hooks_riverpod: any 40 | retrofit: any 41 | dio: ^4.0.4 42 | mockito: any 43 | cached_network_image: any 44 | auto_size_text: any 45 | 46 | dev_dependencies: 47 | flutter_test: 48 | sdk: flutter 49 | 50 | # The "flutter_lints" package below contains a set of recommended lints to 51 | # encourage good coding practices. The lint set provided by the package is 52 | # activated in the `analysis_options.yaml` file located at the root of your 53 | # package. See that file for information about deactivating specific lint 54 | # rules and activating additional ones. 55 | flutter_lints: ^1.0.0 56 | pedantic_mono: any 57 | build_runner: any 58 | freezed: any 59 | json_serializable: any 60 | retrofit_generator: any 61 | 62 | # For information on the generic Dart part of this file, see the 63 | # following page: https://dart.dev/tools/pub/pubspec 64 | 65 | # The following section is specific to Flutter. 66 | flutter: 67 | 68 | # The following line ensures that the Material Icons font is 69 | # included with your application, so that you can use the icons in 70 | # the material Icons class. 71 | uses-material-design: true 72 | 73 | # To add assets to your application, add an assets section, like this: 74 | # assets: 75 | # - images/a_dot_burr.jpeg 76 | # - images/a_dot_ham.jpeg 77 | 78 | # An image asset can refer to one or more resolution-specific "variants", see 79 | # https://flutter.dev/assets-and-images/#resolution-aware. 80 | 81 | # For details regarding adding assets from package dependencies, see 82 | # https://flutter.dev/assets-and-images/#from-packages 83 | 84 | # To add custom fonts to your application, add a fonts section here, 85 | # in this "flutter" section. Each entry in this list should have a 86 | # "family" key with the font family name, and a "fonts" key with a 87 | # list giving the asset and other descriptors for the font. For 88 | # example: 89 | # fonts: 90 | # - family: Schyler 91 | # fonts: 92 | # - asset: fonts/Schyler-Regular.ttf 93 | # - asset: fonts/Schyler-Italic.ttf 94 | # style: italic 95 | # - family: Trajan Pro 96 | # fonts: 97 | # - asset: fonts/TrajanPro.ttf 98 | # - asset: fonts/TrajanPro_Bold.ttf 99 | # weight: 700 100 | # 101 | # For details regarding fonts from package dependencies, 102 | # see https://flutter.dev/custom-fonts/#from-packages 103 | 104 | import_sorter: 105 | emojis: true 106 | ignored_files: 107 | - /*.g.dart 108 | - /*.freezed.dart 109 | - /*.mocks.dart 110 | -------------------------------------------------------------------------------- /lib/ui/page/detail/detail_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:auto_size_text/auto_size_text.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_github_search/ui/component/circle_image.dart'; 4 | import 'package:flutter_github_search/ui/component/error_view.dart'; 5 | import 'package:flutter_github_search/ui/component/loading_view.dart'; 6 | import 'package:flutter_github_search/ui/page/detail/detail_data.dart'; 7 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 8 | 9 | class DetailPage extends HookConsumerWidget { 10 | const DetailPage({ 11 | Key? key, 12 | required this.owner, 13 | required this.name, 14 | }) : super(key: key); 15 | 16 | final String owner; 17 | final String name; 18 | 19 | @override 20 | Widget build(BuildContext context, WidgetRef ref) { 21 | return Scaffold( 22 | appBar: AppBar( 23 | title: const Text('Details'), 24 | ), 25 | body: _buildBody(context, ref), 26 | ); 27 | } 28 | 29 | Widget _buildBody(BuildContext context, WidgetRef ref) { 30 | final repositoryDetail = ref.watch( 31 | repositoryDetailFutureProvider(Argment(owner: owner, name: name))); 32 | 33 | return repositoryDetail.when(data: (data) { 34 | return _buildDataBody(context, data); 35 | }, error: (error, stackTrace) { 36 | return const ErrorView(); 37 | }, loading: () { 38 | return const LoadingView(); 39 | }); 40 | } 41 | 42 | Widget _buildDataBody( 43 | BuildContext context, RepositoryDetail repositoryDetail) { 44 | return _buildDataColumn( 45 | children: [ 46 | _buildOwnerImage(context, repositoryDetail.imageUrl), 47 | const SizedBox(height: 15), 48 | _buildAutoTextHeadline2(context, repositoryDetail.name), 49 | const SizedBox(height: 15), 50 | _buildAutoTextHeadline6(context, repositoryDetail.owner), 51 | const SizedBox(height: 15), 52 | if (repositoryDetail.description != null) 53 | _buildTextCaption(context, repositoryDetail.description!), 54 | const SizedBox(height: 15), 55 | _buildAutoTextHeadline6(context, repositoryDetail.language ?? ''), 56 | const SizedBox(height: 60), 57 | _buildIconWithText(context, const Icon(Icons.copy), 58 | '${repositoryDetail.forksCount} forks'), 59 | const SizedBox(height: 15), 60 | _buildIconWithText(context, const Icon(Icons.star), 61 | '${repositoryDetail.starCount} stars'), 62 | const SizedBox(height: 15), 63 | _buildIconWithText(context, const Icon(Icons.remove_red_eye), 64 | '${repositoryDetail.watchersCount} watchers'), 65 | const SizedBox(height: 15), 66 | _buildIconWithText(context, const Icon(Icons.remove_circle_sharp), 67 | 'open ${repositoryDetail.issueCount} issues'), 68 | ], 69 | ); 70 | } 71 | 72 | Widget _buildDataColumn({required List children}) { 73 | return Center( 74 | child: SingleChildScrollView( 75 | padding: const EdgeInsets.only(left: 16, right: 16), 76 | child: Column( 77 | mainAxisSize: MainAxisSize.min, 78 | children: children, 79 | ), 80 | ), 81 | ); 82 | } 83 | 84 | Widget _buildOwnerImage(BuildContext context, String imageUrl) { 85 | const imageWidthFactor = 0.5; 86 | final size = MediaQuery.of(context).size; 87 | final placeholder = Icon( 88 | Icons.person, 89 | size: size.width * imageWidthFactor, 90 | ); 91 | return FractionallySizedBox( 92 | widthFactor: imageWidthFactor, 93 | alignment: FractionalOffset.center, 94 | child: CircleImage( 95 | imageUrl: imageUrl, 96 | placeholder: placeholder, 97 | ), 98 | ); 99 | } 100 | 101 | Widget _buildAutoTextHeadline2(BuildContext context, String text) { 102 | return AutoSizeText( 103 | text, 104 | style: Theme.of(context).textTheme.headline2, 105 | maxLines: 1, 106 | ); 107 | } 108 | 109 | Widget _buildAutoTextHeadline6(BuildContext context, String text) { 110 | return AutoSizeText( 111 | text, 112 | style: Theme.of(context).textTheme.headline6, 113 | maxLines: 1, 114 | ); 115 | } 116 | 117 | Widget _buildTextCaption(BuildContext context, String text) { 118 | return Text( 119 | text, 120 | style: Theme.of(context).textTheme.caption, 121 | ); 122 | } 123 | 124 | Widget _buildIconWithText(BuildContext context, Icon icon, String text) { 125 | return Row( 126 | mainAxisSize: MainAxisSize.min, 127 | children: [ 128 | icon, 129 | const SizedBox(width: 5), 130 | Text( 131 | text, 132 | style: Theme.of(context).textTheme.bodyText1, 133 | ), 134 | ], 135 | ); 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /test/page/search/seach_page_state_notifier_test.dart: -------------------------------------------------------------------------------- 1 | // 🎯 Dart imports: 2 | import 'dart:convert'; 3 | 4 | import 'package:flutter_github_search/api/data/search_result.dart'; 5 | import 'package:flutter_github_search/api/search_api.dart'; 6 | import 'package:flutter_github_search/ui/page/search/notifier/search_state_notifier.dart'; 7 | import 'package:flutter_github_search/ui/page/search/search_page_state.dart'; 8 | import 'package:flutter_test/flutter_test.dart'; 9 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 10 | import 'package:mockito/annotations.dart'; 11 | import 'package:mockito/mockito.dart'; 12 | 13 | import '../../dummy/dummy_search_result.dart'; 14 | import '../../helper.dart'; 15 | import 'seach_page_state_notifier_test.mocks.dart'; 16 | 17 | late MockSearchApi _mockSearchApi; 18 | late ProviderContainer _container; 19 | final SearchResult _dummySearchResult = () { 20 | final map = json.decode(dummySearchResponse) as Map; 21 | return SearchResult.fromJson(map); 22 | }(); 23 | 24 | @GenerateMocks([SearchApi]) 25 | void main() { 26 | setUp(() { 27 | _mockSearchApi = MockSearchApi(); 28 | when(_mockSearchApi.search(any, any)) 29 | .thenAnswer((realInvocation) => Future.value(_dummySearchResult)); 30 | 31 | _container = ProviderContainer( 32 | overrides: [searchApiProvider.overrideWithValue(_mockSearchApi)], 33 | ); 34 | }); 35 | 36 | tearDown(() { 37 | _container.dispose(); 38 | }); 39 | 40 | test('searchRepositories success', () async { 41 | final notifier = _container.read(searchStateNotifierProvider.notifier); 42 | 43 | final listener = Listener(); 44 | _container.listen( 45 | searchStateNotifierProvider, 46 | listener, 47 | fireImmediately: true, 48 | ); 49 | 50 | // given 51 | // when 52 | await notifier.searchRepositories('query'); 53 | 54 | // then 55 | final repositories = _dummySearchResult.items 56 | .map((e) => RepositorySummary( 57 | owner: e.owner.login, 58 | name: e.name, 59 | imageUrl: e.owner.avatarUrl, 60 | )) 61 | .toList(); 62 | 63 | verifyInOrder([ 64 | listener(any, const SearchState.uninitialized()), 65 | listener(any, const SearchState.searching()), 66 | listener( 67 | any, 68 | SearchState.success( 69 | repositories: repositories, 70 | query: 'query', 71 | page: 1, 72 | hasNext: true, 73 | ), 74 | ), 75 | ]); 76 | verifyNoMoreInteractions(listener); 77 | }); 78 | 79 | test('searchRepositories fail', () async { 80 | final notifier = _container.read(searchStateNotifierProvider.notifier); 81 | 82 | final listener = Listener(); 83 | _container.listen( 84 | searchStateNotifierProvider, 85 | listener, 86 | fireImmediately: true, 87 | ); 88 | 89 | // given 90 | when(_mockSearchApi.search(any, any)) 91 | .thenAnswer((realInvocation) => Future.error(Exception())); 92 | 93 | // when 94 | await notifier.searchRepositories('query'); 95 | 96 | // then 97 | verifyInOrder([ 98 | listener(any, const SearchState.uninitialized()), 99 | listener(any, const SearchState.searching()), 100 | listener(any, const SearchState.fail()), 101 | ]); 102 | verifyNoMoreInteractions(listener); 103 | }); 104 | 105 | test('searchRepositories empty', () async { 106 | final notifier = _container.read(searchStateNotifierProvider.notifier); 107 | 108 | final listener = Listener(); 109 | _container.listen( 110 | searchStateNotifierProvider, 111 | listener, 112 | fireImmediately: true, 113 | ); 114 | 115 | // given 116 | when(_mockSearchApi.search(any, any)) 117 | .thenAnswer((realInvocation) => Future.value(const SearchResult( 118 | totalCount: 0, 119 | incompleteResults: false, 120 | items: [], 121 | ))); 122 | 123 | // when 124 | await notifier.searchRepositories('query'); 125 | 126 | // then 127 | verifyInOrder([ 128 | listener(any, const SearchState.uninitialized()), 129 | listener(any, const SearchState.searching()), 130 | listener(any, const SearchState.empty()), 131 | ]); 132 | verifyNoMoreInteractions(listener); 133 | }); 134 | 135 | test('fetchNext success', () async { 136 | final notifier = _container.read(searchStateNotifierProvider.notifier); 137 | 138 | final listener = Listener(); 139 | _container.listen( 140 | searchStateNotifierProvider, 141 | listener, 142 | fireImmediately: true, 143 | ); 144 | 145 | // given 146 | notifier.debugState = const SearchState.success( 147 | repositories: [], 148 | query: 'query', 149 | page: 1, 150 | hasNext: true, 151 | ); 152 | 153 | // when 154 | await notifier.fetchNext(); 155 | 156 | // then 157 | final repositories = _dummySearchResult.items 158 | .map((e) => RepositorySummary( 159 | owner: e.owner.login, 160 | name: e.name, 161 | imageUrl: e.owner.avatarUrl, 162 | )) 163 | .toList(); 164 | 165 | verifyInOrder([ 166 | listener(any, const SearchState.uninitialized()), 167 | listener( 168 | any, 169 | const SearchState.success( 170 | repositories: [], 171 | query: 'query', 172 | page: 1, 173 | hasNext: true, 174 | ), 175 | ), 176 | listener( 177 | any, 178 | const SearchState.fetchingNext( 179 | repositories: [], 180 | query: 'query', 181 | page: 2, 182 | ), 183 | ), 184 | listener( 185 | any, 186 | SearchState.success( 187 | repositories: repositories, 188 | query: 'query', 189 | page: 2, 190 | hasNext: true, 191 | ), 192 | ), 193 | ]); 194 | verifyNoMoreInteractions(listener); 195 | }); 196 | 197 | test('fetchNext fail', () async { 198 | final notifier = _container.read(searchStateNotifierProvider.notifier); 199 | 200 | final listener = Listener(); 201 | _container.listen( 202 | searchStateNotifierProvider, 203 | listener, 204 | fireImmediately: true, 205 | ); 206 | 207 | // given 208 | notifier.debugState = const SearchState.success( 209 | repositories: [], 210 | query: 'query', 211 | page: 1, 212 | hasNext: true, 213 | ); 214 | when(_mockSearchApi.search(any, any)) 215 | .thenAnswer((realInvocation) => Future.error(Exception())); 216 | 217 | // when 218 | await notifier.fetchNext(); 219 | 220 | // then 221 | verifyInOrder([ 222 | listener(any, const SearchState.uninitialized()), 223 | listener( 224 | any, 225 | const SearchState.success( 226 | repositories: [], 227 | query: 'query', 228 | page: 1, 229 | hasNext: true, 230 | ), 231 | ), 232 | listener( 233 | any, 234 | const SearchState.fetchingNext( 235 | repositories: [], 236 | query: 'query', 237 | page: 2, 238 | ), 239 | ), 240 | listener( 241 | any, 242 | const SearchState.success( 243 | repositories: [], 244 | query: 'query', 245 | page: 2, 246 | hasNext: false, 247 | ), 248 | ), 249 | ]); 250 | verifyNoMoreInteractions(listener); 251 | }); 252 | } 253 | -------------------------------------------------------------------------------- /test/dummy/dummy_search_result.dart: -------------------------------------------------------------------------------- 1 | const dummySearchResponse = ''' 2 | { 3 | "total_count": 342183, 4 | "incomplete_results": false, 5 | "items": [ 6 | { 7 | "id": 31792824, 8 | "node_id": "MDEwOlJlcG9zaXRvcnkzMTc5MjgyNA==", 9 | "name": "flutter", 10 | "full_name": "flutter/flutter", 11 | "private": false, 12 | "owner": { 13 | "login": "flutter", 14 | "id": 14101776, 15 | "node_id": "MDEyOk9yZ2FuaXphdGlvbjE0MTAxNzc2", 16 | "avatar_url": "https://avatars.githubusercontent.com/u/14101776?v=4", 17 | "gravatar_id": "", 18 | "url": "https://api.github.com/users/flutter", 19 | "html_url": "https://github.com/flutter", 20 | "followers_url": "https://api.github.com/users/flutter/followers", 21 | "following_url": "https://api.github.com/users/flutter/following{/other_user}", 22 | "gists_url": "https://api.github.com/users/flutter/gists{/gist_id}", 23 | "starred_url": "https://api.github.com/users/flutter/starred{/owner}{/repo}", 24 | "subscriptions_url": "https://api.github.com/users/flutter/subscriptions", 25 | "organizations_url": "https://api.github.com/users/flutter/orgs", 26 | "repos_url": "https://api.github.com/users/flutter/repos", 27 | "events_url": "https://api.github.com/users/flutter/events{/privacy}", 28 | "received_events_url": "https://api.github.com/users/flutter/received_events", 29 | "type": "Organization", 30 | "site_admin": false 31 | }, 32 | "html_url": "https://github.com/flutter/flutter", 33 | "description": "Flutter makes it easy and fast to build beautiful apps for mobile and beyond", 34 | "fork": false, 35 | "url": "https://api.github.com/repos/flutter/flutter", 36 | "forks_url": "https://api.github.com/repos/flutter/flutter/forks", 37 | "keys_url": "https://api.github.com/repos/flutter/flutter/keys{/key_id}", 38 | "collaborators_url": "https://api.github.com/repos/flutter/flutter/collaborators{/collaborator}", 39 | "teams_url": "https://api.github.com/repos/flutter/flutter/teams", 40 | "hooks_url": "https://api.github.com/repos/flutter/flutter/hooks", 41 | "issue_events_url": "https://api.github.com/repos/flutter/flutter/issues/events{/number}", 42 | "events_url": "https://api.github.com/repos/flutter/flutter/events", 43 | "assignees_url": "https://api.github.com/repos/flutter/flutter/assignees{/user}", 44 | "branches_url": "https://api.github.com/repos/flutter/flutter/branches{/branch}", 45 | "tags_url": "https://api.github.com/repos/flutter/flutter/tags", 46 | "blobs_url": "https://api.github.com/repos/flutter/flutter/git/blobs{/sha}", 47 | "git_tags_url": "https://api.github.com/repos/flutter/flutter/git/tags{/sha}", 48 | "git_refs_url": "https://api.github.com/repos/flutter/flutter/git/refs{/sha}", 49 | "trees_url": "https://api.github.com/repos/flutter/flutter/git/trees{/sha}", 50 | "statuses_url": "https://api.github.com/repos/flutter/flutter/statuses/{sha}", 51 | "languages_url": "https://api.github.com/repos/flutter/flutter/languages", 52 | "stargazers_url": "https://api.github.com/repos/flutter/flutter/stargazers", 53 | "contributors_url": "https://api.github.com/repos/flutter/flutter/contributors", 54 | "subscribers_url": "https://api.github.com/repos/flutter/flutter/subscribers", 55 | "subscription_url": "https://api.github.com/repos/flutter/flutter/subscription", 56 | "commits_url": "https://api.github.com/repos/flutter/flutter/commits{/sha}", 57 | "git_commits_url": "https://api.github.com/repos/flutter/flutter/git/commits{/sha}", 58 | "comments_url": "https://api.github.com/repos/flutter/flutter/comments{/number}", 59 | "issue_comment_url": "https://api.github.com/repos/flutter/flutter/issues/comments{/number}", 60 | "contents_url": "https://api.github.com/repos/flutter/flutter/contents/{+path}", 61 | "compare_url": "https://api.github.com/repos/flutter/flutter/compare/{base}...{head}", 62 | "merges_url": "https://api.github.com/repos/flutter/flutter/merges", 63 | "archive_url": "https://api.github.com/repos/flutter/flutter/{archive_format}{/ref}", 64 | "downloads_url": "https://api.github.com/repos/flutter/flutter/downloads", 65 | "issues_url": "https://api.github.com/repos/flutter/flutter/issues{/number}", 66 | "pulls_url": "https://api.github.com/repos/flutter/flutter/pulls{/number}", 67 | "milestones_url": "https://api.github.com/repos/flutter/flutter/milestones{/number}", 68 | "notifications_url": "https://api.github.com/repos/flutter/flutter/notifications{?since,all,participating}", 69 | "labels_url": "https://api.github.com/repos/flutter/flutter/labels{/name}", 70 | "releases_url": "https://api.github.com/repos/flutter/flutter/releases{/id}", 71 | "deployments_url": "https://api.github.com/repos/flutter/flutter/deployments", 72 | "created_at": "2015-03-06T22:54:58Z", 73 | "updated_at": "2022-02-15T21:39:16Z", 74 | "pushed_at": "2022-02-15T21:30:18Z", 75 | "git_url": "git://github.com/flutter/flutter.git", 76 | "ssh_url": "git@github.com:flutter/flutter.git", 77 | "clone_url": "https://github.com/flutter/flutter.git", 78 | "svn_url": "https://github.com/flutter/flutter", 79 | "homepage": "https://flutter.dev", 80 | "size": 183998, 81 | "stargazers_count": 136475, 82 | "watchers_count": 136475, 83 | "language": "Dart", 84 | "has_issues": true, 85 | "has_projects": true, 86 | "has_downloads": true, 87 | "has_wiki": true, 88 | "has_pages": false, 89 | "forks_count": 20707, 90 | "mirror_url": null, 91 | "archived": false, 92 | "disabled": false, 93 | "open_issues_count": 10345, 94 | "license": { 95 | "key": "bsd-3-clause", 96 | "name": "BSD 3-Clause \\"New\\" or \\"Revised\\" License", 97 | "spdx_id": "BSD-3-Clause", 98 | "url": "https://api.github.com/licenses/bsd-3-clause", 99 | "node_id": "MDc6TGljZW5zZTU=" 100 | }, 101 | "allow_forking": true, 102 | "is_template": false, 103 | "topics": [ 104 | "android", 105 | "app-framework", 106 | "dart", 107 | "dart-platform", 108 | "desktop", 109 | "fuchsia", 110 | "ios", 111 | "linux-desktop", 112 | "macos", 113 | "material-design", 114 | "mobile", 115 | "skia", 116 | "web", 117 | "web-framework", 118 | "windows" 119 | ], 120 | "visibility": "public", 121 | "forks": 20707, 122 | "open_issues": 10345, 123 | "watchers": 136475, 124 | "default_branch": "master", 125 | "score": 1.0 126 | }, 127 | { 128 | "id": 88650014, 129 | "node_id": "MDEwOlJlcG9zaXRvcnk4ODY1MDAxNA==", 130 | "name": "plugins", 131 | "full_name": "flutter/plugins", 132 | "private": false, 133 | "owner": { 134 | "login": "flutter", 135 | "id": 14101776, 136 | "node_id": "MDEyOk9yZ2FuaXphdGlvbjE0MTAxNzc2", 137 | "avatar_url": "https://avatars.githubusercontent.com/u/14101776?v=4", 138 | "gravatar_id": "", 139 | "url": "https://api.github.com/users/flutter", 140 | "html_url": "https://github.com/flutter", 141 | "followers_url": "https://api.github.com/users/flutter/followers", 142 | "following_url": "https://api.github.com/users/flutter/following{/other_user}", 143 | "gists_url": "https://api.github.com/users/flutter/gists{/gist_id}", 144 | "starred_url": "https://api.github.com/users/flutter/starred{/owner}{/repo}", 145 | "subscriptions_url": "https://api.github.com/users/flutter/subscriptions", 146 | "organizations_url": "https://api.github.com/users/flutter/orgs", 147 | "repos_url": "https://api.github.com/users/flutter/repos", 148 | "events_url": "https://api.github.com/users/flutter/events{/privacy}", 149 | "received_events_url": "https://api.github.com/users/flutter/received_events", 150 | "type": "Organization", 151 | "site_admin": false 152 | }, 153 | "html_url": "https://github.com/flutter/plugins", 154 | "description": "Plugins for Flutter maintained by the Flutter team", 155 | "fork": false, 156 | "url": "https://api.github.com/repos/flutter/plugins", 157 | "forks_url": "https://api.github.com/repos/flutter/plugins/forks", 158 | "keys_url": "https://api.github.com/repos/flutter/plugins/keys{/key_id}", 159 | "collaborators_url": "https://api.github.com/repos/flutter/plugins/collaborators{/collaborator}", 160 | "teams_url": "https://api.github.com/repos/flutter/plugins/teams", 161 | "hooks_url": "https://api.github.com/repos/flutter/plugins/hooks", 162 | "issue_events_url": "https://api.github.com/repos/flutter/plugins/issues/events{/number}", 163 | "events_url": "https://api.github.com/repos/flutter/plugins/events", 164 | "assignees_url": "https://api.github.com/repos/flutter/plugins/assignees{/user}", 165 | "branches_url": "https://api.github.com/repos/flutter/plugins/branches{/branch}", 166 | "tags_url": "https://api.github.com/repos/flutter/plugins/tags", 167 | "blobs_url": "https://api.github.com/repos/flutter/plugins/git/blobs{/sha}", 168 | "git_tags_url": "https://api.github.com/repos/flutter/plugins/git/tags{/sha}", 169 | "git_refs_url": "https://api.github.com/repos/flutter/plugins/git/refs{/sha}", 170 | "trees_url": "https://api.github.com/repos/flutter/plugins/git/trees{/sha}", 171 | "statuses_url": "https://api.github.com/repos/flutter/plugins/statuses/{sha}", 172 | "languages_url": "https://api.github.com/repos/flutter/plugins/languages", 173 | "stargazers_url": "https://api.github.com/repos/flutter/plugins/stargazers", 174 | "contributors_url": "https://api.github.com/repos/flutter/plugins/contributors", 175 | "subscribers_url": "https://api.github.com/repos/flutter/plugins/subscribers", 176 | "subscription_url": "https://api.github.com/repos/flutter/plugins/subscription", 177 | "commits_url": "https://api.github.com/repos/flutter/plugins/commits{/sha}", 178 | "git_commits_url": "https://api.github.com/repos/flutter/plugins/git/commits{/sha}", 179 | "comments_url": "https://api.github.com/repos/flutter/plugins/comments{/number}", 180 | "issue_comment_url": "https://api.github.com/repos/flutter/plugins/issues/comments{/number}", 181 | "contents_url": "https://api.github.com/repos/flutter/plugins/contents/{+path}", 182 | "compare_url": "https://api.github.com/repos/flutter/plugins/compare/{base}...{head}", 183 | "merges_url": "https://api.github.com/repos/flutter/plugins/merges", 184 | "archive_url": "https://api.github.com/repos/flutter/plugins/{archive_format}{/ref}", 185 | "downloads_url": "https://api.github.com/repos/flutter/plugins/downloads", 186 | "issues_url": "https://api.github.com/repos/flutter/plugins/issues{/number}", 187 | "pulls_url": "https://api.github.com/repos/flutter/plugins/pulls{/number}", 188 | "milestones_url": "https://api.github.com/repos/flutter/plugins/milestones{/number}", 189 | "notifications_url": "https://api.github.com/repos/flutter/plugins/notifications{?since,all,participating}", 190 | "labels_url": "https://api.github.com/repos/flutter/plugins/labels{/name}", 191 | "releases_url": "https://api.github.com/repos/flutter/plugins/releases{/id}", 192 | "deployments_url": "https://api.github.com/repos/flutter/plugins/deployments", 193 | "created_at": "2017-04-18T17:02:37Z", 194 | "updated_at": "2022-02-15T17:18:36Z", 195 | "pushed_at": "2022-02-15T21:32:03Z", 196 | "git_url": "git://github.com/flutter/plugins.git", 197 | "ssh_url": "git@github.com:flutter/plugins.git", 198 | "clone_url": "https://github.com/flutter/plugins.git", 199 | "svn_url": "https://github.com/flutter/plugins", 200 | "homepage": "https://flutter.dev/", 201 | "size": 29003, 202 | "stargazers_count": 15182, 203 | "watchers_count": 15182, 204 | "language": "Dart", 205 | "has_issues": false, 206 | "has_projects": true, 207 | "has_downloads": true, 208 | "has_wiki": false, 209 | "has_pages": false, 210 | "forks_count": 8503, 211 | "mirror_url": null, 212 | "archived": false, 213 | "disabled": false, 214 | "open_issues_count": 69, 215 | "license": { 216 | "key": "bsd-3-clause", 217 | "name": "BSD 3-Clause \\"New\\" or \\"Revised\\" License", 218 | "spdx_id": "BSD-3-Clause", 219 | "url": "https://api.github.com/licenses/bsd-3-clause", 220 | "node_id": "MDc6TGljZW5zZTU=" 221 | }, 222 | "allow_forking": true, 223 | "is_template": false, 224 | "topics": [ 225 | "android", 226 | "dart", 227 | "flutter", 228 | "flutter-plugin", 229 | "ios", 230 | "plugin" 231 | ], 232 | "visibility": "public", 233 | "forks": 8503, 234 | "open_issues": 69, 235 | "watchers": 15182, 236 | "default_branch": "main", 237 | "score": 1.0 238 | }, 239 | { 240 | "id": 129388994, 241 | "node_id": "MDEwOlJlcG9zaXRvcnkxMjkzODg5OTQ=", 242 | "name": "FlutterExampleApps", 243 | "full_name": "iampawan/FlutterExampleApps", 244 | "private": false, 245 | "owner": { 246 | "login": "iampawan", 247 | "id": 12619420, 248 | "node_id": "MDQ6VXNlcjEyNjE5NDIw", 249 | "avatar_url": "https://avatars.githubusercontent.com/u/12619420?v=4", 250 | "gravatar_id": "", 251 | "url": "https://api.github.com/users/iampawan", 252 | "html_url": "https://github.com/iampawan", 253 | "followers_url": "https://api.github.com/users/iampawan/followers", 254 | "following_url": "https://api.github.com/users/iampawan/following{/other_user}", 255 | "gists_url": "https://api.github.com/users/iampawan/gists{/gist_id}", 256 | "starred_url": "https://api.github.com/users/iampawan/starred{/owner}{/repo}", 257 | "subscriptions_url": "https://api.github.com/users/iampawan/subscriptions", 258 | "organizations_url": "https://api.github.com/users/iampawan/orgs", 259 | "repos_url": "https://api.github.com/users/iampawan/repos", 260 | "events_url": "https://api.github.com/users/iampawan/events{/privacy}", 261 | "received_events_url": "https://api.github.com/users/iampawan/received_events", 262 | "type": "User", 263 | "site_admin": false 264 | }, 265 | "html_url": "https://github.com/iampawan/FlutterExampleApps", 266 | "description": "[Example APPS] Basic Flutter apps, for flutter devs.", 267 | "fork": false, 268 | "url": "https://api.github.com/repos/iampawan/FlutterExampleApps", 269 | "forks_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/forks", 270 | "keys_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/keys{/key_id}", 271 | "collaborators_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/collaborators{/collaborator}", 272 | "teams_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/teams", 273 | "hooks_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/hooks", 274 | "issue_events_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/issues/events{/number}", 275 | "events_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/events", 276 | "assignees_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/assignees{/user}", 277 | "branches_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/branches{/branch}", 278 | "tags_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/tags", 279 | "blobs_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/git/blobs{/sha}", 280 | "git_tags_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/git/tags{/sha}", 281 | "git_refs_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/git/refs{/sha}", 282 | "trees_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/git/trees{/sha}", 283 | "statuses_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/statuses/{sha}", 284 | "languages_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/languages", 285 | "stargazers_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/stargazers", 286 | "contributors_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/contributors", 287 | "subscribers_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/subscribers", 288 | "subscription_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/subscription", 289 | "commits_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/commits{/sha}", 290 | "git_commits_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/git/commits{/sha}", 291 | "comments_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/comments{/number}", 292 | "issue_comment_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/issues/comments{/number}", 293 | "contents_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/contents/{+path}", 294 | "compare_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/compare/{base}...{head}", 295 | "merges_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/merges", 296 | "archive_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/{archive_format}{/ref}", 297 | "downloads_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/downloads", 298 | "issues_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/issues{/number}", 299 | "pulls_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/pulls{/number}", 300 | "milestones_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/milestones{/number}", 301 | "notifications_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/notifications{?since,all,participating}", 302 | "labels_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/labels{/name}", 303 | "releases_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/releases{/id}", 304 | "deployments_url": "https://api.github.com/repos/iampawan/FlutterExampleApps/deployments", 305 | "created_at": "2018-04-13T10:47:06Z", 306 | "updated_at": "2022-02-15T18:29:25Z", 307 | "pushed_at": "2021-10-14T11:58:13Z", 308 | "git_url": "git://github.com/iampawan/FlutterExampleApps.git", 309 | "ssh_url": "git@github.com:iampawan/FlutterExampleApps.git", 310 | "clone_url": "https://github.com/iampawan/FlutterExampleApps.git", 311 | "svn_url": "https://github.com/iampawan/FlutterExampleApps", 312 | "homepage": null, 313 | "size": 112899, 314 | "stargazers_count": 16250, 315 | "watchers_count": 16250, 316 | "language": "Dart", 317 | "has_issues": true, 318 | "has_projects": true, 319 | "has_downloads": true, 320 | "has_wiki": true, 321 | "has_pages": false, 322 | "forks_count": 3252, 323 | "mirror_url": null, 324 | "archived": false, 325 | "disabled": false, 326 | "open_issues_count": 23, 327 | "license": null, 328 | "allow_forking": true, 329 | "is_template": false, 330 | "topics": [ 331 | "android", 332 | "apps", 333 | "cross-platform", 334 | "dart", 335 | "dartlang", 336 | "flutter", 337 | "flutter-apps", 338 | "flutter-plugin", 339 | "ios", 340 | "material-design" 341 | ], 342 | "visibility": "public", 343 | "forks": 3252, 344 | "open_issues": 23, 345 | "watchers": 16250, 346 | "default_branch": "master", 347 | "score": 1.0 348 | } 349 | ] 350 | } 351 | '''; 352 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "36.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "3.3.1" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.3.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.8.2" 32 | auto_size_text: 33 | dependency: "direct main" 34 | description: 35 | name: auto_size_text 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "3.0.0" 39 | boolean_selector: 40 | dependency: transitive 41 | description: 42 | name: boolean_selector 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.1.0" 46 | build: 47 | dependency: transitive 48 | description: 49 | name: build 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.2.1" 53 | build_config: 54 | dependency: transitive 55 | description: 56 | name: build_config 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.0.0" 60 | build_daemon: 61 | dependency: transitive 62 | description: 63 | name: build_daemon 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "3.0.1" 67 | build_resolvers: 68 | dependency: transitive 69 | description: 70 | name: build_resolvers 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.0.6" 74 | build_runner: 75 | dependency: "direct dev" 76 | description: 77 | name: build_runner 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "2.1.7" 81 | build_runner_core: 82 | dependency: transitive 83 | description: 84 | name: build_runner_core 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "7.2.3" 88 | built_collection: 89 | dependency: transitive 90 | description: 91 | name: built_collection 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "5.1.1" 95 | built_value: 96 | dependency: transitive 97 | description: 98 | name: built_value 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "8.1.4" 102 | cached_network_image: 103 | dependency: "direct main" 104 | description: 105 | name: cached_network_image 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "3.2.0" 109 | cached_network_image_platform_interface: 110 | dependency: transitive 111 | description: 112 | name: cached_network_image_platform_interface 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.0.0" 116 | cached_network_image_web: 117 | dependency: transitive 118 | description: 119 | name: cached_network_image_web 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.0.1" 123 | characters: 124 | dependency: transitive 125 | description: 126 | name: characters 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.2.0" 130 | charcode: 131 | dependency: transitive 132 | description: 133 | name: charcode 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "1.3.1" 137 | checked_yaml: 138 | dependency: transitive 139 | description: 140 | name: checked_yaml 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "2.0.1" 144 | clock: 145 | dependency: transitive 146 | description: 147 | name: clock 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "1.1.0" 151 | code_builder: 152 | dependency: transitive 153 | description: 154 | name: code_builder 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "4.1.0" 158 | collection: 159 | dependency: transitive 160 | description: 161 | name: collection 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "1.15.0" 165 | convert: 166 | dependency: transitive 167 | description: 168 | name: convert 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "3.0.1" 172 | crypto: 173 | dependency: transitive 174 | description: 175 | name: crypto 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "3.0.1" 179 | cupertino_icons: 180 | dependency: "direct main" 181 | description: 182 | name: cupertino_icons 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "1.0.4" 186 | dart_style: 187 | dependency: transitive 188 | description: 189 | name: dart_style 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "2.2.1" 193 | dio: 194 | dependency: "direct main" 195 | description: 196 | name: dio 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "4.0.4" 200 | fake_async: 201 | dependency: transitive 202 | description: 203 | name: fake_async 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "1.2.0" 207 | ffi: 208 | dependency: transitive 209 | description: 210 | name: ffi 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "1.1.2" 214 | file: 215 | dependency: transitive 216 | description: 217 | name: file 218 | url: "https://pub.dartlang.org" 219 | source: hosted 220 | version: "6.1.2" 221 | fixnum: 222 | dependency: transitive 223 | description: 224 | name: fixnum 225 | url: "https://pub.dartlang.org" 226 | source: hosted 227 | version: "1.0.0" 228 | flutter: 229 | dependency: "direct main" 230 | description: flutter 231 | source: sdk 232 | version: "0.0.0" 233 | flutter_blurhash: 234 | dependency: transitive 235 | description: 236 | name: flutter_blurhash 237 | url: "https://pub.dartlang.org" 238 | source: hosted 239 | version: "0.6.4" 240 | flutter_cache_manager: 241 | dependency: transitive 242 | description: 243 | name: flutter_cache_manager 244 | url: "https://pub.dartlang.org" 245 | source: hosted 246 | version: "3.3.0" 247 | flutter_hooks: 248 | dependency: "direct main" 249 | description: 250 | name: flutter_hooks 251 | url: "https://pub.dartlang.org" 252 | source: hosted 253 | version: "0.18.2+1" 254 | flutter_lints: 255 | dependency: "direct dev" 256 | description: 257 | name: flutter_lints 258 | url: "https://pub.dartlang.org" 259 | source: hosted 260 | version: "1.0.4" 261 | flutter_riverpod: 262 | dependency: transitive 263 | description: 264 | name: flutter_riverpod 265 | url: "https://pub.dartlang.org" 266 | source: hosted 267 | version: "1.0.3" 268 | flutter_test: 269 | dependency: "direct dev" 270 | description: flutter 271 | source: sdk 272 | version: "0.0.0" 273 | freezed: 274 | dependency: "direct dev" 275 | description: 276 | name: freezed 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "1.1.1" 280 | freezed_annotation: 281 | dependency: "direct main" 282 | description: 283 | name: freezed_annotation 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "1.1.0" 287 | frontend_server_client: 288 | dependency: transitive 289 | description: 290 | name: frontend_server_client 291 | url: "https://pub.dartlang.org" 292 | source: hosted 293 | version: "2.1.2" 294 | glob: 295 | dependency: transitive 296 | description: 297 | name: glob 298 | url: "https://pub.dartlang.org" 299 | source: hosted 300 | version: "2.0.2" 301 | graphs: 302 | dependency: transitive 303 | description: 304 | name: graphs 305 | url: "https://pub.dartlang.org" 306 | source: hosted 307 | version: "2.1.0" 308 | hooks_riverpod: 309 | dependency: "direct main" 310 | description: 311 | name: hooks_riverpod 312 | url: "https://pub.dartlang.org" 313 | source: hosted 314 | version: "1.0.3" 315 | http: 316 | dependency: transitive 317 | description: 318 | name: http 319 | url: "https://pub.dartlang.org" 320 | source: hosted 321 | version: "0.13.4" 322 | http_multi_server: 323 | dependency: transitive 324 | description: 325 | name: http_multi_server 326 | url: "https://pub.dartlang.org" 327 | source: hosted 328 | version: "3.2.0" 329 | http_parser: 330 | dependency: transitive 331 | description: 332 | name: http_parser 333 | url: "https://pub.dartlang.org" 334 | source: hosted 335 | version: "4.0.0" 336 | io: 337 | dependency: transitive 338 | description: 339 | name: io 340 | url: "https://pub.dartlang.org" 341 | source: hosted 342 | version: "1.0.3" 343 | js: 344 | dependency: transitive 345 | description: 346 | name: js 347 | url: "https://pub.dartlang.org" 348 | source: hosted 349 | version: "0.6.4" 350 | json_annotation: 351 | dependency: transitive 352 | description: 353 | name: json_annotation 354 | url: "https://pub.dartlang.org" 355 | source: hosted 356 | version: "4.4.0" 357 | json_serializable: 358 | dependency: "direct dev" 359 | description: 360 | name: json_serializable 361 | url: "https://pub.dartlang.org" 362 | source: hosted 363 | version: "6.1.4" 364 | lints: 365 | dependency: transitive 366 | description: 367 | name: lints 368 | url: "https://pub.dartlang.org" 369 | source: hosted 370 | version: "1.0.1" 371 | logging: 372 | dependency: transitive 373 | description: 374 | name: logging 375 | url: "https://pub.dartlang.org" 376 | source: hosted 377 | version: "1.0.2" 378 | matcher: 379 | dependency: transitive 380 | description: 381 | name: matcher 382 | url: "https://pub.dartlang.org" 383 | source: hosted 384 | version: "0.12.11" 385 | material_color_utilities: 386 | dependency: transitive 387 | description: 388 | name: material_color_utilities 389 | url: "https://pub.dartlang.org" 390 | source: hosted 391 | version: "0.1.3" 392 | meta: 393 | dependency: transitive 394 | description: 395 | name: meta 396 | url: "https://pub.dartlang.org" 397 | source: hosted 398 | version: "1.7.0" 399 | mime: 400 | dependency: transitive 401 | description: 402 | name: mime 403 | url: "https://pub.dartlang.org" 404 | source: hosted 405 | version: "1.0.1" 406 | mockito: 407 | dependency: "direct main" 408 | description: 409 | name: mockito 410 | url: "https://pub.dartlang.org" 411 | source: hosted 412 | version: "5.1.0" 413 | octo_image: 414 | dependency: transitive 415 | description: 416 | name: octo_image 417 | url: "https://pub.dartlang.org" 418 | source: hosted 419 | version: "1.0.1" 420 | package_config: 421 | dependency: transitive 422 | description: 423 | name: package_config 424 | url: "https://pub.dartlang.org" 425 | source: hosted 426 | version: "2.0.2" 427 | path: 428 | dependency: transitive 429 | description: 430 | name: path 431 | url: "https://pub.dartlang.org" 432 | source: hosted 433 | version: "1.8.0" 434 | path_provider: 435 | dependency: transitive 436 | description: 437 | name: path_provider 438 | url: "https://pub.dartlang.org" 439 | source: hosted 440 | version: "2.0.9" 441 | path_provider_android: 442 | dependency: transitive 443 | description: 444 | name: path_provider_android 445 | url: "https://pub.dartlang.org" 446 | source: hosted 447 | version: "2.0.12" 448 | path_provider_ios: 449 | dependency: transitive 450 | description: 451 | name: path_provider_ios 452 | url: "https://pub.dartlang.org" 453 | source: hosted 454 | version: "2.0.8" 455 | path_provider_linux: 456 | dependency: transitive 457 | description: 458 | name: path_provider_linux 459 | url: "https://pub.dartlang.org" 460 | source: hosted 461 | version: "2.1.5" 462 | path_provider_macos: 463 | dependency: transitive 464 | description: 465 | name: path_provider_macos 466 | url: "https://pub.dartlang.org" 467 | source: hosted 468 | version: "2.0.5" 469 | path_provider_platform_interface: 470 | dependency: transitive 471 | description: 472 | name: path_provider_platform_interface 473 | url: "https://pub.dartlang.org" 474 | source: hosted 475 | version: "2.0.3" 476 | path_provider_windows: 477 | dependency: transitive 478 | description: 479 | name: path_provider_windows 480 | url: "https://pub.dartlang.org" 481 | source: hosted 482 | version: "2.0.5" 483 | pedantic: 484 | dependency: transitive 485 | description: 486 | name: pedantic 487 | url: "https://pub.dartlang.org" 488 | source: hosted 489 | version: "1.11.1" 490 | pedantic_mono: 491 | dependency: "direct dev" 492 | description: 493 | name: pedantic_mono 494 | url: "https://pub.dartlang.org" 495 | source: hosted 496 | version: "1.15.0" 497 | platform: 498 | dependency: transitive 499 | description: 500 | name: platform 501 | url: "https://pub.dartlang.org" 502 | source: hosted 503 | version: "3.1.0" 504 | plugin_platform_interface: 505 | dependency: transitive 506 | description: 507 | name: plugin_platform_interface 508 | url: "https://pub.dartlang.org" 509 | source: hosted 510 | version: "2.1.2" 511 | pool: 512 | dependency: transitive 513 | description: 514 | name: pool 515 | url: "https://pub.dartlang.org" 516 | source: hosted 517 | version: "1.5.0" 518 | process: 519 | dependency: transitive 520 | description: 521 | name: process 522 | url: "https://pub.dartlang.org" 523 | source: hosted 524 | version: "4.2.4" 525 | pub_semver: 526 | dependency: transitive 527 | description: 528 | name: pub_semver 529 | url: "https://pub.dartlang.org" 530 | source: hosted 531 | version: "2.1.0" 532 | pubspec_parse: 533 | dependency: transitive 534 | description: 535 | name: pubspec_parse 536 | url: "https://pub.dartlang.org" 537 | source: hosted 538 | version: "1.2.0" 539 | quiver: 540 | dependency: transitive 541 | description: 542 | name: quiver 543 | url: "https://pub.dartlang.org" 544 | source: hosted 545 | version: "3.0.1+1" 546 | retrofit: 547 | dependency: "direct main" 548 | description: 549 | name: retrofit 550 | url: "https://pub.dartlang.org" 551 | source: hosted 552 | version: "3.0.1+1" 553 | retrofit_generator: 554 | dependency: "direct dev" 555 | description: 556 | name: retrofit_generator 557 | url: "https://pub.dartlang.org" 558 | source: hosted 559 | version: "4.0.1" 560 | riverpod: 561 | dependency: transitive 562 | description: 563 | name: riverpod 564 | url: "https://pub.dartlang.org" 565 | source: hosted 566 | version: "1.0.3" 567 | rxdart: 568 | dependency: transitive 569 | description: 570 | name: rxdart 571 | url: "https://pub.dartlang.org" 572 | source: hosted 573 | version: "0.27.3" 574 | shelf: 575 | dependency: transitive 576 | description: 577 | name: shelf 578 | url: "https://pub.dartlang.org" 579 | source: hosted 580 | version: "1.2.0" 581 | shelf_web_socket: 582 | dependency: transitive 583 | description: 584 | name: shelf_web_socket 585 | url: "https://pub.dartlang.org" 586 | source: hosted 587 | version: "1.0.1" 588 | sky_engine: 589 | dependency: transitive 590 | description: flutter 591 | source: sdk 592 | version: "0.0.99" 593 | source_gen: 594 | dependency: transitive 595 | description: 596 | name: source_gen 597 | url: "https://pub.dartlang.org" 598 | source: hosted 599 | version: "1.2.1" 600 | source_helper: 601 | dependency: transitive 602 | description: 603 | name: source_helper 604 | url: "https://pub.dartlang.org" 605 | source: hosted 606 | version: "1.3.1" 607 | source_span: 608 | dependency: transitive 609 | description: 610 | name: source_span 611 | url: "https://pub.dartlang.org" 612 | source: hosted 613 | version: "1.8.1" 614 | sqflite: 615 | dependency: transitive 616 | description: 617 | name: sqflite 618 | url: "https://pub.dartlang.org" 619 | source: hosted 620 | version: "2.0.2" 621 | sqflite_common: 622 | dependency: transitive 623 | description: 624 | name: sqflite_common 625 | url: "https://pub.dartlang.org" 626 | source: hosted 627 | version: "2.2.0" 628 | stack_trace: 629 | dependency: transitive 630 | description: 631 | name: stack_trace 632 | url: "https://pub.dartlang.org" 633 | source: hosted 634 | version: "1.10.0" 635 | state_notifier: 636 | dependency: transitive 637 | description: 638 | name: state_notifier 639 | url: "https://pub.dartlang.org" 640 | source: hosted 641 | version: "0.7.2+1" 642 | stream_channel: 643 | dependency: transitive 644 | description: 645 | name: stream_channel 646 | url: "https://pub.dartlang.org" 647 | source: hosted 648 | version: "2.1.0" 649 | stream_transform: 650 | dependency: transitive 651 | description: 652 | name: stream_transform 653 | url: "https://pub.dartlang.org" 654 | source: hosted 655 | version: "2.0.0" 656 | string_scanner: 657 | dependency: transitive 658 | description: 659 | name: string_scanner 660 | url: "https://pub.dartlang.org" 661 | source: hosted 662 | version: "1.1.0" 663 | synchronized: 664 | dependency: transitive 665 | description: 666 | name: synchronized 667 | url: "https://pub.dartlang.org" 668 | source: hosted 669 | version: "3.0.0" 670 | term_glyph: 671 | dependency: transitive 672 | description: 673 | name: term_glyph 674 | url: "https://pub.dartlang.org" 675 | source: hosted 676 | version: "1.2.0" 677 | test_api: 678 | dependency: transitive 679 | description: 680 | name: test_api 681 | url: "https://pub.dartlang.org" 682 | source: hosted 683 | version: "0.4.8" 684 | timing: 685 | dependency: transitive 686 | description: 687 | name: timing 688 | url: "https://pub.dartlang.org" 689 | source: hosted 690 | version: "1.0.0" 691 | tuple: 692 | dependency: transitive 693 | description: 694 | name: tuple 695 | url: "https://pub.dartlang.org" 696 | source: hosted 697 | version: "2.0.0" 698 | typed_data: 699 | dependency: transitive 700 | description: 701 | name: typed_data 702 | url: "https://pub.dartlang.org" 703 | source: hosted 704 | version: "1.3.0" 705 | uuid: 706 | dependency: transitive 707 | description: 708 | name: uuid 709 | url: "https://pub.dartlang.org" 710 | source: hosted 711 | version: "3.0.6" 712 | vector_math: 713 | dependency: transitive 714 | description: 715 | name: vector_math 716 | url: "https://pub.dartlang.org" 717 | source: hosted 718 | version: "2.1.1" 719 | watcher: 720 | dependency: transitive 721 | description: 722 | name: watcher 723 | url: "https://pub.dartlang.org" 724 | source: hosted 725 | version: "1.0.1" 726 | web_socket_channel: 727 | dependency: transitive 728 | description: 729 | name: web_socket_channel 730 | url: "https://pub.dartlang.org" 731 | source: hosted 732 | version: "2.1.0" 733 | win32: 734 | dependency: transitive 735 | description: 736 | name: win32 737 | url: "https://pub.dartlang.org" 738 | source: hosted 739 | version: "2.4.1" 740 | xdg_directories: 741 | dependency: transitive 742 | description: 743 | name: xdg_directories 744 | url: "https://pub.dartlang.org" 745 | source: hosted 746 | version: "0.2.0+1" 747 | yaml: 748 | dependency: transitive 749 | description: 750 | name: yaml 751 | url: "https://pub.dartlang.org" 752 | source: hosted 753 | version: "3.1.0" 754 | sdks: 755 | dart: ">=2.16.0-100.0.dev <3.0.0" 756 | flutter: ">=2.8.0" 757 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 105DA7C8267E4517D658C12D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E3078E3D357A710134FB8FB /* Pods_Runner.framework */; }; 11 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 36 | 3E3078E3D357A710134FB8FB /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 38 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 40 | 811EE511058B291AE32FF8E6 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 41 | 8385D9AC54CF7B2EAABF1057 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | C0306B108A89848FDB92B7E4 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 105DA7C8267E4517D658C12D /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 7F17F82C49FD0EA361EAEA21 /* Pods */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 8385D9AC54CF7B2EAABF1057 /* Pods-Runner.debug.xcconfig */, 68 | C0306B108A89848FDB92B7E4 /* Pods-Runner.release.xcconfig */, 69 | 811EE511058B291AE32FF8E6 /* Pods-Runner.profile.xcconfig */, 70 | ); 71 | name = Pods; 72 | path = Pods; 73 | sourceTree = ""; 74 | }; 75 | 9740EEB11CF90186004384FC /* Flutter */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 79 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 80 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 81 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 82 | ); 83 | name = Flutter; 84 | sourceTree = ""; 85 | }; 86 | 97C146E51CF9000F007C117D = { 87 | isa = PBXGroup; 88 | children = ( 89 | 9740EEB11CF90186004384FC /* Flutter */, 90 | 97C146F01CF9000F007C117D /* Runner */, 91 | 97C146EF1CF9000F007C117D /* Products */, 92 | 7F17F82C49FD0EA361EAEA21 /* Pods */, 93 | EF94CF8FF841FE3B88977123 /* Frameworks */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | 97C146EF1CF9000F007C117D /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 97C146EE1CF9000F007C117D /* Runner.app */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 97C146F01CF9000F007C117D /* Runner */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 109 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 110 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 111 | 97C147021CF9000F007C117D /* Info.plist */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 115 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 116 | ); 117 | path = Runner; 118 | sourceTree = ""; 119 | }; 120 | EF94CF8FF841FE3B88977123 /* Frameworks */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 3E3078E3D357A710134FB8FB /* Pods_Runner.framework */, 124 | ); 125 | name = Frameworks; 126 | sourceTree = ""; 127 | }; 128 | /* End PBXGroup section */ 129 | 130 | /* Begin PBXNativeTarget section */ 131 | 97C146ED1CF9000F007C117D /* Runner */ = { 132 | isa = PBXNativeTarget; 133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 134 | buildPhases = ( 135 | 066A8EFE55AB55838E17EBF9 /* [CP] Check Pods Manifest.lock */, 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | FE122DD1D37F489CCC324F78 /* [CP] Embed Pods Frameworks */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = Runner; 149 | productName = Runner; 150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 97C146E61CF9000F007C117D /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastUpgradeCheck = 1300; 160 | ORGANIZATIONNAME = ""; 161 | TargetAttributes = { 162 | 97C146ED1CF9000F007C117D = { 163 | CreatedOnToolsVersion = 7.3.1; 164 | LastSwiftMigration = 1100; 165 | }; 166 | }; 167 | }; 168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 169 | compatibilityVersion = "Xcode 9.3"; 170 | developmentRegion = en; 171 | hasScannedForEncodings = 0; 172 | knownRegions = ( 173 | en, 174 | Base, 175 | ); 176 | mainGroup = 97C146E51CF9000F007C117D; 177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 97C146ED1CF9000F007C117D /* Runner */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 97C146EC1CF9000F007C117D /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 066A8EFE55AB55838E17EBF9 /* [CP] Check Pods Manifest.lock */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputFileListPaths = ( 207 | ); 208 | inputPaths = ( 209 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 210 | "${PODS_ROOT}/Manifest.lock", 211 | ); 212 | name = "[CP] Check Pods Manifest.lock"; 213 | outputFileListPaths = ( 214 | ); 215 | outputPaths = ( 216 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | shellPath = /bin/sh; 220 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 221 | showEnvVarsInLog = 0; 222 | }; 223 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 224 | isa = PBXShellScriptBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | ); 228 | inputPaths = ( 229 | ); 230 | name = "Thin Binary"; 231 | outputPaths = ( 232 | ); 233 | runOnlyForDeploymentPostprocessing = 0; 234 | shellPath = /bin/sh; 235 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 236 | }; 237 | 9740EEB61CF901F6004384FC /* Run Script */ = { 238 | isa = PBXShellScriptBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | ); 242 | inputPaths = ( 243 | ); 244 | name = "Run Script"; 245 | outputPaths = ( 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | shellPath = /bin/sh; 249 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 250 | }; 251 | FE122DD1D37F489CCC324F78 /* [CP] Embed Pods Frameworks */ = { 252 | isa = PBXShellScriptBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | ); 256 | inputFileListPaths = ( 257 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 258 | ); 259 | name = "[CP] Embed Pods Frameworks"; 260 | outputFileListPaths = ( 261 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | shellPath = /bin/sh; 265 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 266 | showEnvVarsInLog = 0; 267 | }; 268 | /* End PBXShellScriptBuildPhase section */ 269 | 270 | /* Begin PBXSourcesBuildPhase section */ 271 | 97C146EA1CF9000F007C117D /* Sources */ = { 272 | isa = PBXSourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | /* End PBXSourcesBuildPhase section */ 281 | 282 | /* Begin PBXVariantGroup section */ 283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 284 | isa = PBXVariantGroup; 285 | children = ( 286 | 97C146FB1CF9000F007C117D /* Base */, 287 | ); 288 | name = Main.storyboard; 289 | sourceTree = ""; 290 | }; 291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 292 | isa = PBXVariantGroup; 293 | children = ( 294 | 97C147001CF9000F007C117D /* Base */, 295 | ); 296 | name = LaunchScreen.storyboard; 297 | sourceTree = ""; 298 | }; 299 | /* End PBXVariantGroup section */ 300 | 301 | /* Begin XCBuildConfiguration section */ 302 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 333 | ENABLE_NS_ASSERTIONS = NO; 334 | ENABLE_STRICT_OBJC_MSGSEND = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_NO_COMMON_BLOCKS = YES; 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 344 | MTL_ENABLE_DEBUG_INFO = NO; 345 | SDKROOT = iphoneos; 346 | SUPPORTED_PLATFORMS = iphoneos; 347 | TARGETED_DEVICE_FAMILY = "1,2"; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Profile; 351 | }; 352 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 353 | isa = XCBuildConfiguration; 354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | CLANG_ENABLE_MODULES = YES; 358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 359 | DEVELOPMENT_TEAM = M3LJ3SDTT4; 360 | ENABLE_BITCODE = NO; 361 | INFOPLIST_FILE = Runner/Info.plist; 362 | LD_RUNPATH_SEARCH_PATHS = ( 363 | "$(inherited)", 364 | "@executable_path/Frameworks", 365 | ); 366 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGithubSearch; 367 | PRODUCT_NAME = "$(TARGET_NAME)"; 368 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 369 | SWIFT_VERSION = 5.0; 370 | VERSIONING_SYSTEM = "apple-generic"; 371 | }; 372 | name = Profile; 373 | }; 374 | 97C147031CF9000F007C117D /* Debug */ = { 375 | isa = XCBuildConfiguration; 376 | buildSettings = { 377 | ALWAYS_SEARCH_USER_PATHS = NO; 378 | CLANG_ANALYZER_NONNULL = YES; 379 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 380 | CLANG_CXX_LIBRARY = "libc++"; 381 | CLANG_ENABLE_MODULES = YES; 382 | CLANG_ENABLE_OBJC_ARC = YES; 383 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 384 | CLANG_WARN_BOOL_CONVERSION = YES; 385 | CLANG_WARN_COMMA = YES; 386 | CLANG_WARN_CONSTANT_CONVERSION = YES; 387 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 388 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 389 | CLANG_WARN_EMPTY_BODY = YES; 390 | CLANG_WARN_ENUM_CONVERSION = YES; 391 | CLANG_WARN_INFINITE_RECURSION = YES; 392 | CLANG_WARN_INT_CONVERSION = YES; 393 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 394 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 395 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 397 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 398 | CLANG_WARN_STRICT_PROTOTYPES = YES; 399 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 400 | CLANG_WARN_UNREACHABLE_CODE = YES; 401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 403 | COPY_PHASE_STRIP = NO; 404 | DEBUG_INFORMATION_FORMAT = dwarf; 405 | ENABLE_STRICT_OBJC_MSGSEND = YES; 406 | ENABLE_TESTABILITY = YES; 407 | GCC_C_LANGUAGE_STANDARD = gnu99; 408 | GCC_DYNAMIC_NO_PIC = NO; 409 | GCC_NO_COMMON_BLOCKS = YES; 410 | GCC_OPTIMIZATION_LEVEL = 0; 411 | GCC_PREPROCESSOR_DEFINITIONS = ( 412 | "DEBUG=1", 413 | "$(inherited)", 414 | ); 415 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 416 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 417 | GCC_WARN_UNDECLARED_SELECTOR = YES; 418 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 419 | GCC_WARN_UNUSED_FUNCTION = YES; 420 | GCC_WARN_UNUSED_VARIABLE = YES; 421 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 422 | MTL_ENABLE_DEBUG_INFO = YES; 423 | ONLY_ACTIVE_ARCH = YES; 424 | SDKROOT = iphoneos; 425 | TARGETED_DEVICE_FAMILY = "1,2"; 426 | }; 427 | name = Debug; 428 | }; 429 | 97C147041CF9000F007C117D /* Release */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ALWAYS_SEARCH_USER_PATHS = NO; 433 | CLANG_ANALYZER_NONNULL = YES; 434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 435 | CLANG_CXX_LIBRARY = "libc++"; 436 | CLANG_ENABLE_MODULES = YES; 437 | CLANG_ENABLE_OBJC_ARC = YES; 438 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 439 | CLANG_WARN_BOOL_CONVERSION = YES; 440 | CLANG_WARN_COMMA = YES; 441 | CLANG_WARN_CONSTANT_CONVERSION = YES; 442 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 443 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 444 | CLANG_WARN_EMPTY_BODY = YES; 445 | CLANG_WARN_ENUM_CONVERSION = YES; 446 | CLANG_WARN_INFINITE_RECURSION = YES; 447 | CLANG_WARN_INT_CONVERSION = YES; 448 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 450 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 451 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 452 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 453 | CLANG_WARN_STRICT_PROTOTYPES = YES; 454 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 455 | CLANG_WARN_UNREACHABLE_CODE = YES; 456 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 457 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 458 | COPY_PHASE_STRIP = NO; 459 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 460 | ENABLE_NS_ASSERTIONS = NO; 461 | ENABLE_STRICT_OBJC_MSGSEND = YES; 462 | GCC_C_LANGUAGE_STANDARD = gnu99; 463 | GCC_NO_COMMON_BLOCKS = YES; 464 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 465 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 466 | GCC_WARN_UNDECLARED_SELECTOR = YES; 467 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 468 | GCC_WARN_UNUSED_FUNCTION = YES; 469 | GCC_WARN_UNUSED_VARIABLE = YES; 470 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 471 | MTL_ENABLE_DEBUG_INFO = NO; 472 | SDKROOT = iphoneos; 473 | SUPPORTED_PLATFORMS = iphoneos; 474 | SWIFT_COMPILATION_MODE = wholemodule; 475 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 476 | TARGETED_DEVICE_FAMILY = "1,2"; 477 | VALIDATE_PRODUCT = YES; 478 | }; 479 | name = Release; 480 | }; 481 | 97C147061CF9000F007C117D /* Debug */ = { 482 | isa = XCBuildConfiguration; 483 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 484 | buildSettings = { 485 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 486 | CLANG_ENABLE_MODULES = YES; 487 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 488 | DEVELOPMENT_TEAM = M3LJ3SDTT4; 489 | ENABLE_BITCODE = NO; 490 | INFOPLIST_FILE = Runner/Info.plist; 491 | LD_RUNPATH_SEARCH_PATHS = ( 492 | "$(inherited)", 493 | "@executable_path/Frameworks", 494 | ); 495 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGithubSearch; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 498 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 499 | SWIFT_VERSION = 5.0; 500 | VERSIONING_SYSTEM = "apple-generic"; 501 | }; 502 | name = Debug; 503 | }; 504 | 97C147071CF9000F007C117D /* Release */ = { 505 | isa = XCBuildConfiguration; 506 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 507 | buildSettings = { 508 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 509 | CLANG_ENABLE_MODULES = YES; 510 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 511 | DEVELOPMENT_TEAM = M3LJ3SDTT4; 512 | ENABLE_BITCODE = NO; 513 | INFOPLIST_FILE = Runner/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = ( 515 | "$(inherited)", 516 | "@executable_path/Frameworks", 517 | ); 518 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGithubSearch; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 521 | SWIFT_VERSION = 5.0; 522 | VERSIONING_SYSTEM = "apple-generic"; 523 | }; 524 | name = Release; 525 | }; 526 | /* End XCBuildConfiguration section */ 527 | 528 | /* Begin XCConfigurationList section */ 529 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 530 | isa = XCConfigurationList; 531 | buildConfigurations = ( 532 | 97C147031CF9000F007C117D /* Debug */, 533 | 97C147041CF9000F007C117D /* Release */, 534 | 249021D3217E4FDB00AE95B9 /* Profile */, 535 | ); 536 | defaultConfigurationIsVisible = 0; 537 | defaultConfigurationName = Release; 538 | }; 539 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 540 | isa = XCConfigurationList; 541 | buildConfigurations = ( 542 | 97C147061CF9000F007C117D /* Debug */, 543 | 97C147071CF9000F007C117D /* Release */, 544 | 249021D4217E4FDB00AE95B9 /* Profile */, 545 | ); 546 | defaultConfigurationIsVisible = 0; 547 | defaultConfigurationName = Release; 548 | }; 549 | /* End XCConfigurationList section */ 550 | }; 551 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 552 | } 553 | --------------------------------------------------------------------------------