├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── AppDelegate.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 │ ├── main.m │ ├── AppDelegate.m │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner.xcodeproj │ ├── project.xcworkspace │ └── contents.xcworkspacedata │ ├── xcshareddata │ └── xcschemes │ │ └── Runner.xcscheme │ └── project.pbxproj ├── images ├── wave.gif ├── other.png └── user_center.png ├── fonts └── iconfont.ttf ├── 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 │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── kotlin │ │ │ │ └── io │ │ │ │ │ └── gank │ │ │ │ │ └── ly │ │ │ │ │ └── gank_flutter │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── lib ├── utils │ ├── LogUtils.dart │ └── HttpUtils.dart ├── pages │ ├── other_gank.dart │ ├── category.dart │ ├── about.dart │ ├── meizi.dart │ ├── home.dart │ └── account.dart ├── model │ ├── category_entity.dart │ ├── article_entity.dart │ ├── mei_zi_entity.dart │ └── base_bean_entity.dart ├── entity_factory.dart ├── icons │ └── iconfont.dart ├── widget │ ├── meizi_item.dart │ ├── article_item.dart │ └── article_list.dart └── main.dart ├── .metadata ├── README.md ├── test └── widget_test.dart ├── .gitignore ├── pubspec.yaml └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /images/wave.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leiyun-studio/FlutterDemo-GankIO/HEAD/images/wave.gif -------------------------------------------------------------------------------- /images/other.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leiyun-studio/FlutterDemo-GankIO/HEAD/images/other.png -------------------------------------------------------------------------------- /fonts/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leiyun-studio/FlutterDemo-GankIO/HEAD/fonts/iconfont.ttf -------------------------------------------------------------------------------- /images/user_center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leiyun-studio/FlutterDemo-GankIO/HEAD/images/user_center.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leiyun-studio/FlutterDemo-GankIO/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /lib/utils/LogUtils.dart: -------------------------------------------------------------------------------- 1 | 2 | class LogUtils{ 3 | 4 | static const _LOG = true; 5 | 6 | static void log(Object msg){ 7 | if(_LOG){ 8 | print(msg); 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/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/leiyun-studio/FlutterDemo-GankIO/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /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-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /.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: 20e59316b8b8474554b38493b8ca888794b0234a 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/io/gank/ly/gank_flutter/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package io.gank.ly.gank_flutter 2 | 3 | import android.os.Bundle 4 | 5 | import io.flutter.app.FlutterActivity 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | GeneratedPluginRegistrant.registerWith(this) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/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 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /lib/pages/other_gank.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class OtherGank extends StatelessWidget { 5 | final String content; 6 | 7 | OtherGank({Key key, this.content}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | var args=ModalRoute.of(context).settings.arguments; 12 | return Scaffold( 13 | appBar: AppBar( 14 | title: Text("其他Gank项目"), 15 | ), 16 | body: Center(child: Text(args==null?content:args)), 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/model/category_entity.dart: -------------------------------------------------------------------------------- 1 | class CategoryEntity { 2 | String name; 3 | String enName; 4 | int rank; 5 | String sId; 6 | 7 | CategoryEntity({this.name, this.enName, this.rank, this.sId}); 8 | 9 | CategoryEntity.fromJson(Map json) { 10 | name = json['name']; 11 | enName = json['en_name']; 12 | rank = json['rank']; 13 | sId = json['_id']; 14 | } 15 | 16 | Map toJson() { 17 | final Map data = new Map(); 18 | data['name'] = this.name; 19 | data['en_name'] = this.enName; 20 | data['rank'] = this.rank; 21 | data['_id'] = this.sId; 22 | return data; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_demo_gank 2 | 3 | [Flutter笔记(一):BottomNavigationBar常见问题](https://www.jianshu.com/p/7274bad9f7ec) 4 | 5 | [Flutter笔记(二):Icon,ImageIcon,以及在Flutter中使用IconFont](https://www.jianshu.com/p/4ddcda91fa7d) 6 | 7 | [Flutter笔记(三):设置白色状态栏](https://www.jianshu.com/p/5cde325e6e05) 8 | 9 | [Flutter笔记(四):PageView-Flutter中的ViewPager](https://www.jianshu.com/p/4a52fb9957a8) 10 | 11 | [Flutter笔记(五):TabBar、TabBarView(TabLayout+ViewPager)](https://www.jianshu.com/p/8e28aa3ea9d4) 12 | 13 | [Flutter笔记(六):StaggeredGridView瀑布流+下拉刷新和加载更多](https://www.jianshu.com/p/4da555e7e4c3) 14 | 15 | [Flutter笔记(七):Dio网络请求、Json数据解析以及泛型问题](https://www.jianshu.com/p/3c50812865d1) 16 | 17 | -------------------------------------------------------------------------------- /lib/entity_factory.dart: -------------------------------------------------------------------------------- 1 | import 'package:gank_flutter/model/article_entity.dart'; 2 | import 'package:gank_flutter/model/category_entity.dart'; 3 | import 'package:gank_flutter/model/mei_zi_entity.dart'; 4 | 5 | class EntityFactory { 6 | static T generateOBJ(json) { 7 | if (1 == 0) { 8 | return null; 9 | } else if (T.toString() == "ArticleEntity") { 10 | return ArticleEntity.fromJson(json) as T; 11 | } else if (T.toString() == "CategoryEntity") { 12 | return CategoryEntity.fromJson(json) as T; 13 | } else if (T.toString() == "MeiZiEntity") { 14 | return MeiZiEntity.fromJson(json) as T; 15 | } else { 16 | return null; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.2.71' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.2.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/icons/iconfont.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | class IconFont{ 3 | static const String _family = 'iconfont'; 4 | IconFont._(); 5 | static const IconData iconcategory = IconData(0xe787, fontFamily: _family); 6 | static const IconData iconlike = IconData(0xe60a, fontFamily: _family); 7 | static const IconData iconhistory = IconData(0xe64d, fontFamily: _family); 8 | static const IconData icongithub = IconData(0xe602, fontFamily: _family); 9 | static const IconData iconpic = IconData(0xe633, fontFamily: _family); 10 | static const IconData iconabout = IconData(0xe6fb, fontFamily: _family); 11 | static const IconData iconaccount = IconData(0xe60c, fontFamily: _family); 12 | static const IconData iconhome = IconData(0xe600, fontFamily: _family); 13 | static const IconData iconsearch = IconData(0xe648, fontFamily: _family); 14 | static const IconData iconshijian = IconData(0xe601, fontFamily: _family); 15 | static const IconData iconzuozhe = IconData(0xebb7, fontFamily: _family); 16 | static const IconData iconright = IconData(0xe64f, fontFamily: _family); 17 | } -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:gank_flutter/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/model/article_entity.dart: -------------------------------------------------------------------------------- 1 | class ArticleEntity { 2 | String createdAt; 3 | List images; 4 | String publishedAt; 5 | String sId; 6 | String source; 7 | bool used; 8 | String type; 9 | String url; 10 | String desc; 11 | String who; 12 | 13 | ArticleEntity({this.createdAt, this.images, this.publishedAt, this.sId, this.source, this.used, this.type, this.url, this.desc, this.who}); 14 | 15 | ArticleEntity.fromJson(Map json) { 16 | createdAt = json['createdAt']; 17 | images = json['images']?.cast(); 18 | publishedAt = json['publishedAt']; 19 | sId = json['_id']; 20 | source = json['source']; 21 | used = json['used']; 22 | type = json['type']; 23 | url = json['url']; 24 | desc = json['desc']; 25 | who = json['who']; 26 | } 27 | 28 | Map toJson() { 29 | final Map data = new Map(); 30 | data['createdAt'] = this.createdAt; 31 | data['images'] = this.images; 32 | data['publishedAt'] = this.publishedAt; 33 | data['_id'] = this.sId; 34 | data['source'] = this.source; 35 | data['used'] = this.used; 36 | data['type'] = this.type; 37 | data['url'] = this.url; 38 | data['desc'] = this.desc; 39 | data['who'] = this.who; 40 | return data; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/model/mei_zi_entity.dart: -------------------------------------------------------------------------------- 1 | class MeiZiEntity { 2 | String createdAt; 3 | String publishedAt; 4 | String sId; 5 | String source; 6 | bool used; 7 | String type; 8 | String url; 9 | String desc; 10 | String who; 11 | 12 | MeiZiEntity( 13 | {this.createdAt, 14 | this.publishedAt, 15 | this.sId, 16 | this.source, 17 | this.used, 18 | this.type, 19 | this.url, 20 | this.desc, 21 | this.who}); 22 | 23 | MeiZiEntity.fromJson(Map json) { 24 | createdAt = json['createdAt']; 25 | publishedAt = json['publishedAt']; 26 | sId = json['_id']; 27 | source = json['source']; 28 | used = json['used']; 29 | type = json['type']; 30 | url = json['url']; 31 | desc = json['desc']; 32 | who = json['who']; 33 | } 34 | 35 | Map toJson() { 36 | final Map data = new Map(); 37 | data['createdAt'] = this.createdAt; 38 | data['publishedAt'] = this.publishedAt; 39 | data['_id'] = this.sId; 40 | data['source'] = this.source; 41 | data['used'] = this.used; 42 | data['type'] = this.type; 43 | data['url'] = this.url; 44 | data['desc'] = this.desc; 45 | data['who'] = this.who; 46 | return data; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/model/base_bean_entity.dart: -------------------------------------------------------------------------------- 1 | import 'package:gank_flutter/entity_factory.dart'; 2 | /// 解析基类 3 | class BaseBeanEntity { 4 | bool error; 5 | Map results; 6 | List resultsList; 7 | 8 | BaseBeanEntity({this.error, this.results, this.resultsList}); 9 | 10 | /// 处理results为对象的情况 11 | BaseBeanEntity.fromJson(Map json) { 12 | error = json['error']; 13 | results = json['results']; 14 | } 15 | 16 | /// 处理results为数组的情况 17 | BaseBeanEntity.fromJsonList(Map json) { 18 | error = json['error']; 19 | resultsList = json['results']; 20 | } 21 | 22 | /// 获取results对象 23 | T getObject() { 24 | return EntityFactory.generateOBJ(results); //使用EntityFactory解析对象 25 | } 26 | 27 | /// 获取results数组 28 | List getList() { 29 | var list = new List(); 30 | if (resultsList != null) { 31 | resultsList.forEach((v) { //拼装List 32 | list.add(EntityFactory.generateOBJ(v));//使用EntityFactory解析对象 33 | }); 34 | } 35 | return list; 36 | } 37 | 38 | Map toJson() { 39 | final Map data = new Map(); 40 | data['error'] = this.error; 41 | if (this.results != null) { 42 | data['results'] = this.results; 43 | } 44 | return data; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/widget/meizi_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gank_flutter/model/mei_zi_entity.dart'; 3 | 4 | class MeiZiItem extends StatefulWidget { 5 | 6 | MeiZiItem(this.item); 7 | 8 | final MeiZiEntity item; 9 | 10 | @override 11 | _MeiZiItemState createState() { 12 | return _MeiZiItemState(); 13 | } 14 | } 15 | 16 | class _MeiZiItemState extends State { 17 | 18 | _MeiZiItemState(); 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return Container( 23 | decoration: BoxDecoration(boxShadow: [ 24 | BoxShadow(color: Color(0xff999999), blurRadius: 2, offset: Offset(0.5, 0.5)) 25 | ], borderRadius: BorderRadius.circular(4),color: Colors.white), 26 | child: ClipRRect( 27 | borderRadius: BorderRadius.circular(4), 28 | child: Stack( 29 | alignment: AlignmentDirectional.bottomCenter, 30 | children: [ 31 | Container( 32 | child: Image.network( 33 | widget.item.url, 34 | fit: BoxFit.cover, 35 | ), 36 | constraints: BoxConstraints.expand(), 37 | ), 38 | Container( 39 | constraints: 40 | BoxConstraints.expand(width: double.infinity, height: 30), 41 | color: Colors.black26, 42 | child: Center( 43 | child: Text( 44 | widget.item.desc, 45 | style: TextStyle(color: Colors.white), 46 | ), 47 | ), 48 | ), 49 | ], 50 | ), 51 | ), 52 | ); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | gank_flutter 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/ServiceDefinitions.json 65 | **/ios/Runner/GeneratedPluginRegistrant.* 66 | 67 | # Exceptions to above rules. 68 | !**/ios/**/default.mode1v3 69 | !**/ios/**/default.mode2v3 70 | !**/ios/**/default.pbxuser 71 | !**/ios/**/default.perspectivev3 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 73 | -------------------------------------------------------------------------------- /lib/utils/HttpUtils.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:gank_flutter/utils/LogUtils.dart'; 3 | 4 | class HttpUtils { 5 | static const BASE_URL = "http://gank.io/api"; 6 | static const CONNECT_TIMEOUT = 5000; 7 | static const RECEIVE_TIMEOUT = 3000; 8 | static Dio dio; 9 | 10 | /// 生成Dio实例 11 | static Dio getInstance() { 12 | if (dio == null) { 13 | //通过传递一个 `BaseOptions`来创建dio实例 14 | var options = BaseOptions( 15 | baseUrl: BASE_URL, 16 | connectTimeout: CONNECT_TIMEOUT, 17 | receiveTimeout: RECEIVE_TIMEOUT); 18 | dio = new Dio(options); 19 | } 20 | return dio; 21 | } 22 | 23 | /// 请求api 24 | static Future request(String url, {data, method}) async { 25 | data = data ?? {}; 26 | method = method ?? "get"; 27 | 28 | // 由于我示例的接口是 http://gank.io/api/data/福利/10/1 29 | // 所以使用下面这张方式拼接get参数 30 | // 如上面则为 http://gank.io/api/data/:category/:pageSize/:page 31 | data.forEach((key, value) { 32 | if (url.indexOf(key) != -1) { 33 | url = url.replaceAll(':$key', value.toString()); 34 | } 35 | }); 36 | // 打印请求相关信息:请求地址、请求方式、请求参数 37 | LogUtils.log("请求地址:【$method $url】"); 38 | LogUtils.log("请求参数:【$data】"); 39 | 40 | var dio = getInstance(); 41 | var res; 42 | if (method == "get") { 43 | // get 44 | var response = await dio.get(url); 45 | res = response.data; 46 | } else { 47 | // post 48 | var response = await dio.post(url, data: data); 49 | res = response.data; 50 | } 51 | return res; 52 | } 53 | 54 | /// get 55 | static Future get(url, data) => request(url, data: data); 56 | 57 | /// post 58 | static Future post(url, data) => 59 | request(url, data: data, method: "post"); 60 | } 61 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /lib/pages/category.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gank_flutter/widget/article_list.dart'; 3 | 4 | class CategoryPage extends StatefulWidget { 5 | @override 6 | _CategoryState createState() => _CategoryState(); 7 | } 8 | 9 | class _CategoryState extends State with SingleTickerProviderStateMixin { 10 | var _tabList = ["all", "Android", "iOS", "App","前端","拓展资源","瞎推荐","休息视频"]; 11 | TabController _tabController; 12 | 13 | 14 | @override 15 | void initState() { 16 | super.initState(); 17 | _tabController = TabController(initialIndex: 0,length: _tabList.length,vsync: this); 18 | } 19 | 20 | @override 21 | void dispose() { 22 | super.dispose(); 23 | _tabController.dispose(); 24 | } 25 | 26 | @override 27 | Widget build(BuildContext context) { 28 | return DefaultTabController( 29 | length: _tabList.length, 30 | child: Scaffold( 31 | appBar: AppBar( 32 | backgroundColor: Colors.white, 33 | brightness: Brightness.light, 34 | title: Center( 35 | child: Text( 36 | "分类", 37 | ), 38 | ), 39 | bottom: TabBar( 40 | controller: _tabController, 41 | indicatorSize: TabBarIndicatorSize.label, 42 | isScrollable: true, 43 | onTap: _onTabBarTap, 44 | tabs: _tabList.map((item) { 45 | return Tab(text: item); 46 | }).toList(), 47 | ), 48 | ), 49 | body: TabBarView( 50 | controller: _tabController, 51 | children: _tabList.map((item) { 52 | return Center( 53 | child: ArticleList(item), 54 | ); 55 | }).toList(), 56 | ))); 57 | } 58 | 59 | void _onTabBarTap(int value) { 60 | 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "io.gank.ly.gank_flutter" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'androidx.test:runner:1.1.1' 66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 67 | } 68 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /lib/widget/article_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gank_flutter/icons/iconfont.dart'; 3 | import 'package:gank_flutter/model/article_entity.dart'; 4 | 5 | class ArticleItem extends StatefulWidget { 6 | final ArticleEntity item; 7 | 8 | ArticleItem(this.item); 9 | 10 | @override 11 | _ArticleItemState createState() { 12 | return _ArticleItemState(); 13 | } 14 | } 15 | 16 | class _ArticleItemState extends State { 17 | @override 18 | Widget build(BuildContext context) { 19 | return Container( 20 | padding: EdgeInsets.all(10), 21 | color: Colors.white, 22 | child: Row( 23 | children: [ 24 | Expanded( 25 | child: Align( 26 | alignment: Alignment.centerLeft, 27 | child: Column( 28 | children: [ 29 | Align( 30 | alignment: Alignment.centerLeft, 31 | child: Text( 32 | widget.item.desc, 33 | maxLines: 2, 34 | overflow: TextOverflow.ellipsis, 35 | ), 36 | ), 37 | Container( 38 | height: 10, 39 | ), 40 | Row( 41 | children: [ 42 | Icon( 43 | IconFont.iconzuozhe, 44 | color: Colors.green, 45 | size: 20, 46 | ), 47 | Text(widget.item.who), 48 | Container( 49 | width: 10, 50 | ), 51 | Icon( 52 | IconFont.iconshijian, 53 | color: Colors.green, 54 | size: 20, 55 | ), 56 | Text(widget.item.createdAt.substring(0, 10)), 57 | ], 58 | ) 59 | ], 60 | ), 61 | ), 62 | ), 63 | Container( 64 | width: 15, 65 | ), 66 | Offstage( 67 | offstage: widget.item.images==null||widget.item.images.length==0, 68 | child: ClipRRect( 69 | borderRadius: BorderRadius.circular(4), 70 | child: Image.network( 71 | widget.item.images!=null&&widget.item.images.length>0?widget.item.images[0]:"https://hbimg.huabanimg.com/fa7be73547c402acc9c7a1e8717cba4d87a487c51adaa-4aL4RO_fw658", 72 | alignment: Alignment.centerRight, 73 | width: 80, 74 | height: 80, 75 | fit: BoxFit.cover, 76 | ), 77 | ), 78 | ) 79 | ], 80 | )); 81 | ; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: gank_flutter 2 | description: A new Flutter application. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | 27 | flutter_staggered_grid_view: "^0.3.0" 28 | dio: "^2.1.13" 29 | 30 | dev_dependencies: 31 | flutter_test: 32 | sdk: flutter 33 | 34 | # For information on the generic Dart part of this file, see the 35 | # following page: https://dart.dev/tools/pub/pubspec 36 | 37 | # The following section is specific to Flutter. 38 | flutter: 39 | 40 | # The following line ensures that the Material Icons font is 41 | # included with your application, so that you can use the icons in 42 | # the material Icons class. 43 | uses-material-design: true 44 | 45 | # To add assets to your application, add an assets section, like this: 46 | # assets: 47 | # - images/a_dot_burr.jpeg 48 | # - images/a_dot_ham.jpeg 49 | 50 | # An image asset can refer to one or more resolution-specific "variants", see 51 | # https://flutter.dev/assets-and-images/#resolution-aware. 52 | 53 | # For details regarding adding assets from package dependencies, see 54 | # https://flutter.dev/assets-and-images/#from-packages 55 | 56 | # To add custom fonts to your application, add a fonts section here, 57 | # in this "flutter" section. Each entry in this list should have a 58 | # "family" key with the font family name, and a "fonts" key with a 59 | # list giving the asset and other descriptors for the font. For 60 | # example: 61 | fonts: 62 | - family: IconFont 63 | fonts: 64 | - asset: fonts/iconfont.ttf 65 | # - family: Trajan Pro 66 | # fonts: 67 | # - asset: fonts/TrajanPro.ttf 68 | # - asset: fonts/TrajanPro_Bold.ttf 69 | # weight: 700 70 | # 71 | # For details regarding fonts from package dependencies, 72 | # see https://flutter.dev/custom-fonts/#from-packages 73 | assets: 74 | - images/user_center.png 75 | - images/wave.gif 76 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/pages/about.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class About extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return Scaffold( 8 | appBar: AppBar( 9 | title: Text("关于"), 10 | ), 11 | body: Container( 12 | color: Colors.white, 13 | padding: EdgeInsets.all(15), 14 | child: ListView( 15 | children: [ 16 | Text( 17 | "Gank.io", 18 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20), 19 | ), 20 | Container( 21 | margin: EdgeInsets.only(top: 15, bottom: 15), 22 | color: Color(0xffe5e5e5), 23 | width: MediaQuery.of(context).size.width, 24 | height: 1, 25 | ), 26 | Text("每日分享妹子图 和 技术干货,还有供大家中午休息的休闲视频。"), 27 | GestureDetector( 28 | child: Text( 29 | "http://gank.io", 30 | style: TextStyle(color: Colors.blue), 31 | ), 32 | ), 33 | Container( 34 | margin: EdgeInsets.only(top: 15), 35 | child: Text( 36 | "Flutter", 37 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20), 38 | ), 39 | ), 40 | 41 | Container( 42 | margin: EdgeInsets.only(top: 15, bottom: 15), 43 | color: Color(0xffe5e5e5), 44 | width: MediaQuery.of(context).size.width, 45 | height: 1, 46 | ), 47 | Text( 48 | "Flutter是谷歌的移动UI框架,可以快速在iOS和Android上构建高质量的原生用户界面。 Flutter可以与现有的代码一起工作。在全世界,Flutter正在被越来越多的开发者和组织使用,并且Flutter是完全免费、开源的。"), 49 | GestureDetector( 50 | child: Text( 51 | "https://flutterchina.club", 52 | style: TextStyle(color: Colors.blue), 53 | ), 54 | ), 55 | Container( 56 | margin: EdgeInsets.only(top: 15), 57 | child: Text( 58 | "gank_flutter", 59 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20), 60 | ), 61 | ), 62 | 63 | Container( 64 | margin: EdgeInsets.only(top: 15, bottom: 15), 65 | color: Color(0xffe5e5e5), 66 | width: MediaQuery.of(context).size.width, 67 | height: 1, 68 | ), 69 | Text("使用Gank提供的开放Api加上Flutter开发的跨平台App,目前测试了Android平台。"), 70 | GestureDetector( 71 | child: Text( 72 | "https://github.com/leiyun1993/FlutterDemo-GankIO", 73 | style: TextStyle(color: Colors.blue), 74 | ), 75 | ), 76 | Container( 77 | margin: EdgeInsets.only(top: 15), 78 | child: Text( 79 | "开源库", 80 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20), 81 | ), 82 | ), 83 | 84 | Container( 85 | margin: EdgeInsets.only(top: 15, bottom: 15), 86 | color: Color(0xffe5e5e5), 87 | width: MediaQuery.of(context).size.width, 88 | height: 1, 89 | ), 90 | GestureDetector( 91 | child: Text( 92 | "https://github.com/letsar/flutter_staggered_grid_view", 93 | style: TextStyle(color: Colors.blue), 94 | ), 95 | ), 96 | GestureDetector( 97 | child: Text( 98 | "https://www.iconfont.cn", 99 | style: TextStyle(color: Colors.blue), 100 | ), 101 | ), 102 | ], 103 | ), 104 | ), 105 | ); 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /lib/widget/article_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gank_flutter/model/article_entity.dart'; 3 | import 'package:gank_flutter/model/base_bean_entity.dart'; 4 | import 'package:gank_flutter/utils/HttpUtils.dart'; 5 | import 'package:gank_flutter/utils/LogUtils.dart'; 6 | import 'package:gank_flutter/widget/article_item.dart'; 7 | 8 | class ArticleList extends StatefulWidget { 9 | final String category; 10 | 11 | ArticleList(this.category); 12 | 13 | @override 14 | _ArticleListState createState() { 15 | return _ArticleListState(); 16 | } 17 | } 18 | 19 | class _ArticleListState extends State 20 | with AutomaticKeepAliveClientMixin { 21 | List _dataList = []; 22 | ScrollController _scrollController; 23 | int _load = 0; 24 | int _page = 1; 25 | 26 | @override 27 | void initState() { 28 | super.initState(); 29 | _scrollController = ScrollController(); 30 | _scrollController.addListener(() { 31 | var px = _scrollController.position.pixels; 32 | if (px == _scrollController.position.maxScrollExtent) { 33 | LogUtils.log("加载更多!"); 34 | _onLoadMore(); 35 | } 36 | }); 37 | _initData(_page); 38 | } 39 | 40 | Future _initData(int page) async { 41 | Map params = new Map(); 42 | params["page"] = page; 43 | params["size"] = 10; 44 | params["cate"] = widget.category; 45 | var res = await HttpUtils.get("/data/:cate/:size/:page", params); 46 | var newList = BaseBeanEntity.fromJsonList(res).getList(); 47 | setState(() { 48 | if (page == 1) { 49 | _dataList.clear(); 50 | } 51 | _dataList.addAll(newList); 52 | if (newList == null || newList.length == 0) { 53 | _load = 3; 54 | }else{ 55 | _load = 0; 56 | } 57 | _page = ++page; 58 | }); 59 | 60 | LogUtils.log("${widget.category}:$_dataList"); 61 | } 62 | 63 | @override 64 | Widget build(BuildContext context) { 65 | super.build(context); 66 | return Column( 67 | children: [ 68 | Expanded( 69 | child: RefreshIndicator( 70 | onRefresh: _onRefresh, 71 | child: ListView.separated( 72 | controller: _scrollController, 73 | itemBuilder: (context, index) { 74 | return ArticleItem(_dataList[index]); 75 | }, 76 | separatorBuilder: (BuildContext context, int index) { 77 | return Container( 78 | height: 1, 79 | color: Color(0xffe5e5e5), 80 | ); 81 | }, 82 | itemCount: _dataList.length, 83 | ), 84 | ), 85 | ), 86 | Offstage( 87 | offstage: _load != 2, 88 | child: Center( 89 | child: Container( 90 | child: Row( 91 | children: [ 92 | Expanded( 93 | child: Container( 94 | child: SizedBox( 95 | child: CircularProgressIndicator( 96 | strokeWidth: 2, 97 | ), 98 | width: 14, 99 | height: 14, 100 | ), 101 | alignment: Alignment.centerRight, 102 | margin: EdgeInsets.only(right: 10), 103 | ), 104 | ), 105 | Expanded( 106 | child: Text("加载更多..."), 107 | ) 108 | ], 109 | ), 110 | padding: EdgeInsets.all(15), 111 | ), 112 | ), 113 | ) 114 | ], 115 | ); 116 | } 117 | 118 | Future _onRefresh() async { 119 | setState(() { 120 | _page = 1; 121 | _load = 1; 122 | }); 123 | await _initData(_page); 124 | } 125 | 126 | Future _onLoadMore() async { 127 | if (_load == 3) return; 128 | setState(() { 129 | _load = 2; 130 | }); 131 | await _initData(_page); 132 | } 133 | 134 | @override 135 | bool get wantKeepAlive => true; 136 | } 137 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter/services.dart'; 5 | import 'package:gank_flutter/pages/about.dart'; 6 | import 'package:gank_flutter/pages/account.dart'; 7 | import 'package:gank_flutter/pages/category.dart'; 8 | import 'package:gank_flutter/pages/home.dart'; 9 | import 'package:gank_flutter/pages/meizi.dart'; 10 | import 'package:gank_flutter/pages/other_gank.dart'; 11 | import 'icons/iconfont.dart'; 12 | 13 | void main() { 14 | runApp(MyApp()); 15 | 16 | if (Platform.isAndroid) { 17 | SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle( 18 | statusBarColor: Colors.transparent, 19 | ); 20 | SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle); 21 | 22 | print("systemUiOverlayStyle"); 23 | } 24 | } 25 | 26 | class MyApp extends StatelessWidget { 27 | @override 28 | Widget build(BuildContext context) { 29 | return MaterialApp( 30 | title: 'Flutter Demo', 31 | initialRoute: "/", 32 | theme: ThemeData(primarySwatch: Colors.green, primaryColor: Colors.white),//设置App主题 33 | routes: { 34 | "/":(context)=>MyHomePage(), 35 | "/about":(context)=>About(), 36 | "/other":(context)=>OtherGank(), 37 | }, 38 | ); 39 | } 40 | } 41 | 42 | class MyHomePage extends StatefulWidget { 43 | MyHomePage({Key key, this.title}) : super(key: key); 44 | final String title; 45 | 46 | @override 47 | _MyHomePageState createState() => _MyHomePageState(); 48 | } 49 | 50 | class _MyHomePageState extends State { 51 | int _selectedIndex = 0; 52 | var _pageController = PageController(initialPage: 0); 53 | 54 | void _incrementCounter() { 55 | setState(() { 56 | _selectedIndex++; 57 | }); 58 | } 59 | 60 | void _onItemTapped(int index) { 61 | setState(() { 62 | _selectedIndex = index; 63 | }); 64 | if (_pageController.hasClients) { 65 | // _pageController.animateToPage(_selectedIndex, 66 | // duration: Duration(milliseconds: 500), curve: Curves.easeInOut); 67 | _pageController.jumpToPage(_selectedIndex); 68 | } 69 | } 70 | 71 | void _onPageChange(int index) { 72 | print("_onPageChange"); 73 | setState(() { 74 | _selectedIndex = index; 75 | }); 76 | } 77 | 78 | StatefulWidget _getPageByIndex(int index) { 79 | switch (index) { 80 | case 0: 81 | return HomePage(); 82 | case 1: 83 | return CategoryPage(); 84 | case 2: 85 | return MeiZiPage(); 86 | case 3: 87 | return AccountPage(); 88 | default: 89 | return HomePage(); 90 | } 91 | } 92 | 93 | @override 94 | Widget build(BuildContext context) { 95 | return Scaffold( 96 | body: PageView.builder( 97 | itemBuilder: (context, index) { 98 | return Center( 99 | child: _getPageByIndex(index), //每个页面展示的组件 100 | ); 101 | }, 102 | itemCount: 4, //页面数量 103 | onPageChanged: _onPageChange, //页面切换 104 | controller: _pageController, //控制器 105 | physics: NeverScrollableScrollPhysics(), 106 | ), 107 | floatingActionButton: FloatingActionButton( 108 | onPressed: _incrementCounter, 109 | tooltip: 'Increment', 110 | child: Icon(Icons.add), 111 | ), 112 | bottomNavigationBar: new BottomNavigationBar( 113 | items: [ 114 | BottomNavigationBarItem( 115 | icon: new Icon(IconFont.iconhome), title: new Text("首页")), 116 | BottomNavigationBarItem( 117 | icon: new Icon(IconFont.iconcategory), title: new Text("分类")), 118 | BottomNavigationBarItem( 119 | icon: new Icon(IconFont.iconpic), title: new Text("妹子")), 120 | BottomNavigationBarItem( 121 | icon: new Icon(IconFont.iconaccount), title: new Text("我的")), 122 | ], 123 | selectedItemColor: Color(0xFF4CAF50), 124 | unselectedItemColor: Color(0xff666666), 125 | type: BottomNavigationBarType.fixed, 126 | showUnselectedLabels: true, 127 | onTap: _onItemTapped, 128 | currentIndex: _selectedIndex, 129 | selectedFontSize: 12.0, 130 | ), 131 | ); 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /lib/pages/meizi.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; 3 | import 'package:gank_flutter/model/base_bean_entity.dart'; 4 | import 'package:gank_flutter/model/mei_zi_entity.dart'; 5 | import 'package:gank_flutter/utils/HttpUtils.dart'; 6 | import 'package:gank_flutter/utils/LogUtils.dart'; 7 | import 'package:gank_flutter/widget/meizi_item.dart'; 8 | 9 | class MeiZiPage extends StatefulWidget { 10 | @override 11 | _MeiZiPageState createState() => _MeiZiPageState(); 12 | } 13 | 14 | class _MeiZiPageState extends State { 15 | var _scrollController = new ScrollController(initialScrollOffset: 0); 16 | var _imageList = []; 17 | var _load = 0; 18 | int _page = 0; 19 | 20 | @override 21 | void initState() { 22 | super.initState(); 23 | _scrollController.addListener(() { 24 | var px = _scrollController.position.pixels; 25 | if (px == _scrollController.position.maxScrollExtent) { 26 | LogUtils.log("加载更多!"); 27 | _onLoadMore(); 28 | } 29 | }); 30 | 31 | _initData(_page); 32 | } 33 | 34 | Future _initData(int page) async { 35 | var map = Map(); 36 | map["size"] = 10; 37 | map["page"] = page; 38 | var res = await HttpUtils.get("/data/福利/:size/:page", map); 39 | var newList = BaseBeanEntity.fromJsonList(res).getList(); 40 | setState(() { 41 | if (page == 1) { 42 | _imageList.clear(); 43 | } 44 | _imageList.addAll(newList); //results为数组 45 | if (newList == null || newList.length == 0) { 46 | _load = 3; 47 | } else { 48 | _load = 0; 49 | } 50 | _page++; 51 | }); 52 | } 53 | 54 | @override 55 | Widget build(BuildContext context) { 56 | return Scaffold( 57 | appBar: AppBar( 58 | title: Center( 59 | child: Text("妹子"), 60 | ), 61 | ), 62 | body: Column( 63 | children: [ 64 | Expanded( 65 | child: RefreshIndicator( 66 | onRefresh: _onRefresh, 67 | child: StaggeredGridView.countBuilder( 68 | controller: _scrollController, 69 | padding: EdgeInsets.all(8), 70 | crossAxisCount: 4, 71 | itemCount: _imageList.length, 72 | itemBuilder: (BuildContext context, int index) { 73 | MeiZiEntity item = _imageList[index]; 74 | return MeiZiItem(item); 75 | }, 76 | staggeredTileBuilder: (int index) => 77 | new StaggeredTile.count(2, index == 0 ? 1.5 : 2), 78 | mainAxisSpacing: 8.0, 79 | crossAxisSpacing: 8.0, 80 | ), 81 | ), 82 | ), 83 | Offstage( 84 | offstage: _load != 2, 85 | child: Center( 86 | child: Container( 87 | child: Row( 88 | children: [ 89 | Expanded( 90 | child: Container( 91 | child: SizedBox( 92 | child: CircularProgressIndicator( 93 | strokeWidth: 2, 94 | ), 95 | width: 14, 96 | height: 14, 97 | ), 98 | alignment: Alignment.centerRight, 99 | margin: EdgeInsets.only(right: 10), 100 | ), 101 | ), 102 | Expanded( 103 | child: Text("加载更多..."), 104 | ) 105 | ], 106 | ), 107 | padding: EdgeInsets.all(15), 108 | ), 109 | ), 110 | ) 111 | ], 112 | ), 113 | ); 114 | } 115 | 116 | Future _onRefresh() async { 117 | setState(() { 118 | _page = 1; 119 | _load = 1; 120 | }); 121 | await _initData(_page); 122 | print("_onRefresh"); 123 | } 124 | 125 | Future _onLoadMore() async { 126 | if (_load == 3) return; 127 | setState(() { 128 | _load = 2; 129 | }); 130 | await _initData(_page); 131 | print("_onLoadMore"); 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 9 | source: hosted 10 | version: "2.2.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 16 | source: hosted 17 | version: "1.0.4" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 23 | source: hosted 24 | version: "1.1.2" 25 | collection: 26 | dependency: transitive 27 | description: 28 | name: collection 29 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 30 | source: hosted 31 | version: "1.14.11" 32 | cookie_jar: 33 | dependency: transitive 34 | description: 35 | name: cookie_jar 36 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 37 | source: hosted 38 | version: "1.0.1" 39 | cupertino_icons: 40 | dependency: "direct main" 41 | description: 42 | name: cupertino_icons 43 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 44 | source: hosted 45 | version: "0.1.2" 46 | dio: 47 | dependency: "direct main" 48 | description: 49 | name: dio 50 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 51 | source: hosted 52 | version: "2.1.13" 53 | flutter: 54 | dependency: "direct main" 55 | description: flutter 56 | source: sdk 57 | version: "0.0.0" 58 | flutter_staggered_grid_view: 59 | dependency: "direct main" 60 | description: 61 | name: flutter_staggered_grid_view 62 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 63 | source: hosted 64 | version: "0.3.0" 65 | flutter_test: 66 | dependency: "direct dev" 67 | description: flutter 68 | source: sdk 69 | version: "0.0.0" 70 | matcher: 71 | dependency: transitive 72 | description: 73 | name: matcher 74 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 75 | source: hosted 76 | version: "0.12.5" 77 | meta: 78 | dependency: transitive 79 | description: 80 | name: meta 81 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 82 | source: hosted 83 | version: "1.1.6" 84 | path: 85 | dependency: transitive 86 | description: 87 | name: path 88 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 89 | source: hosted 90 | version: "1.6.2" 91 | pedantic: 92 | dependency: transitive 93 | description: 94 | name: pedantic 95 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 96 | source: hosted 97 | version: "1.7.0" 98 | quiver: 99 | dependency: transitive 100 | description: 101 | name: quiver 102 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 103 | source: hosted 104 | version: "2.0.3" 105 | sky_engine: 106 | dependency: transitive 107 | description: flutter 108 | source: sdk 109 | version: "0.0.99" 110 | source_span: 111 | dependency: transitive 112 | description: 113 | name: source_span 114 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 115 | source: hosted 116 | version: "1.5.5" 117 | stack_trace: 118 | dependency: transitive 119 | description: 120 | name: stack_trace 121 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 122 | source: hosted 123 | version: "1.9.3" 124 | stream_channel: 125 | dependency: transitive 126 | description: 127 | name: stream_channel 128 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 129 | source: hosted 130 | version: "2.0.0" 131 | string_scanner: 132 | dependency: transitive 133 | description: 134 | name: string_scanner 135 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 136 | source: hosted 137 | version: "1.0.4" 138 | term_glyph: 139 | dependency: transitive 140 | description: 141 | name: term_glyph 142 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 143 | source: hosted 144 | version: "1.1.0" 145 | test_api: 146 | dependency: transitive 147 | description: 148 | name: test_api 149 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 150 | source: hosted 151 | version: "0.2.5" 152 | typed_data: 153 | dependency: transitive 154 | description: 155 | name: typed_data 156 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 157 | source: hosted 158 | version: "1.1.6" 159 | vector_math: 160 | dependency: transitive 161 | description: 162 | name: vector_math 163 | url: "https://dart-pub.mirrors.sjtug.sjtu.edu.cn/" 164 | source: hosted 165 | version: "2.0.8" 166 | sdks: 167 | dart: ">=2.2.2 <3.0.0" 168 | flutter: ">=1.6.0" 169 | -------------------------------------------------------------------------------- /lib/pages/home.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:gank_flutter/icons/iconfont.dart'; 5 | 6 | class HomePage extends StatefulWidget { 7 | @override 8 | _HomeState createState() => _HomeState(); 9 | } 10 | 11 | class _HomeState extends State with WidgetsBindingObserver { 12 | var _pageController = PageController(initialPage: 1, viewportFraction: 0.8); 13 | var _scrollController = ScrollController(); 14 | static const _imageList = [ 15 | "https://hbimg.huabanimg.com/fa7be73547c402acc9c7a1e8717cba4d87a487c51adaa-4aL4RO_fw658", 16 | "https://hbimg.huabanimg.com/621034b37c53ffc81f5d6a23ae1226d5c67e2b9628267-BYuZLo_fw658", 17 | "https://hbimg.huabanimg.com/78357472c41451bb06ddf8e1bf63f4fe38d054a32b5e4-IuY8EO_fw658", 18 | "https://hbimg.huabanimg.com/4ef3886fd17a74c9ae5c60ffffed13a62b49c7a33acdf-flB6An_fw658", 19 | "https://hbimg.huabanimg.com/a9d10755cdf6fef52d529a807810c937dd4c70552bb46-sAwWOc_fw658" 20 | ]; 21 | 22 | var _newList = List(); 23 | Timer _timer; 24 | var _index = 1; 25 | List _data = List(); 26 | 27 | @override 28 | void initState() { 29 | super.initState(); 30 | WidgetsBinding.instance.addObserver(this); 31 | _newList = _getImgList(); 32 | _timer = Timer.periodic(Duration(milliseconds: 5000), _loopBanner); 33 | _data = _getData(); 34 | print("initState"); 35 | } 36 | 37 | @override 38 | void didChangeDependencies() { 39 | super.didChangeDependencies(); 40 | print("didChangeDependencies"); 41 | } 42 | 43 | @override 44 | void didChangeAppLifecycleState(AppLifecycleState state) async { 45 | print("didChangeAppLifecycleState:$state"); 46 | } 47 | 48 | List _getData() { 49 | var list = List(); 50 | for (var i = 0; i < 30; i++) { 51 | list.add(i); 52 | } 53 | return list; 54 | } 55 | 56 | List _getImgList() { 57 | var list = List(); 58 | var first = _imageList[0]; 59 | var last = _imageList[_imageList.length - 1]; 60 | list.add(last); 61 | list.addAll(_imageList); 62 | list.add(first); 63 | 64 | return list; 65 | } 66 | 67 | Widget _getWidget(int index) { 68 | if (index == 0) { 69 | return Container( 70 | height: 200, 71 | child: PageView.builder( 72 | itemBuilder: (context, index) { 73 | return Container( 74 | padding: EdgeInsets.all(10), 75 | child: ClipRRect( 76 | borderRadius: BorderRadius.circular(8), 77 | child: Image.network( 78 | _newList[index], 79 | fit: BoxFit.cover, 80 | ), 81 | ), 82 | ); 83 | }, 84 | itemCount: _newList.length, 85 | controller: _pageController, 86 | onPageChanged: _onPageChange, 87 | ), 88 | ); 89 | } else if (index < _data.length + 1) { 90 | var showText = _data[index - 1]; 91 | 92 | return Container( 93 | padding: EdgeInsets.all(10), 94 | color: Colors.white, 95 | child: Row( 96 | children: [ 97 | Expanded( 98 | child: Align( 99 | alignment: Alignment.centerLeft, 100 | child: Column( 101 | children: [ 102 | Align( 103 | alignment: Alignment.centerLeft, 104 | child: Text( 105 | "$showText Flutter demo item title label!Flutter demo item title label!Flutter demo item title label!Flutter demo item title label!Flutter demo item title label!", 106 | maxLines: 2, 107 | overflow: TextOverflow.ellipsis, 108 | ), 109 | ), 110 | Container( 111 | height: 10, 112 | ), 113 | Row( 114 | children: [ 115 | Icon( 116 | IconFont.iconzuozhe, 117 | color: Colors.green, 118 | size: 20, 119 | ), 120 | Text("testUser"), 121 | Container( 122 | width: 10, 123 | ), 124 | Icon( 125 | IconFont.iconshijian, 126 | color: Colors.green, 127 | size: 20, 128 | ), 129 | Text("2019-8-20"), 130 | ], 131 | ) 132 | ], 133 | ), 134 | ), 135 | ), 136 | Container( 137 | width: 15, 138 | ), 139 | ClipRRect( 140 | borderRadius: BorderRadius.circular(4), 141 | child: Image.network( 142 | "https://hbimg.huabanimg.com/a9d10755cdf6fef52d529a807810c937dd4c70552bb46-sAwWOc_fw658", 143 | alignment: Alignment.centerRight, 144 | width: 80, 145 | height: 80, 146 | ), 147 | ) 148 | ], 149 | )); 150 | } 151 | return Container(); 152 | } 153 | 154 | @override 155 | Widget build(BuildContext context) { 156 | print("build"); 157 | return Scaffold( 158 | appBar: AppBar( 159 | backgroundColor: Colors.white, 160 | brightness: Brightness.light, 161 | title: Center( 162 | child: Text( 163 | "首页", 164 | ), 165 | ), 166 | ), 167 | body: RefreshIndicator( 168 | onRefresh: _onRefresh, 169 | child: ListView.separated( 170 | controller: _scrollController, 171 | itemBuilder: (context, index) { 172 | return _getWidget(index); 173 | }, 174 | separatorBuilder: (context, index) { 175 | return new Container( 176 | height: 1, 177 | color: index == 0 ? Colors.transparent : Color(0xfff5f5f5), 178 | ); 179 | }, 180 | itemCount: _data.length + 1, 181 | ), 182 | ), 183 | ); 184 | } 185 | 186 | void _onPageChange(int index) { 187 | setState(() { 188 | _index = index; 189 | }); 190 | if (index == 0) { 191 | if (_pageController.hasClients) { 192 | _pageController.jumpToPage(_newList.length - 2); 193 | } 194 | } else if (index == _newList.length - 1) { 195 | if (_pageController.hasClients) { 196 | _pageController.jumpToPage(1); 197 | } 198 | } 199 | } 200 | 201 | void _loopBanner(Timer timer) { 202 | _index++; 203 | if (_index > _newList.length - 2) { 204 | _index = 1; 205 | } 206 | _pageController.animateToPage(_index, 207 | duration: Duration(milliseconds: 200), curve: Curves.easeInOut); 208 | } 209 | 210 | @override 211 | void didUpdateWidget(HomePage oldWidget) { 212 | super.didUpdateWidget(oldWidget); 213 | } 214 | 215 | @override 216 | void deactivate() { 217 | print("deactivate"); 218 | _timer.cancel(); 219 | super.deactivate(); 220 | } 221 | 222 | @override 223 | void dispose() { 224 | print("dispose"); 225 | super.dispose(); 226 | } 227 | 228 | Future _onRefresh() async { 229 | print("_onRefresh"); 230 | await Future.delayed(Duration(milliseconds: 1500)); 231 | } 232 | } 233 | -------------------------------------------------------------------------------- /lib/pages/account.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gank_flutter/icons/iconfont.dart'; 3 | import 'package:gank_flutter/pages/about.dart'; 4 | import 'package:gank_flutter/pages/other_gank.dart'; 5 | import 'package:gank_flutter/utils/LogUtils.dart'; 6 | 7 | class AccountPage extends StatefulWidget { 8 | @override 9 | _AccountPageState createState() => _AccountPageState(); 10 | } 11 | 12 | class _AccountPageState extends State { 13 | @override 14 | Widget build(BuildContext context) { 15 | return Container( 16 | color: Color(0xfff5f5f5), 17 | child: Column( 18 | children: [ 19 | Container( 20 | height: 200, 21 | width: MediaQuery.of(context).size.width, 22 | decoration: BoxDecoration( 23 | color: Colors.white, 24 | border: Border(bottom: BorderSide(color: Color(0xffe5e5e5)))), 25 | child: Row( 26 | children: [ 27 | Center( 28 | child: Container( 29 | width: 80, 30 | height: 80, 31 | margin: EdgeInsets.only(left: 30, top: 50), 32 | child: ClipRRect( 33 | borderRadius: BorderRadius.circular(6), 34 | child: Image.network( 35 | "https://hbimg.huabanimg.com/fa7be73547c402acc9c7a1e8717cba4d87a487c51adaa-4aL4RO_fw658", 36 | fit: BoxFit.cover, 37 | ), 38 | ), 39 | ), 40 | ), 41 | Expanded( 42 | child: Container( 43 | margin: EdgeInsets.only(left: 30, top: 50), 44 | child: Column( 45 | children: [ 46 | Expanded( 47 | child: Container( 48 | child: Align( 49 | alignment: Alignment.bottomLeft, 50 | child: Text( 51 | "YunLei", 52 | style: TextStyle( 53 | fontSize: 26, fontWeight: FontWeight.bold), 54 | ), 55 | ), 56 | ), 57 | ), 58 | Expanded( 59 | child: Container( 60 | margin: EdgeInsets.only(top: 6), 61 | child: Align( 62 | alignment: Alignment.topLeft, 63 | child: Row( 64 | children: [ 65 | Expanded( 66 | child: Text( 67 | "Gank账号:test123@gank.io", 68 | style: 69 | TextStyle(color: Color(0xff666666)), 70 | ), 71 | ), 72 | Icon( 73 | IconFont.iconright, 74 | color: Color(0xff666666), 75 | size: 15, 76 | ), 77 | Container( 78 | width: 15, 79 | height: 0, 80 | ) 81 | ], 82 | ), 83 | ), 84 | ), 85 | ), 86 | ], 87 | ), 88 | ), 89 | ) 90 | ], 91 | ), 92 | ), 93 | Container( 94 | margin: EdgeInsets.only(top: 16), 95 | decoration: BoxDecoration( 96 | color: Colors.white, 97 | border: Border( 98 | top: BorderSide(color: Color(0xffe5e5e5)), 99 | bottom: BorderSide(color: Color(0xffe5e5e5)))), 100 | child: Row( 101 | children: [ 102 | Container( 103 | padding: EdgeInsets.fromLTRB(15, 20, 10, 20), 104 | child: Icon( 105 | IconFont.iconsearch, 106 | color: Colors.green, 107 | size: 30, 108 | ), 109 | ), 110 | Expanded( 111 | child: Text( 112 | "搜索干货", 113 | style: TextStyle( 114 | color: Color(0xff1a1a1a), 115 | fontSize: 18, 116 | ), 117 | ), 118 | ), 119 | Icon( 120 | IconFont.iconright, 121 | color: Color(0xff666666), 122 | size: 18, 123 | ), 124 | Container( 125 | width: 15, 126 | height: 0, 127 | ) 128 | ], 129 | ), 130 | ), 131 | Container( 132 | decoration: BoxDecoration( 133 | color: Colors.white, 134 | border: Border(bottom: BorderSide(color: Color(0xffe5e5e5)))), 135 | child: Row( 136 | children: [ 137 | Container( 138 | padding: EdgeInsets.fromLTRB(15, 20, 10, 20), 139 | child: Icon( 140 | IconFont.iconhistory, 141 | color: Colors.green, 142 | size: 30, 143 | ), 144 | ), 145 | Expanded( 146 | child: Text( 147 | "历史干货", 148 | style: TextStyle( 149 | color: Color(0xff1a1a1a), 150 | fontSize: 18, 151 | ), 152 | ), 153 | ), 154 | Icon( 155 | IconFont.iconright, 156 | color: Color(0xff666666), 157 | size: 18, 158 | ), 159 | Container( 160 | width: 15, 161 | height: 0, 162 | ) 163 | ], 164 | ), 165 | ), 166 | GestureDetector( 167 | onTap: () async { 168 | // Navigator.push(context, MaterialPageRoute(builder: (context) => (OtherGank(content: "这是route传递的参数",)))); 169 | var res = await Navigator.pushNamed(context, "/other", 170 | arguments: "这是route传递的参数"); 171 | LogUtils.log(res); 172 | }, 173 | child: Container( 174 | margin: EdgeInsets.only(top: 16), 175 | decoration: BoxDecoration( 176 | color: Colors.white, 177 | border: Border( 178 | top: BorderSide(color: Color(0xffe5e5e5)), 179 | bottom: BorderSide(color: Color(0xffe5e5e5)))), 180 | child: Row( 181 | children: [ 182 | Container( 183 | padding: EdgeInsets.fromLTRB(15, 20, 10, 20), 184 | child: Icon( 185 | IconFont.icongithub, 186 | color: Colors.green, 187 | size: 30, 188 | ), 189 | ), 190 | Expanded( 191 | child: Text( 192 | "其他Gank项目", 193 | style: TextStyle( 194 | color: Color(0xff1a1a1a), 195 | fontSize: 18, 196 | ), 197 | ), 198 | ), 199 | Icon( 200 | IconFont.iconright, 201 | color: Color(0xff666666), 202 | size: 18, 203 | ), 204 | Container( 205 | width: 15, 206 | height: 0, 207 | ) 208 | ], 209 | ), 210 | ), 211 | ), 212 | Container( 213 | decoration: BoxDecoration( 214 | color: Colors.white, 215 | border: Border(bottom: BorderSide(color: Color(0xffe5e5e5)))), 216 | child: Row( 217 | children: [ 218 | Container( 219 | padding: EdgeInsets.fromLTRB(15, 20, 10, 20), 220 | child: Icon( 221 | IconFont.iconlike, 222 | color: Colors.green, 223 | size: 30, 224 | ), 225 | ), 226 | Expanded( 227 | child: Text( 228 | "点赞", 229 | style: TextStyle( 230 | color: Color(0xff1a1a1a), 231 | fontSize: 18, 232 | ), 233 | ), 234 | ), 235 | Icon( 236 | IconFont.iconright, 237 | color: Color(0xff666666), 238 | size: 18, 239 | ), 240 | Container( 241 | width: 15, 242 | height: 0, 243 | ) 244 | ], 245 | ), 246 | ), 247 | GestureDetector( 248 | onTap: () { 249 | Navigator.pushNamed(context, "/about"); 250 | // Navigator.push(context, MaterialPageRoute(builder: (context) => (About()))); 251 | }, 252 | child: Container( 253 | margin: EdgeInsets.only(top: 16), 254 | decoration: BoxDecoration( 255 | color: Colors.white, 256 | border: Border( 257 | top: BorderSide(color: Color(0xffe5e5e5)), 258 | bottom: BorderSide(color: Color(0xffe5e5e5)))), 259 | child: Row( 260 | children: [ 261 | Container( 262 | padding: EdgeInsets.fromLTRB(15, 20, 10, 20), 263 | child: Icon( 264 | IconFont.iconabout, 265 | color: Colors.green, 266 | size: 30, 267 | ), 268 | ), 269 | Expanded( 270 | child: Text( 271 | "关于", 272 | style: TextStyle( 273 | color: Color(0xff1a1a1a), 274 | fontSize: 18, 275 | ), 276 | ), 277 | ), 278 | Icon( 279 | IconFont.iconright, 280 | color: Color(0xff666666), 281 | size: 18, 282 | ), 283 | Container( 284 | width: 15, 285 | height: 0, 286 | ) 287 | ], 288 | ), 289 | ), 290 | ) 291 | ], 292 | ), 293 | ); 294 | } 295 | } 296 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B80C3931E831B6300D905FE /* App.framework */, 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 80 | ); 81 | name = Flutter; 82 | sourceTree = ""; 83 | }; 84 | 97C146E51CF9000F007C117D = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9740EEB11CF90186004384FC /* Flutter */, 88 | 97C146F01CF9000F007C117D /* Runner */, 89 | 97C146EF1CF9000F007C117D /* Products */, 90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 97C146EF1CF9000F007C117D /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146EE1CF9000F007C117D /* Runner.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 97C146F01CF9000F007C117D /* Runner */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 107 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 110 | 97C147021CF9000F007C117D /* Info.plist */, 111 | 97C146F11CF9000F007C117D /* Supporting Files */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | ); 115 | path = Runner; 116 | sourceTree = ""; 117 | }; 118 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 97C146F21CF9000F007C117D /* main.m */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 97C146ED1CF9000F007C117D /* Runner */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 132 | buildPhases = ( 133 | 9740EEB61CF901F6004384FC /* Run Script */, 134 | 97C146EA1CF9000F007C117D /* Sources */, 135 | 97C146EB1CF9000F007C117D /* Frameworks */, 136 | 97C146EC1CF9000F007C117D /* Resources */, 137 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = Runner; 145 | productName = Runner; 146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | 97C146E61CF9000F007C117D /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastUpgradeCheck = 1020; 156 | ORGANIZATIONNAME = "The Chromium Authors"; 157 | TargetAttributes = { 158 | 97C146ED1CF9000F007C117D = { 159 | CreatedOnToolsVersion = 7.3.1; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = en; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | en, 169 | Base, 170 | ); 171 | mainGroup = 97C146E51CF9000F007C117D; 172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 173 | projectDirPath = ""; 174 | projectRoot = ""; 175 | targets = ( 176 | 97C146ED1CF9000F007C117D /* Runner */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | 97C146EC1CF9000F007C117D /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | /* End PBXResourcesBuildPhase section */ 195 | 196 | /* Begin PBXShellScriptBuildPhase section */ 197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "Thin Binary"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 210 | }; 211 | 9740EEB61CF901F6004384FC /* Run Script */ = { 212 | isa = PBXShellScriptBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | ); 216 | inputPaths = ( 217 | ); 218 | name = "Run Script"; 219 | outputPaths = ( 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 224 | }; 225 | /* End PBXShellScriptBuildPhase section */ 226 | 227 | /* Begin PBXSourcesBuildPhase section */ 228 | 97C146EA1CF9000F007C117D /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 233 | 97C146F31CF9000F007C117D /* main.m in Sources */, 234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXSourcesBuildPhase section */ 239 | 240 | /* Begin PBXVariantGroup section */ 241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 242 | isa = PBXVariantGroup; 243 | children = ( 244 | 97C146FB1CF9000F007C117D /* Base */, 245 | ); 246 | name = Main.storyboard; 247 | sourceTree = ""; 248 | }; 249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | 97C147001CF9000F007C117D /* Base */, 253 | ); 254 | name = LaunchScreen.storyboard; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXVariantGroup section */ 258 | 259 | /* Begin XCBuildConfiguration section */ 260 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 261 | isa = XCBuildConfiguration; 262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 263 | buildSettings = { 264 | ALWAYS_SEARCH_USER_PATHS = NO; 265 | CLANG_ANALYZER_NONNULL = YES; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 271 | CLANG_WARN_BOOL_CONVERSION = YES; 272 | CLANG_WARN_COMMA = YES; 273 | CLANG_WARN_CONSTANT_CONVERSION = YES; 274 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 275 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 276 | CLANG_WARN_EMPTY_BODY = YES; 277 | CLANG_WARN_ENUM_CONVERSION = YES; 278 | CLANG_WARN_INFINITE_RECURSION = YES; 279 | CLANG_WARN_INT_CONVERSION = YES; 280 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 282 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 283 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 284 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 285 | CLANG_WARN_STRICT_PROTOTYPES = YES; 286 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 287 | CLANG_WARN_UNREACHABLE_CODE = YES; 288 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 289 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 290 | COPY_PHASE_STRIP = NO; 291 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 292 | ENABLE_NS_ASSERTIONS = NO; 293 | ENABLE_STRICT_OBJC_MSGSEND = YES; 294 | GCC_C_LANGUAGE_STANDARD = gnu99; 295 | GCC_NO_COMMON_BLOCKS = YES; 296 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 297 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 298 | GCC_WARN_UNDECLARED_SELECTOR = YES; 299 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 300 | GCC_WARN_UNUSED_FUNCTION = YES; 301 | GCC_WARN_UNUSED_VARIABLE = YES; 302 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 303 | MTL_ENABLE_DEBUG_INFO = NO; 304 | SDKROOT = iphoneos; 305 | TARGETED_DEVICE_FAMILY = "1,2"; 306 | VALIDATE_PRODUCT = YES; 307 | }; 308 | name = Profile; 309 | }; 310 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 311 | isa = XCBuildConfiguration; 312 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 313 | buildSettings = { 314 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 315 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 316 | DEVELOPMENT_TEAM = S8QB4VV633; 317 | ENABLE_BITCODE = NO; 318 | FRAMEWORK_SEARCH_PATHS = ( 319 | "$(inherited)", 320 | "$(PROJECT_DIR)/Flutter", 321 | ); 322 | INFOPLIST_FILE = Runner/Info.plist; 323 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 324 | LIBRARY_SEARCH_PATHS = ( 325 | "$(inherited)", 326 | "$(PROJECT_DIR)/Flutter", 327 | ); 328 | PRODUCT_BUNDLE_IDENTIFIER = io.gank.ly.gankFlutter; 329 | PRODUCT_NAME = "$(TARGET_NAME)"; 330 | VERSIONING_SYSTEM = "apple-generic"; 331 | }; 332 | name = Profile; 333 | }; 334 | 97C147031CF9000F007C117D /* Debug */ = { 335 | isa = XCBuildConfiguration; 336 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 337 | buildSettings = { 338 | ALWAYS_SEARCH_USER_PATHS = NO; 339 | CLANG_ANALYZER_NONNULL = YES; 340 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 341 | CLANG_CXX_LIBRARY = "libc++"; 342 | CLANG_ENABLE_MODULES = YES; 343 | CLANG_ENABLE_OBJC_ARC = YES; 344 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 345 | CLANG_WARN_BOOL_CONVERSION = YES; 346 | CLANG_WARN_COMMA = YES; 347 | CLANG_WARN_CONSTANT_CONVERSION = YES; 348 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 349 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 350 | CLANG_WARN_EMPTY_BODY = YES; 351 | CLANG_WARN_ENUM_CONVERSION = YES; 352 | CLANG_WARN_INFINITE_RECURSION = YES; 353 | CLANG_WARN_INT_CONVERSION = YES; 354 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 355 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 356 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 358 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 359 | CLANG_WARN_STRICT_PROTOTYPES = YES; 360 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 361 | CLANG_WARN_UNREACHABLE_CODE = YES; 362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 364 | COPY_PHASE_STRIP = NO; 365 | DEBUG_INFORMATION_FORMAT = dwarf; 366 | ENABLE_STRICT_OBJC_MSGSEND = YES; 367 | ENABLE_TESTABILITY = YES; 368 | GCC_C_LANGUAGE_STANDARD = gnu99; 369 | GCC_DYNAMIC_NO_PIC = NO; 370 | GCC_NO_COMMON_BLOCKS = YES; 371 | GCC_OPTIMIZATION_LEVEL = 0; 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 378 | GCC_WARN_UNDECLARED_SELECTOR = YES; 379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 380 | GCC_WARN_UNUSED_FUNCTION = YES; 381 | GCC_WARN_UNUSED_VARIABLE = YES; 382 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 383 | MTL_ENABLE_DEBUG_INFO = YES; 384 | ONLY_ACTIVE_ARCH = YES; 385 | SDKROOT = iphoneos; 386 | TARGETED_DEVICE_FAMILY = "1,2"; 387 | }; 388 | name = Debug; 389 | }; 390 | 97C147041CF9000F007C117D /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 393 | buildSettings = { 394 | ALWAYS_SEARCH_USER_PATHS = NO; 395 | CLANG_ANALYZER_NONNULL = YES; 396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 397 | CLANG_CXX_LIBRARY = "libc++"; 398 | CLANG_ENABLE_MODULES = YES; 399 | CLANG_ENABLE_OBJC_ARC = YES; 400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 401 | CLANG_WARN_BOOL_CONVERSION = YES; 402 | CLANG_WARN_COMMA = YES; 403 | CLANG_WARN_CONSTANT_CONVERSION = YES; 404 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 406 | CLANG_WARN_EMPTY_BODY = YES; 407 | CLANG_WARN_ENUM_CONVERSION = YES; 408 | CLANG_WARN_INFINITE_RECURSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 412 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 413 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 414 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 415 | CLANG_WARN_STRICT_PROTOTYPES = YES; 416 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 417 | CLANG_WARN_UNREACHABLE_CODE = YES; 418 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 419 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 420 | COPY_PHASE_STRIP = NO; 421 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 422 | ENABLE_NS_ASSERTIONS = NO; 423 | ENABLE_STRICT_OBJC_MSGSEND = YES; 424 | GCC_C_LANGUAGE_STANDARD = gnu99; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 427 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 428 | GCC_WARN_UNDECLARED_SELECTOR = YES; 429 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 430 | GCC_WARN_UNUSED_FUNCTION = YES; 431 | GCC_WARN_UNUSED_VARIABLE = YES; 432 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 433 | MTL_ENABLE_DEBUG_INFO = NO; 434 | SDKROOT = iphoneos; 435 | TARGETED_DEVICE_FAMILY = "1,2"; 436 | VALIDATE_PRODUCT = YES; 437 | }; 438 | name = Release; 439 | }; 440 | 97C147061CF9000F007C117D /* Debug */ = { 441 | isa = XCBuildConfiguration; 442 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 443 | buildSettings = { 444 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = io.gank.ly.gankFlutter; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | VERSIONING_SYSTEM = "apple-generic"; 460 | }; 461 | name = Debug; 462 | }; 463 | 97C147071CF9000F007C117D /* Release */ = { 464 | isa = XCBuildConfiguration; 465 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 466 | buildSettings = { 467 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 468 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 469 | ENABLE_BITCODE = NO; 470 | FRAMEWORK_SEARCH_PATHS = ( 471 | "$(inherited)", 472 | "$(PROJECT_DIR)/Flutter", 473 | ); 474 | INFOPLIST_FILE = Runner/Info.plist; 475 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 476 | LIBRARY_SEARCH_PATHS = ( 477 | "$(inherited)", 478 | "$(PROJECT_DIR)/Flutter", 479 | ); 480 | PRODUCT_BUNDLE_IDENTIFIER = io.gank.ly.gankFlutter; 481 | PRODUCT_NAME = "$(TARGET_NAME)"; 482 | VERSIONING_SYSTEM = "apple-generic"; 483 | }; 484 | name = Release; 485 | }; 486 | /* End XCBuildConfiguration section */ 487 | 488 | /* Begin XCConfigurationList section */ 489 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 490 | isa = XCConfigurationList; 491 | buildConfigurations = ( 492 | 97C147031CF9000F007C117D /* Debug */, 493 | 97C147041CF9000F007C117D /* Release */, 494 | 249021D3217E4FDB00AE95B9 /* Profile */, 495 | ); 496 | defaultConfigurationIsVisible = 0; 497 | defaultConfigurationName = Release; 498 | }; 499 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 500 | isa = XCConfigurationList; 501 | buildConfigurations = ( 502 | 97C147061CF9000F007C117D /* Debug */, 503 | 97C147071CF9000F007C117D /* Release */, 504 | 249021D4217E4FDB00AE95B9 /* Profile */, 505 | ); 506 | defaultConfigurationIsVisible = 0; 507 | defaultConfigurationName = Release; 508 | }; 509 | /* End XCConfigurationList section */ 510 | }; 511 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 512 | } 513 | --------------------------------------------------------------------------------