└── enjoy_android ├── 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 │ │ │ ├── java │ │ │ └── com │ │ │ │ └── hale │ │ │ │ └── enjoyandroid │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── assets └── image_default.png ├── 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 │ ├── Info.plist │ └── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj └── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── WorkspaceSettings.xcsettings ├── lib ├── main.dart ├── constant │ └── textsize_const.dart ├── view │ ├── webview_page.dart │ ├── project_list_page.dart │ ├── wechat_article_list_page.dart │ ├── main_page.dart │ ├── project_practice_page.dart │ ├── wechat_article_page.dart │ └── home_page.dart ├── widget │ ├── async_snapshot_widget.dart │ ├── item_wechat_article.dart │ ├── item_home_article.dart │ └── item_project.dart ├── model │ ├── home_banner_bean.dart │ ├── project_classify_bean.dart │ ├── wechat_count_bean.dart │ ├── home_article_bean.dart │ ├── project_list_bean.dart │ └── wechat_article_bean.dart └── manager │ └── api_manager.dart ├── .metadata ├── README.md ├── test └── widget_test.dart ├── .gitignore └── pubspec.yaml /enjoy_android/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /enjoy_android/assets/image_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/assets/image_default.png -------------------------------------------------------------------------------- /enjoy_android/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /enjoy_android/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /enjoy_android/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:enjoy_android/view/main_page.dart'; 3 | 4 | void main() => runApp(App()); 5 | -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chinahaozai/enjoy_android/HEAD/enjoy_android/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /enjoy_android/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/lib/constant/textsize_const.dart: -------------------------------------------------------------------------------- 1 | class TextSizeConst { 2 | static const lagerTextSize = 30.0; 3 | static const bigTextSize = 22.0; 4 | static const normalTextSize = 18.0; 5 | static const middleTextSize = 16.0; 6 | static const smallTextSize = 14.0; 7 | static const minTextSize = 12.0; 8 | } 9 | -------------------------------------------------------------------------------- /enjoy_android/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /enjoy_android/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /enjoy_android/.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: 5391447fae6209bb21a89e6a5a6583cac1af9b4b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /enjoy_android/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. -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/java/com/hale/enjoyandroid/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.hale.enjoyandroid; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /enjoy_android/README.md: -------------------------------------------------------------------------------- 1 | # enjoy_android 2 | 3 | A new Flutter application. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.io/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | 18 | ## Flutter 学习的第一个项目 19 | 采用鸿洋大神提供的玩Android api。 20 | 详细介绍文章地址:https://www.jianshu.com/p/e8d49e7a0554 21 | -------------------------------------------------------------------------------- /enjoy_android/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /enjoy_android/lib/view/webview_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; 3 | 4 | class WebViewPage extends StatefulWidget { 5 | 6 | String url = ""; 7 | String title = ""; 8 | 9 | WebViewPage({this.title, @required this.url}); 10 | 11 | @override 12 | State createState() { 13 | return _WebViewState(); 14 | } 15 | 16 | 17 | } 18 | 19 | class _WebViewState extends State{ 20 | 21 | @override 22 | void initState() { 23 | super.initState(); 24 | 25 | } 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | return Scaffold( 30 | appBar: AppBar( 31 | title: Text(widget.title), 32 | ), 33 | body: WebviewScaffold( 34 | url: widget.url, 35 | withZoom: false, 36 | withLocalStorage: true, 37 | hidden: true, 38 | withJavascript: true, 39 | ), 40 | ); 41 | } 42 | 43 | } -------------------------------------------------------------------------------- /enjoy_android/lib/widget/async_snapshot_widget.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/material.dart'; 3 | 4 | typedef SuccessWidget=Widget Function(AsyncSnapshot snapshot); 5 | 6 | class AsyncSnapshotWidget extends StatelessWidget { 7 | AsyncSnapshot snapshot; 8 | 9 | SuccessWidget successWidget; 10 | 11 | AsyncSnapshotWidget({this.snapshot,@required this.successWidget}); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return _parseSnap(); 16 | } 17 | 18 | Widget _parseSnap() { 19 | switch (snapshot.connectionState) { 20 | case ConnectionState.none: 21 | print('还没有开始网络请求'); 22 | return Center( 23 | child: Text('准备加载...'), 24 | ); 25 | case ConnectionState.active: 26 | print('active'); 27 | return Center( 28 | child: CircularProgressIndicator(), 29 | ); 30 | case ConnectionState.waiting: 31 | print('waiting'); 32 | return Center( 33 | child: CircularProgressIndicator(), 34 | ); 35 | case ConnectionState.done: 36 | print('done'); 37 | return successWidget(snapshot); 38 | default: 39 | return null; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /enjoy_android/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:enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter/Dart/Pub related 23 | **/doc/api/ 24 | .dart_tool/ 25 | .flutter-plugins 26 | .packages 27 | .pub-cache/ 28 | .pub/ 29 | build/ 30 | 31 | # Android related 32 | **/android/**/gradle-wrapper.jar 33 | **/android/.gradle 34 | **/android/captures/ 35 | **/android/gradlew 36 | **/android/gradlew.bat 37 | **/android/local.properties 38 | **/android/**/GeneratedPluginRegistrant.java 39 | 40 | # iOS/XCode related 41 | **/ios/**/*.mode1v3 42 | **/ios/**/*.mode2v3 43 | **/ios/**/*.moved-aside 44 | **/ios/**/*.pbxuser 45 | **/ios/**/*.perspectivev3 46 | **/ios/**/*sync/ 47 | **/ios/**/.sconsign.dblite 48 | **/ios/**/.tags* 49 | **/ios/**/.vagrant/ 50 | **/ios/**/DerivedData/ 51 | **/ios/**/Icon? 52 | **/ios/**/Pods/ 53 | **/ios/**/.symlinks/ 54 | **/ios/**/profile 55 | **/ios/**/xcuserdata 56 | **/ios/.generated/ 57 | **/ios/Flutter/App.framework 58 | **/ios/Flutter/Flutter.framework 59 | **/ios/Flutter/Generated.xcconfig 60 | **/ios/Flutter/app.flx 61 | **/ios/Flutter/app.zip 62 | **/ios/Flutter/flutter_assets/ 63 | **/ios/ServiceDefinitions.json 64 | **/ios/Runner/GeneratedPluginRegistrant.* 65 | 66 | # Exceptions to above rules. 67 | !**/ios/**/default.mode1v3 68 | !**/ios/**/default.mode2v3 69 | !**/ios/**/default.pbxuser 70 | !**/ios/**/default.perspectivev3 71 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 72 | -------------------------------------------------------------------------------- /enjoy_android/lib/view/project_list_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:enjoy_android/manager/api_manager.dart'; 2 | import 'package:enjoy_android/model/project_list_bean.dart'; 3 | import 'package:enjoy_android/view/webview_page.dart'; 4 | import 'package:enjoy_android/widget/item_project.dart'; 5 | import 'package:flutter/material.dart'; 6 | 7 | /// 项目列表页 8 | class ProjectListPage extends StatefulWidget { 9 | int cid = 0; 10 | 11 | ProjectListPage({@required this.cid}); 12 | 13 | @override 14 | State createState() { 15 | return _ProjectListState(); 16 | } 17 | } 18 | 19 | class _ProjectListState extends State with AutomaticKeepAliveClientMixin { 20 | 21 | int index = 1; 22 | List projects = List(); 23 | 24 | 25 | @override 26 | void initState() { 27 | super.initState(); 28 | getList(); 29 | } 30 | 31 | @override 32 | Widget build(BuildContext context) { 33 | return ListView.builder( 34 | itemCount: projects.length, 35 | itemBuilder: (BuildContext context, int position){ 36 | return ProjectItem(projects[position]); 37 | }, 38 | ); 39 | } 40 | 41 | /// 获取项目列表 42 | void getList() async { 43 | await ApiManager().getProjectList(widget.cid, index) 44 | .then((response){ 45 | if(response != null){ 46 | var projectListBean = ProjectListBean.fromJson(response.data); 47 | setState(() { 48 | projects.addAll(projectListBean.data.datas); 49 | }); 50 | } 51 | }); 52 | } 53 | 54 | 55 | @override 56 | bool get wantKeepAlive => true; 57 | 58 | } 59 | -------------------------------------------------------------------------------- /enjoy_android/lib/view/wechat_article_list_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:enjoy_android/model/wechat_article_bean.dart'; 3 | import 'package:enjoy_android/manager/api_manager.dart'; 4 | import 'package:enjoy_android/widget/item_wechat_article.dart'; 5 | 6 | /// 微信文章列表页 7 | class WechatArticleListPage extends StatefulWidget { 8 | int cid = 0; 9 | 10 | WechatArticleListPage({@required this.cid}); 11 | 12 | @override 13 | State createState() { 14 | return _WechatArticleListState(); 15 | } 16 | } 17 | 18 | class _WechatArticleListState extends State with SingleTickerProviderStateMixin { 19 | 20 | int index = 1; 21 | List
articles = List(); 22 | 23 | 24 | @override 25 | void initState() { 26 | super.initState(); 27 | getList(); 28 | } 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | return ListView.builder( 33 | itemCount: articles.length, 34 | itemBuilder: (BuildContext context, int position){ 35 | return WechatArticleItem(articles[position]); 36 | }, 37 | ); 38 | } 39 | 40 | /// 网络请求,获取微信文章列表 41 | void getList() async { 42 | await ApiManager().getWechatArticle(widget.cid, index) 43 | .then((response){ 44 | if(response != null){ 45 | var wechatArticleBean = WechatArticleBean.fromJson(response.data); 46 | setState(() { 47 | articles.addAll(wechatArticleBean.data.datas); 48 | }); 49 | } 50 | }); 51 | } 52 | 53 | 54 | @override 55 | bool get wantKeepAlive => true; 56 | 57 | } 58 | -------------------------------------------------------------------------------- /enjoy_android/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | enjoy_android 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 | -------------------------------------------------------------------------------- /enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/lib/view/main_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:enjoy_android/view/home_page.dart'; 3 | import 'package:enjoy_android/view/project_practice_page.dart'; 4 | import 'package:enjoy_android/view/wechat_article_page.dart'; 5 | 6 | class App extends StatefulWidget { 7 | @override 8 | State createState() { 9 | return AppState(); 10 | } 11 | } 12 | 13 | class AppState extends State with TickerProviderStateMixin { 14 | var _pageCtr; 15 | int _tabIndex = 0; 16 | @override 17 | void initState() { 18 | _pageCtr = PageController(initialPage: 0, keepPage: true); 19 | } 20 | 21 | @override 22 | void dispose() { 23 | _pageCtr.dispose(); 24 | super.dispose(); 25 | } 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | return MaterialApp( 30 | home: Scaffold( 31 | body: PageView( 32 | controller: _pageCtr, 33 | physics: NeverScrollableScrollPhysics(), 34 | children: [ 35 | HomePage(), 36 | ProjectPracticePage(), 37 | WechatArticlePage(), 38 | ], 39 | ), 40 | bottomNavigationBar: BottomNavigationBar( 41 | currentIndex: _tabIndex, 42 | type: BottomNavigationBarType.fixed, 43 | fixedColor: Colors.deepPurpleAccent, 44 | onTap: (index) => _tap(index), 45 | items: [ 46 | BottomNavigationBarItem( 47 | title: Text('推荐'), icon: Icon(Icons.home)), 48 | BottomNavigationBarItem( 49 | title: Text('项目'), icon: Icon(Icons.map)), 50 | BottomNavigationBarItem( 51 | title: Text('公众号'), icon: Icon(Icons.contact_mail)), 52 | ]), 53 | ), 54 | ); 55 | } 56 | 57 | _tap(int index) { 58 | setState(() { 59 | _tabIndex = index; 60 | _pageCtr.jumpToPage(index); 61 | }); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /enjoy_android/lib/model/home_banner_bean.dart: -------------------------------------------------------------------------------- 1 | 2 | class HomeBannerBean { 3 | List data; 4 | int errorCode; 5 | String errorMsg; 6 | 7 | HomeBannerBean({this.data, this.errorCode, this.errorMsg}); 8 | 9 | HomeBannerBean.fromJson(Map json) { 10 | if (json['data'] != null) { 11 | data = new List(); 12 | json['data'].forEach((v) { 13 | data.add(new HomeBanner.fromJson(v)); 14 | }); 15 | } 16 | errorCode = json['errorCode']; 17 | errorMsg = json['errorMsg']; 18 | } 19 | 20 | Map toJson() { 21 | final Map data = new Map(); 22 | if (this.data != null) { 23 | data['data'] = this.data.map((v) => v.toJson()).toList(); 24 | } 25 | data['errorCode'] = this.errorCode; 26 | data['errorMsg'] = this.errorMsg; 27 | return data; 28 | } 29 | } 30 | 31 | class HomeBanner { 32 | String desc; 33 | int id; 34 | String imagePath; 35 | int isVisible; 36 | int order; 37 | String title; 38 | int type; 39 | String url; 40 | 41 | HomeBanner( 42 | {this.desc, 43 | this.id, 44 | this.imagePath, 45 | this.isVisible, 46 | this.order, 47 | this.title, 48 | this.type, 49 | this.url}); 50 | 51 | HomeBanner.fromJson(Map json) { 52 | desc = json['desc']; 53 | id = json['id']; 54 | imagePath = json['imagePath']; 55 | isVisible = json['isVisible']; 56 | order = json['order']; 57 | title = json['title']; 58 | type = json['type']; 59 | url = json['url']; 60 | } 61 | 62 | Map toJson() { 63 | final Map data = new Map(); 64 | data['desc'] = this.desc; 65 | data['id'] = this.id; 66 | data['imagePath'] = this.imagePath; 67 | data['isVisible'] = this.isVisible; 68 | data['order'] = this.order; 69 | data['title'] = this.title; 70 | data['type'] = this.type; 71 | data['url'] = this.url; 72 | return data; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /enjoy_android/lib/model/project_classify_bean.dart: -------------------------------------------------------------------------------- 1 | 2 | class ProjectClassifyBean { 3 | List data; 4 | int errorCode; 5 | String errorMsg; 6 | 7 | ProjectClassifyBean({this.data, this.errorCode, this.errorMsg}); 8 | 9 | ProjectClassifyBean.fromJson(Map json) { 10 | if (json['data'] != null) { 11 | data = new List(); 12 | json['data'].forEach((v) { 13 | data.add(new ProjectClassify.fromJson(v)); 14 | }); 15 | } 16 | errorCode = json['errorCode']; 17 | errorMsg = json['errorMsg']; 18 | } 19 | 20 | Map toJson() { 21 | final Map data = new Map(); 22 | if (this.data != null) { 23 | data['data'] = this.data.map((v) => v.toJson()).toList(); 24 | } 25 | data['errorCode'] = this.errorCode; 26 | data['errorMsg'] = this.errorMsg; 27 | return data; 28 | } 29 | } 30 | 31 | class ProjectClassify { 32 | int courseId; 33 | int id; 34 | String name; 35 | int order; 36 | int parentChapterId; 37 | bool userControlSetTop; 38 | int visible; 39 | 40 | ProjectClassify( 41 | {this.courseId, 42 | this.id, 43 | this.name, 44 | this.order, 45 | this.parentChapterId, 46 | this.userControlSetTop, 47 | this.visible}); 48 | 49 | ProjectClassify.fromJson(Map json) { 50 | courseId = json['courseId']; 51 | id = json['id']; 52 | name = json['name']; 53 | order = json['order']; 54 | parentChapterId = json['parentChapterId']; 55 | userControlSetTop = json['userControlSetTop']; 56 | visible = json['visible']; 57 | } 58 | 59 | Map toJson() { 60 | final Map data = new Map(); 61 | data['courseId'] = this.courseId; 62 | data['id'] = this.id; 63 | data['name'] = this.name; 64 | data['order'] = this.order; 65 | data['parentChapterId'] = this.parentChapterId; 66 | data['userControlSetTop'] = this.userControlSetTop; 67 | data['visible'] = this.visible; 68 | return data; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /enjoy_android/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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 27 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.hale.enjoyandroid" 37 | minSdkVersion 16 38 | targetSdkVersion 27 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /enjoy_android/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /enjoy_android/lib/model/wechat_count_bean.dart: -------------------------------------------------------------------------------- 1 | /// 微信公众号实体 2 | class WechatCountBean { 3 | List data; 4 | int errorCode; 5 | String errorMsg; 6 | 7 | WechatCountBean({this.data, this.errorCode, this.errorMsg}); 8 | 9 | WechatCountBean.fromJson(Map json) { 10 | if (json['data'] != null) { 11 | data = new List(); 12 | json['data'].forEach((v) { 13 | data.add(new WechatCount.fromJson(v)); 14 | }); 15 | } 16 | errorCode = json['errorCode']; 17 | errorMsg = json['errorMsg']; 18 | } 19 | 20 | Map toJson() { 21 | final Map data = new Map(); 22 | if (this.data != null) { 23 | data['data'] = this.data.map((v) => v.toJson()).toList(); 24 | } 25 | data['errorCode'] = this.errorCode; 26 | data['errorMsg'] = this.errorMsg; 27 | return data; 28 | } 29 | } 30 | 31 | class WechatCount { 32 | int courseId; 33 | int id; 34 | String name; 35 | int order; 36 | int parentChapterId; 37 | bool userControlSetTop; 38 | int visible; 39 | 40 | WechatCount( 41 | {this.courseId, 42 | this.id, 43 | this.name, 44 | this.order, 45 | this.parentChapterId, 46 | this.userControlSetTop, 47 | this.visible}); 48 | 49 | WechatCount.fromJson(Map json) { 50 | courseId = json['courseId']; 51 | id = json['id']; 52 | name = json['name']; 53 | order = json['order']; 54 | parentChapterId = json['parentChapterId']; 55 | userControlSetTop = json['userControlSetTop']; 56 | visible = json['visible']; 57 | } 58 | 59 | Map toJson() { 60 | final Map data = new Map(); 61 | data['courseId'] = this.courseId; 62 | data['id'] = this.id; 63 | data['name'] = this.name; 64 | data['order'] = this.order; 65 | data['parentChapterId'] = this.parentChapterId; 66 | data['userControlSetTop'] = this.userControlSetTop; 67 | data['visible'] = this.visible; 68 | return data; 69 | } 70 | 71 | @override 72 | String toString() { 73 | return 'courseId:${courseId}' 74 | + 'id: ${id}' 75 | + 'name: ${name}' 76 | + 'order: ${order}'; 77 | } 78 | } -------------------------------------------------------------------------------- /enjoy_android/lib/manager/api_manager.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:enjoy_android/model/wechat_count_bean.dart'; 3 | 4 | class ApiManager { 5 | Dio _dio; 6 | 7 | factory ApiManager() => _getInstance(); 8 | static ApiManager _instance; 9 | 10 | ApiManager._internal() { 11 | var options = BaseOptions( 12 | baseUrl: "http://www.wanandroid.com/", 13 | connectTimeout: 10000, 14 | receiveTimeout: 3000); 15 | _dio = Dio(options); 16 | } 17 | 18 | static ApiManager _getInstance() { 19 | if (_instance == null) { 20 | _instance = new ApiManager._internal(); 21 | } 22 | return _instance; 23 | } 24 | 25 | static ApiManager get instance => _getInstance(); 26 | 27 | /// 获取推荐微信公众号 28 | Future getWechatCount() async { 29 | try { 30 | Response response = await _dio.get("wxarticle/chapters/json"); 31 | return response; 32 | } catch (e) { 33 | return null; 34 | } 35 | } 36 | 37 | /// 获取微信文章列表 38 | Future getWechatArticle(int cid, int page) async { 39 | try { 40 | Response response = await _dio.get("wxarticle/list/${cid}/${page}/json"); 41 | return response; 42 | } catch (e) { 43 | return null; 44 | } 45 | } 46 | 47 | /// 获取项目分类 48 | Future getProjectClassify() async { 49 | try { 50 | Response response = await _dio.get("project/tree/json"); 51 | return response; 52 | } catch (e) { 53 | return null; 54 | } 55 | } 56 | 57 | /// 获取项目列表 58 | Future getProjectList(int cid, int page) async { 59 | try { 60 | Response response = await _dio.get("project/list/${page}/json", queryParameters: {"cid": "${cid}"}); 61 | return response; 62 | } catch (e) { 63 | return null; 64 | } 65 | } 66 | 67 | /// 获取首页Banner 68 | Future getHomeBanner() async { 69 | try { 70 | Response response = await _dio.get("banner/json"); 71 | return response; 72 | } catch (e) { 73 | return null; 74 | } 75 | } 76 | 77 | /// 获取首页文章列表 78 | Future getHomeArticle(int page) async { 79 | try { 80 | Response response = await _dio.get("article/list/${page}/json"); 81 | return response; 82 | } catch (e) { 83 | return null; 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: enjoy_android 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 | # Read more about versioning at semver.org. 10 | version: 1.0.0+1 11 | 12 | environment: 13 | sdk: ">=2.0.0-dev.68.0 <3.0.0" 14 | 15 | dependencies: 16 | flutter: 17 | sdk: flutter 18 | 19 | # The following adds the Cupertino Icons font to your application. 20 | # Use with the CupertinoIcons class for iOS style icons. 21 | cupertino_icons: ^0.1.2 22 | dio: ^2.0.2 23 | flutter_webview_plugin: ^0.3.0+2 24 | flutter_swiper: ^1.1.4 25 | 26 | dev_dependencies: 27 | flutter_test: 28 | sdk: flutter 29 | 30 | 31 | # For information on the generic Dart part of this file, see the 32 | # following page: https://www.dartlang.org/tools/pub/pubspec 33 | 34 | # The following section is specific to Flutter. 35 | flutter: 36 | 37 | # The following line ensures that the Material Icons font is 38 | # included with your application, so that you can use the icons in 39 | # the material Icons class. 40 | uses-material-design: true 41 | assets: 42 | - assets/image_default.png 43 | # To add assets to your application, add an assets section, like this: 44 | # assets: 45 | # - images/a_dot_burr.jpeg 46 | # - images/a_dot_ham.jpeg 47 | 48 | # An image asset can refer to one or more resolution-specific "variants", see 49 | # https://flutter.io/assets-and-images/#resolution-aware. 50 | 51 | # For details regarding adding assets from package dependencies, see 52 | # https://flutter.io/assets-and-images/#from-packages 53 | 54 | # To add custom fonts to your application, add a fonts section here, 55 | # in this "flutter" section. Each entry in this list should have a 56 | # "family" key with the font family name, and a "fonts" key with a 57 | # list giving the asset and other descriptors for the font. For 58 | # example: 59 | # fonts: 60 | # - family: Schyler 61 | # fonts: 62 | # - asset: fonts/Schyler-Regular.ttf 63 | # - asset: fonts/Schyler-Italic.ttf 64 | # style: italic 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.io/custom-fonts/#from-packages 73 | -------------------------------------------------------------------------------- /enjoy_android/lib/widget/item_wechat_article.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:enjoy_android/model/wechat_article_bean.dart'; 3 | import 'package:enjoy_android/view/webview_page.dart'; 4 | import 'package:enjoy_android/constant/textsize_const.dart'; 5 | 6 | /// 微信文章列表条目 7 | class WechatArticleItem extends StatefulWidget { 8 | Article article; 9 | 10 | WechatArticleItem(this.article); 11 | 12 | @override 13 | State createState() { 14 | return _WechatArticleState(); 15 | } 16 | } 17 | 18 | class _WechatArticleState extends State { 19 | @override 20 | Widget build(BuildContext context) { 21 | return GestureDetector( 22 | onTap: () { 23 | Navigator.push( 24 | context, 25 | new MaterialPageRoute( 26 | builder: (ctx) => WebViewPage( 27 | title: widget.article.title, url: widget.article.link))); 28 | }, 29 | child: Container( 30 | padding: EdgeInsets.fromLTRB(0, 5, 0, 5), 31 | child: Column( 32 | children: [ 33 | Align( 34 | alignment: Alignment.centerLeft, 35 | child: Padding( 36 | padding: EdgeInsets.fromLTRB(20, 0, 20, 0), 37 | child: Text( 38 | widget.article.title.replaceAll("”", "").replaceAll("“", ""), 39 | maxLines: 2, 40 | overflow: TextOverflow.ellipsis, 41 | style: TextStyle( 42 | color: Colors.black, 43 | fontSize: TextSizeConst.middleTextSize), 44 | ), 45 | ), 46 | ), 47 | Padding( 48 | padding: EdgeInsets.only(top: 10), 49 | ), 50 | Container( 51 | padding: EdgeInsets.fromLTRB(20, 0, 20, 0), 52 | child: Row( 53 | children: [ 54 | Icon( 55 | Icons.access_time, 56 | color: Colors.grey, 57 | size: 15, 58 | ), 59 | Expanded( 60 | flex: 1, 61 | child: Padding( 62 | padding: EdgeInsets.only(left: 8), 63 | child: Text( 64 | widget.article.niceDate, 65 | maxLines: 1, 66 | overflow: TextOverflow.ellipsis, 67 | style: TextStyle(color: Colors.grey), 68 | ), 69 | )) 70 | ], 71 | ), 72 | ), 73 | Padding( 74 | padding: EdgeInsets.only(top: 5), 75 | ), 76 | Container( 77 | color: Colors.grey, 78 | height: 0.5, 79 | ) 80 | ], 81 | ), 82 | ), 83 | ); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /enjoy_android/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 | -------------------------------------------------------------------------------- /enjoy_android/lib/view/project_practice_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:dio/dio.dart'; 3 | import 'package:enjoy_android/manager/api_manager.dart'; 4 | import 'package:enjoy_android/model/project_classify_bean.dart'; 5 | import 'package:enjoy_android/widget/async_snapshot_widget.dart'; 6 | import 'package:enjoy_android/view/project_list_page.dart'; 7 | 8 | /// 项目实践页 9 | class ProjectPracticePage extends StatefulWidget { 10 | @override 11 | _ProjectPracticeState createState() => _ProjectPracticeState(); 12 | } 13 | 14 | class _ProjectPracticeState extends State with SingleTickerProviderStateMixin { 15 | TabController _tabCtrl; 16 | var _tabsName = List(); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return FutureBuilder(builder: _buildFuture, future: getProjectClassify()); 21 | } 22 | 23 | Widget _buildFuture(BuildContext context, AsyncSnapshot> snapshot) { 24 | return AsyncSnapshotWidget( 25 | snapshot: snapshot, 26 | successWidget: (snapshot) { 27 | if(snapshot.data != null){ 28 | _parseWeChatCounts(snapshot.data); 29 | if(_tabCtrl == null){ 30 | _tabCtrl = TabController(length: snapshot.data.length, vsync: this, initialIndex: 0); 31 | } 32 | return Scaffold( 33 | appBar: AppBar( 34 | title: Text("项目"), 35 | backgroundColor: Color.fromARGB(255, 119, 136, 213), //设置appbar背景颜色 36 | centerTitle: true, //设置标题是否局中 37 | ), 38 | body: Column( 39 | children: [ 40 | TabBar( 41 | indicatorColor: Colors.deepPurpleAccent, 42 | labelColor: Colors.black87, 43 | unselectedLabelColor: Colors.black45, 44 | controller: _tabCtrl, 45 | isScrollable: true, 46 | tabs: _createTabs(), 47 | ), 48 | Expanded( 49 | flex: 1, 50 | child: TabBarView( 51 | controller: _tabCtrl, 52 | children: _createPages(snapshot.data)), 53 | ) 54 | ], 55 | ), 56 | ); 57 | } 58 | }, 59 | ); 60 | } 61 | 62 | /// 网络请求,获取项目分类 63 | Future> getProjectClassify() async { 64 | try { 65 | Response response; 66 | response = await ApiManager().getProjectClassify(); 67 | return ProjectClassifyBean.fromJson(response.data).data; 68 | } catch (e) { 69 | return null; 70 | } 71 | } 72 | 73 | /// 生成顶部tab 74 | List _createTabs() { 75 | 76 | List widgets = List(); 77 | for (String item in _tabsName) { 78 | var tab = Tab( 79 | text: item, 80 | ); 81 | widgets.add(tab); 82 | } 83 | return widgets; 84 | } 85 | 86 | /// 创建项目列表页 87 | List _createPages(List projectClassify){ 88 | List widgets = List(); 89 | for (ProjectClassify project in projectClassify) { 90 | var page = ProjectListPage(cid: project.id); 91 | widgets.add(page); 92 | } 93 | return widgets; 94 | } 95 | 96 | /// 解析项目列表 97 | void _parseWeChatCounts(List projectClassify){ 98 | _tabsName.clear(); 99 | for(ProjectClassify project in projectClassify){ 100 | _tabsName.add(project.name); 101 | } 102 | } 103 | } -------------------------------------------------------------------------------- /enjoy_android/lib/view/wechat_article_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:dio/dio.dart'; 3 | import 'package:enjoy_android/model/wechat_count_bean.dart'; 4 | import 'package:enjoy_android/widget/async_snapshot_widget.dart'; 5 | import 'package:enjoy_android/view/wechat_article_list_page.dart'; 6 | import 'package:enjoy_android/manager/api_manager.dart'; 7 | 8 | /// 微信公众号页 9 | class WechatArticlePage extends StatefulWidget { 10 | @override 11 | WechatArticleState createState() => new WechatArticleState(); 12 | } 13 | 14 | class WechatArticleState extends State 15 | with SingleTickerProviderStateMixin { 16 | TabController _tabCtrl; 17 | var _tabsName = List(); 18 | 19 | @override 20 | void initState() { 21 | super.initState(); 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return FutureBuilder(builder: _buildFuture, future: getWeChatCount()); 27 | } 28 | 29 | Widget _buildFuture( 30 | BuildContext context, AsyncSnapshot> snapshot) { 31 | return AsyncSnapshotWidget( 32 | snapshot: snapshot, 33 | successWidget: (snapshot) { 34 | if (snapshot.data != null) { 35 | _parseWeChatCounts(snapshot.data); 36 | if (_tabCtrl == null) { 37 | _tabCtrl = TabController( 38 | length: snapshot.data.length, vsync: this, initialIndex: 0); 39 | } 40 | return Scaffold( 41 | appBar: AppBar( 42 | title: Text("公众号"), 43 | backgroundColor: Color.fromARGB(255, 119, 136, 213), 44 | //设置appbar背景颜色 45 | centerTitle: true, //设置标题是否局中 46 | ), 47 | body: Column( 48 | children: [ 49 | TabBar( 50 | indicatorColor: Colors.deepPurpleAccent, 51 | labelColor: Colors.black87, 52 | unselectedLabelColor: Colors.black45, 53 | controller: _tabCtrl, 54 | isScrollable: true, 55 | tabs: _createTabs(), 56 | ), 57 | Expanded( 58 | flex: 1, 59 | child: TabBarView( 60 | controller: _tabCtrl, 61 | children: _createPages(snapshot.data)), 62 | ) 63 | ], 64 | ), 65 | ); 66 | } 67 | }, 68 | ); 69 | } 70 | 71 | /// 网络请求 获取推荐微信公众号 72 | Future> getWeChatCount() async { 73 | Response response; 74 | await ApiManager().getWechatCount().then((res) { 75 | response = res; 76 | }); 77 | return WechatCountBean.fromJson(response.data).data; 78 | } 79 | 80 | /// 生成顶部tab 81 | List _createTabs() { 82 | List widgets = List(); 83 | for (String item in _tabsName) { 84 | var tab = Tab( 85 | text: item, 86 | ); 87 | widgets.add(tab); 88 | } 89 | return widgets; 90 | } 91 | 92 | /// 创建微信文章列表页 93 | List _createPages(List list) { 94 | List widgets = List(); 95 | for (WechatCount count in list) { 96 | var page = WechatArticleListPage(cid: count.id); 97 | widgets.add(page); 98 | } 99 | return widgets; 100 | } 101 | 102 | /// 解析微信公众号列表 103 | void _parseWeChatCounts(List wxCounts) { 104 | _tabsName.clear(); 105 | for (WechatCount count in wxCounts) { 106 | _tabsName.add(count.name); 107 | } 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /enjoy_android/lib/widget/item_home_article.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:enjoy_android/model/home_article_bean.dart'; 3 | import 'package:enjoy_android/view/webview_page.dart'; 4 | import 'package:enjoy_android/constant/textsize_const.dart'; 5 | 6 | /// 首页文章列表条目 7 | class HomeArticleItem extends StatefulWidget { 8 | Article article; 9 | HomeArticleItem(this.article); 10 | 11 | @override 12 | State createState() { 13 | return _HomeArticleState(); 14 | } 15 | } 16 | 17 | class _HomeArticleState extends State { 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return GestureDetector( 22 | onTap: () { 23 | Navigator.push( 24 | context, 25 | new MaterialPageRoute( 26 | builder: (ctx) => WebViewPage( 27 | title: widget.article.title, url: widget.article.link))); 28 | }, 29 | child: Card( 30 | margin: EdgeInsets.fromLTRB(2,5,2,0), 31 | child: Container( 32 | padding: EdgeInsets.fromLTRB(18,10,18,10), 33 | child: Column( 34 | children: [ 35 | Row( 36 | children: [ 37 | Icon( 38 | Icons.child_care, 39 | color: Colors.blueAccent, 40 | size: 18, 41 | ), 42 | Expanded( 43 | flex: 1, 44 | child: Padding( 45 | padding: EdgeInsets.only(left: 10), 46 | child: Text( 47 | widget.article.author, 48 | maxLines: 1, 49 | overflow: TextOverflow.ellipsis, 50 | style: TextStyle(color: Colors.blueAccent), 51 | ), 52 | )) 53 | ], 54 | ), 55 | Align( 56 | alignment: Alignment.centerLeft, 57 | child: Padding( 58 | padding: EdgeInsets.fromLTRB(0, 10, 0, 0), 59 | child: Text( 60 | widget.article.title.replaceAll("”", "").replaceAll("“", ""), 61 | maxLines: 2, 62 | overflow: TextOverflow.ellipsis, 63 | style: TextStyle( 64 | color: Colors.black, 65 | fontSize: TextSizeConst.middleTextSize), 66 | ), 67 | ), 68 | ), 69 | Padding( 70 | padding: EdgeInsets.only(top: 10), 71 | ), 72 | Row( 73 | children: [ 74 | Icon( 75 | Icons.access_time, 76 | color: Colors.grey, 77 | size: 15, 78 | ), 79 | Expanded( 80 | flex: 1, 81 | child: Padding( 82 | padding: EdgeInsets.only(left: 8), 83 | child: Text( 84 | widget.article.niceDate, 85 | maxLines: 1, 86 | overflow: TextOverflow.ellipsis, 87 | style: TextStyle(color: Colors.grey), 88 | ), 89 | )) 90 | ], 91 | ) 92 | ], 93 | ), 94 | )), 95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /enjoy_android/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /enjoy_android/lib/model/home_article_bean.dart: -------------------------------------------------------------------------------- 1 | 2 | class HomeArticleBean { 3 | HomeArticle data; 4 | int errorCode; 5 | String errorMsg; 6 | 7 | HomeArticleBean({this.data, this.errorCode, this.errorMsg}); 8 | 9 | HomeArticleBean.fromJson(Map json) { 10 | data = json['data'] != null ? new HomeArticle.fromJson(json['data']) : null; 11 | errorCode = json['errorCode']; 12 | errorMsg = json['errorMsg']; 13 | } 14 | 15 | Map toJson() { 16 | final Map data = new Map(); 17 | if (this.data != null) { 18 | data['data'] = this.data.toJson(); 19 | } 20 | data['errorCode'] = this.errorCode; 21 | data['errorMsg'] = this.errorMsg; 22 | return data; 23 | } 24 | } 25 | 26 | class HomeArticle { 27 | int curPage; 28 | List
datas; 29 | int offset; 30 | bool over; 31 | int pageCount; 32 | int size; 33 | int total; 34 | 35 | HomeArticle( 36 | {this.curPage, 37 | this.datas, 38 | this.offset, 39 | this.over, 40 | this.pageCount, 41 | this.size, 42 | this.total}); 43 | 44 | HomeArticle.fromJson(Map json) { 45 | curPage = json['curPage']; 46 | if (json['datas'] != null) { 47 | datas = new List
(); 48 | json['datas'].forEach((v) { 49 | datas.add(new Article.fromJson(v)); 50 | }); 51 | } 52 | offset = json['offset']; 53 | over = json['over']; 54 | pageCount = json['pageCount']; 55 | size = json['size']; 56 | total = json['total']; 57 | } 58 | 59 | Map toJson() { 60 | final Map data = new Map(); 61 | data['curPage'] = this.curPage; 62 | if (this.datas != null) { 63 | data['datas'] = this.datas.map((v) => v.toJson()).toList(); 64 | } 65 | data['offset'] = this.offset; 66 | data['over'] = this.over; 67 | data['pageCount'] = this.pageCount; 68 | data['size'] = this.size; 69 | data['total'] = this.total; 70 | return data; 71 | } 72 | } 73 | 74 | class Article { 75 | String apkLink; 76 | String author; 77 | int chapterId; 78 | String chapterName; 79 | bool collect; 80 | int courseId; 81 | String desc; 82 | String envelopePic; 83 | bool fresh; 84 | int id; 85 | String link; 86 | String niceDate; 87 | String origin; 88 | String projectLink; 89 | int publishTime; 90 | int superChapterId; 91 | String superChapterName; 92 | String title; 93 | int type; 94 | int userId; 95 | int visible; 96 | int zan; 97 | 98 | Article( 99 | {this.apkLink, 100 | this.author, 101 | this.chapterId, 102 | this.chapterName, 103 | this.collect, 104 | this.courseId, 105 | this.desc, 106 | this.envelopePic, 107 | this.fresh, 108 | this.id, 109 | this.link, 110 | this.niceDate, 111 | this.origin, 112 | this.projectLink, 113 | this.publishTime, 114 | this.superChapterId, 115 | this.superChapterName, 116 | this.title, 117 | this.type, 118 | this.userId, 119 | this.visible, 120 | this.zan}); 121 | 122 | Article.fromJson(Map json) { 123 | apkLink = json['apkLink']; 124 | author = json['author']; 125 | chapterId = json['chapterId']; 126 | chapterName = json['chapterName']; 127 | collect = json['collect']; 128 | courseId = json['courseId']; 129 | desc = json['desc']; 130 | envelopePic = json['envelopePic']; 131 | fresh = json['fresh']; 132 | id = json['id']; 133 | link = json['link']; 134 | niceDate = json['niceDate']; 135 | origin = json['origin']; 136 | projectLink = json['projectLink']; 137 | publishTime = json['publishTime']; 138 | superChapterId = json['superChapterId']; 139 | superChapterName = json['superChapterName']; 140 | title = json['title']; 141 | type = json['type']; 142 | userId = json['userId']; 143 | visible = json['visible']; 144 | zan = json['zan']; 145 | } 146 | 147 | Map toJson() { 148 | final Map data = new Map(); 149 | data['apkLink'] = this.apkLink; 150 | data['author'] = this.author; 151 | data['chapterId'] = this.chapterId; 152 | data['chapterName'] = this.chapterName; 153 | data['collect'] = this.collect; 154 | data['courseId'] = this.courseId; 155 | data['desc'] = this.desc; 156 | data['envelopePic'] = this.envelopePic; 157 | data['fresh'] = this.fresh; 158 | data['id'] = this.id; 159 | data['link'] = this.link; 160 | data['niceDate'] = this.niceDate; 161 | data['origin'] = this.origin; 162 | data['projectLink'] = this.projectLink; 163 | data['publishTime'] = this.publishTime; 164 | data['superChapterId'] = this.superChapterId; 165 | data['superChapterName'] = this.superChapterName; 166 | data['title'] = this.title; 167 | data['type'] = this.type; 168 | data['userId'] = this.userId; 169 | data['visible'] = this.visible; 170 | data['zan'] = this.zan; 171 | return data; 172 | } 173 | } 174 | -------------------------------------------------------------------------------- /enjoy_android/lib/view/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:enjoy_android/constant/textsize_const.dart'; 3 | import 'package:enjoy_android/manager/api_manager.dart'; 4 | import 'package:enjoy_android/model/home_article_bean.dart'; 5 | import 'package:enjoy_android/model/home_banner_bean.dart'; 6 | import 'package:enjoy_android/widget/item_home_article.dart'; 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter_swiper/flutter_swiper.dart'; 9 | 10 | /// 首页 11 | class HomePage extends StatefulWidget { 12 | @override 13 | HomePageState createState() => HomePageState(); 14 | } 15 | 16 | class HomePageState extends State with AutomaticKeepAliveClientMixin { 17 | // 首页banner列表 18 | List banners = List(); 19 | 20 | // 首页文章列表 21 | List
articles = List(); 22 | 23 | // banner 控制器 24 | SwiperController _bannerController = SwiperController(); 25 | ScrollController _scrollController = ScrollController(); 26 | 27 | // 请求首页文章页码 28 | int curPage = 0; 29 | 30 | @override 31 | void initState() { 32 | super.initState(); 33 | getBanner(); 34 | getList(false); 35 | _bannerController.autoplay = true; 36 | 37 | _scrollController.addListener((){ 38 | var maxScroll = _scrollController.position.maxScrollExtent; 39 | var pixels = _scrollController.position.pixels; 40 | if(maxScroll == pixels){ 41 | curPage++; 42 | getList(true); 43 | } 44 | }); 45 | } 46 | 47 | @override 48 | Widget build(BuildContext context) { 49 | 50 | Widget listView = ListView.builder( 51 | itemCount: articles.length + 1, 52 | itemBuilder: (context, index) { 53 | return index == 0 54 | ? createBannerItem() 55 | : HomeArticleItem(articles[index - 1]); 56 | }, 57 | controller: _scrollController, 58 | ); 59 | return Scaffold( 60 | appBar: AppBar( 61 | title: Text("推荐文章"), 62 | backgroundColor: Color.fromARGB(255, 119, 136, 213), //设置appbar背景颜色 63 | centerTitle: true, //设置标题是否局中 64 | ), 65 | body: RefreshIndicator(child: listView, onRefresh: _pullToRefresh) 66 | ); 67 | } 68 | 69 | Future _pullToRefresh() async { 70 | curPage = 0; 71 | await getList(false); 72 | return null; 73 | } 74 | 75 | /// 创建banner条目 76 | Widget createBannerItem() { 77 | return Container( 78 | width: MediaQuery.of(context).size.width, 79 | height: 180, 80 | child: banners.length != 0 81 | ? Swiper( 82 | autoplayDelay: 3500, 83 | controller: _bannerController, 84 | itemWidth: MediaQuery.of(context).size.width, 85 | itemHeight: 180, 86 | pagination: pagination(), 87 | itemBuilder: (BuildContext context, int index) { 88 | return new Image.network( 89 | banners[index].imagePath, 90 | fit: BoxFit.fill, 91 | ); 92 | }, 93 | itemCount: banners.length, 94 | viewportFraction: 0.8, 95 | scale: 0.9, 96 | ) 97 | : SizedBox( 98 | width: 0, 99 | height: 0, 100 | ), 101 | ); 102 | } 103 | 104 | SwiperPagination pagination() => SwiperPagination( 105 | margin: EdgeInsets.all(0.0), 106 | builder: SwiperCustomPagination( 107 | builder: (BuildContext context, SwiperPluginConfig config) { 108 | return Container( 109 | color: Colors.black45, 110 | height: 40, 111 | padding: EdgeInsets.fromLTRB(10, 0, 10, 0), 112 | child: Row( 113 | children: [ 114 | Text( 115 | "${banners[config.activeIndex].title}", 116 | style: TextStyle( 117 | fontSize: TextSizeConst.smallTextSize, color: Colors.white), 118 | ), 119 | Expanded( 120 | flex: 1, 121 | child: new Align( 122 | alignment: Alignment.centerRight, 123 | child: new DotSwiperPaginationBuilder( 124 | color: Colors.white70, 125 | activeColor: Colors.green, 126 | size: 6.0, 127 | activeSize: 6.0) 128 | .build(context, config), 129 | ), 130 | ) 131 | ], 132 | ), 133 | ); 134 | })); 135 | 136 | /// 获取首页banner数据 137 | void getBanner() async { 138 | Response response = await ApiManager().getHomeBanner(); 139 | var homeBannerBean = HomeBannerBean.fromJson(response.data); 140 | setState(() { 141 | banners.clear(); 142 | banners.addAll(homeBannerBean.data); 143 | }); 144 | } 145 | 146 | /// 获取首页推荐文章数据 147 | Future getList(bool loadMore) async { 148 | Response response = await ApiManager().getHomeArticle(curPage); 149 | var homeArticleBean = HomeArticleBean.fromJson(response.data); 150 | setState(() { 151 | if(loadMore){ 152 | articles.addAll(homeArticleBean.data.datas); 153 | } else { 154 | articles.clear(); 155 | articles.addAll(homeArticleBean.data.datas); 156 | } 157 | 158 | }); 159 | } 160 | 161 | @override 162 | bool get wantKeepAlive => true; 163 | } 164 | -------------------------------------------------------------------------------- /enjoy_android/lib/widget/item_project.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:enjoy_android/view/webview_page.dart'; 3 | import 'package:enjoy_android/constant/textsize_const.dart'; 4 | import 'package:enjoy_android/model/project_list_bean.dart'; 5 | 6 | /// 首页文章列表条目 7 | class ProjectItem extends StatefulWidget { 8 | Project project; 9 | 10 | ProjectItem(this.project); 11 | 12 | @override 13 | State createState() { 14 | // TODO: implement createState 15 | return _ProjectState(); 16 | } 17 | } 18 | 19 | class _ProjectState extends State { 20 | @override 21 | Widget build(BuildContext context) { 22 | // TODO: implement build 23 | return GestureDetector( 24 | onTap: () { 25 | Navigator.push( 26 | context, 27 | new MaterialPageRoute( 28 | builder: (ctx) => WebViewPage( 29 | title: widget.project.title, url: widget.project.link))); 30 | }, 31 | child: Card( 32 | margin: EdgeInsets.fromLTRB(2, 5, 2, 0), 33 | child: Container( 34 | padding: EdgeInsets.fromLTRB(5, 0, 5, 0), 35 | child: Row( 36 | children: [ 37 | FadeInImage.assetNetwork( 38 | width: 120, 39 | height: 240, 40 | placeholder: "assets/image_default.png", 41 | image: widget.project.envelopePic), 42 | Expanded( 43 | flex: 1, 44 | child: Container( 45 | padding: EdgeInsets.all(10), 46 | height: 240, 47 | alignment: Alignment.topLeft, 48 | child: Column( 49 | children: [ 50 | Align( 51 | alignment: Alignment.centerLeft, 52 | child: Text( 53 | widget.project.title.replaceAll("”", "").replaceAll("“", ""), 54 | maxLines: 2, 55 | overflow: TextOverflow.ellipsis, 56 | style: TextStyle( 57 | color: Colors.black, 58 | fontSize: TextSizeConst.middleTextSize), 59 | ), 60 | ), 61 | Padding( 62 | padding: EdgeInsets.only(top: 5), 63 | child: Row( 64 | children: [ 65 | Icon( 66 | Icons.child_care, 67 | color: Colors.grey, 68 | size: 16, 69 | ), 70 | Expanded( 71 | flex: 1, 72 | child: Padding( 73 | padding: EdgeInsets.only(left: 5), 74 | child: Text( 75 | widget.project.author, 76 | maxLines: 1, 77 | overflow: TextOverflow.ellipsis, 78 | style: TextStyle(color: Colors.grey), 79 | ), 80 | )) 81 | ], 82 | ), 83 | ), 84 | Align( 85 | alignment: Alignment.centerLeft, 86 | child: Padding( 87 | padding: EdgeInsets.only(top: 10), 88 | child: Text( 89 | widget.project.desc, 90 | maxLines: 5, 91 | overflow: TextOverflow.ellipsis, 92 | style: TextStyle( 93 | color: Colors.orange, 94 | fontSize: TextSizeConst.smallTextSize), 95 | ), 96 | ), 97 | ), 98 | Expanded( 99 | flex: 1, 100 | child: Container(), 101 | ), 102 | Align( 103 | alignment: Alignment.bottomRight, 104 | child: Row( 105 | children: [ 106 | Icon( 107 | Icons.access_time, 108 | color: Colors.grey, 109 | size: 15, 110 | ), 111 | Padding( 112 | padding: EdgeInsets.only(left: 5), 113 | child: Text( 114 | widget.project.niceDate, 115 | maxLines: 1, 116 | overflow: TextOverflow.ellipsis, 117 | style: TextStyle(color: Colors.grey), 118 | ), 119 | ) 120 | ], 121 | ), 122 | ) 123 | ], 124 | ), 125 | )) 126 | ], 127 | ))), 128 | ); 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /enjoy_android/lib/model/project_list_bean.dart: -------------------------------------------------------------------------------- 1 | 2 | class ProjectListBean { 3 | ProjectList data; 4 | int errorCode; 5 | String errorMsg; 6 | 7 | ProjectListBean({this.data, this.errorCode, this.errorMsg}); 8 | 9 | ProjectListBean.fromJson(Map json) { 10 | data = json['data'] != null ? new ProjectList.fromJson(json['data']) : null; 11 | errorCode = json['errorCode']; 12 | errorMsg = json['errorMsg']; 13 | } 14 | 15 | Map toJson() { 16 | final Map data = new Map(); 17 | if (this.data != null) { 18 | data['data'] = this.data.toJson(); 19 | } 20 | data['errorCode'] = this.errorCode; 21 | data['errorMsg'] = this.errorMsg; 22 | return data; 23 | } 24 | } 25 | 26 | class ProjectList { 27 | int curPage; 28 | List datas; 29 | int offset; 30 | bool over; 31 | int pageCount; 32 | int size; 33 | int total; 34 | 35 | ProjectList( 36 | {this.curPage, 37 | this.datas, 38 | this.offset, 39 | this.over, 40 | this.pageCount, 41 | this.size, 42 | this.total}); 43 | 44 | ProjectList.fromJson(Map json) { 45 | curPage = json['curPage']; 46 | if (json['datas'] != null) { 47 | datas = new List(); 48 | json['datas'].forEach((v) { 49 | datas.add(new Project.fromJson(v)); 50 | }); 51 | } 52 | offset = json['offset']; 53 | over = json['over']; 54 | pageCount = json['pageCount']; 55 | size = json['size']; 56 | total = json['total']; 57 | } 58 | 59 | Map toJson() { 60 | final Map data = new Map(); 61 | data['curPage'] = this.curPage; 62 | if (this.datas != null) { 63 | data['datas'] = this.datas.map((v) => v.toJson()).toList(); 64 | } 65 | data['offset'] = this.offset; 66 | data['over'] = this.over; 67 | data['pageCount'] = this.pageCount; 68 | data['size'] = this.size; 69 | data['total'] = this.total; 70 | return data; 71 | } 72 | } 73 | 74 | class Project { 75 | String apkLink; 76 | String author; 77 | int chapterId; 78 | String chapterName; 79 | bool collect; 80 | int courseId; 81 | String desc; 82 | String envelopePic; 83 | bool fresh; 84 | int id; 85 | String link; 86 | String niceDate; 87 | String origin; 88 | String projectLink; 89 | int publishTime; 90 | int superChapterId; 91 | String superChapterName; 92 | List tags; 93 | String title; 94 | int type; 95 | int userId; 96 | int visible; 97 | int zan; 98 | 99 | Project( 100 | {this.apkLink, 101 | this.author, 102 | this.chapterId, 103 | this.chapterName, 104 | this.collect, 105 | this.courseId, 106 | this.desc, 107 | this.envelopePic, 108 | this.fresh, 109 | this.id, 110 | this.link, 111 | this.niceDate, 112 | this.origin, 113 | this.projectLink, 114 | this.publishTime, 115 | this.superChapterId, 116 | this.superChapterName, 117 | this.tags, 118 | this.title, 119 | this.type, 120 | this.userId, 121 | this.visible, 122 | this.zan}); 123 | 124 | Project.fromJson(Map json) { 125 | apkLink = json['apkLink']; 126 | author = json['author']; 127 | chapterId = json['chapterId']; 128 | chapterName = json['chapterName']; 129 | collect = json['collect']; 130 | courseId = json['courseId']; 131 | desc = json['desc']; 132 | envelopePic = json['envelopePic']; 133 | fresh = json['fresh']; 134 | id = json['id']; 135 | link = json['link']; 136 | niceDate = json['niceDate']; 137 | origin = json['origin']; 138 | projectLink = json['projectLink']; 139 | publishTime = json['publishTime']; 140 | superChapterId = json['superChapterId']; 141 | superChapterName = json['superChapterName']; 142 | if (json['tags'] != null) { 143 | tags = new List(); 144 | json['tags'].forEach((v) { 145 | tags.add(new Tags.fromJson(v)); 146 | }); 147 | } 148 | title = json['title']; 149 | type = json['type']; 150 | userId = json['userId']; 151 | visible = json['visible']; 152 | zan = json['zan']; 153 | } 154 | 155 | Map toJson() { 156 | final Map data = new Map(); 157 | data['apkLink'] = this.apkLink; 158 | data['author'] = this.author; 159 | data['chapterId'] = this.chapterId; 160 | data['chapterName'] = this.chapterName; 161 | data['collect'] = this.collect; 162 | data['courseId'] = this.courseId; 163 | data['desc'] = this.desc; 164 | data['envelopePic'] = this.envelopePic; 165 | data['fresh'] = this.fresh; 166 | data['id'] = this.id; 167 | data['link'] = this.link; 168 | data['niceDate'] = this.niceDate; 169 | data['origin'] = this.origin; 170 | data['projectLink'] = this.projectLink; 171 | data['publishTime'] = this.publishTime; 172 | data['superChapterId'] = this.superChapterId; 173 | data['superChapterName'] = this.superChapterName; 174 | if (this.tags != null) { 175 | data['tags'] = this.tags.map((v) => v.toJson()).toList(); 176 | } 177 | data['title'] = this.title; 178 | data['type'] = this.type; 179 | data['userId'] = this.userId; 180 | data['visible'] = this.visible; 181 | data['zan'] = this.zan; 182 | return data; 183 | } 184 | } 185 | 186 | class Tags { 187 | String name; 188 | String url; 189 | 190 | Tags({this.name, this.url}); 191 | 192 | Tags.fromJson(Map json) { 193 | name = json['name']; 194 | url = json['url']; 195 | } 196 | 197 | Map toJson() { 198 | final Map data = new Map(); 199 | data['name'] = this.name; 200 | data['url'] = this.url; 201 | return data; 202 | } 203 | } 204 | -------------------------------------------------------------------------------- /enjoy_android/lib/model/wechat_article_bean.dart: -------------------------------------------------------------------------------- 1 | class WechatArticleBean { 2 | WechatArticle data; 3 | int errorCode; 4 | String errorMsg; 5 | 6 | WechatArticleBean({this.data, this.errorCode, this.errorMsg}); 7 | 8 | WechatArticleBean.fromJson(Map json) { 9 | data = json['data'] != null ? new WechatArticle.fromJson(json['data']) : null; 10 | errorCode = json['errorCode']; 11 | errorMsg = json['errorMsg']; 12 | } 13 | 14 | Map toJson() { 15 | final Map data = new Map(); 16 | if (this.data != null) { 17 | data['data'] = this.data.toJson(); 18 | } 19 | data['errorCode'] = this.errorCode; 20 | data['errorMsg'] = this.errorMsg; 21 | return data; 22 | } 23 | } 24 | 25 | class WechatArticle { 26 | int curPage; 27 | List
datas; 28 | int offset; 29 | bool over; 30 | int pageCount; 31 | int size; 32 | int total; 33 | 34 | WechatArticle( 35 | {this.curPage, 36 | this.datas, 37 | this.offset, 38 | this.over, 39 | this.pageCount, 40 | this.size, 41 | this.total}); 42 | 43 | WechatArticle.fromJson(Map json) { 44 | curPage = json['curPage']; 45 | if (json['datas'] != null) { 46 | datas = new List
(); 47 | json['datas'].forEach((v) { 48 | datas.add(new Article.fromJson(v)); 49 | }); 50 | } 51 | offset = json['offset']; 52 | over = json['over']; 53 | pageCount = json['pageCount']; 54 | size = json['size']; 55 | total = json['total']; 56 | } 57 | 58 | Map toJson() { 59 | final Map data = new Map(); 60 | data['curPage'] = this.curPage; 61 | if (this.datas != null) { 62 | data['datas'] = this.datas.map((v) => v.toJson()).toList(); 63 | } 64 | data['offset'] = this.offset; 65 | data['over'] = this.over; 66 | data['pageCount'] = this.pageCount; 67 | data['size'] = this.size; 68 | data['total'] = this.total; 69 | return data; 70 | } 71 | } 72 | 73 | class Article { 74 | String apkLink; 75 | String author; 76 | int chapterId; 77 | String chapterName; 78 | bool collect; 79 | int courseId; 80 | String desc; 81 | String envelopePic; 82 | bool fresh; 83 | int id; 84 | String link; 85 | String niceDate; 86 | String origin; 87 | String projectLink; 88 | int publishTime; 89 | int superChapterId; 90 | String superChapterName; 91 | List tags; 92 | String title; 93 | int type; 94 | int userId; 95 | int visible; 96 | int zan; 97 | 98 | Article( 99 | {this.apkLink, 100 | this.author, 101 | this.chapterId, 102 | this.chapterName, 103 | this.collect, 104 | this.courseId, 105 | this.desc, 106 | this.envelopePic, 107 | this.fresh, 108 | this.id, 109 | this.link, 110 | this.niceDate, 111 | this.origin, 112 | this.projectLink, 113 | this.publishTime, 114 | this.superChapterId, 115 | this.superChapterName, 116 | this.tags, 117 | this.title, 118 | this.type, 119 | this.userId, 120 | this.visible, 121 | this.zan}); 122 | 123 | Article.fromJson(Map json) { 124 | apkLink = json['apkLink']; 125 | author = json['author']; 126 | chapterId = json['chapterId']; 127 | chapterName = json['chapterName']; 128 | collect = json['collect']; 129 | courseId = json['courseId']; 130 | desc = json['desc']; 131 | envelopePic = json['envelopePic']; 132 | fresh = json['fresh']; 133 | id = json['id']; 134 | link = json['link']; 135 | niceDate = json['niceDate']; 136 | origin = json['origin']; 137 | projectLink = json['projectLink']; 138 | publishTime = json['publishTime']; 139 | superChapterId = json['superChapterId']; 140 | superChapterName = json['superChapterName']; 141 | if (json['tags'] != null) { 142 | tags = new List(); 143 | json['tags'].forEach((v) { 144 | tags.add(new Tags.fromJson(v)); 145 | }); 146 | } 147 | title = json['title']; 148 | type = json['type']; 149 | userId = json['userId']; 150 | visible = json['visible']; 151 | zan = json['zan']; 152 | } 153 | 154 | Map toJson() { 155 | final Map data = new Map(); 156 | data['apkLink'] = this.apkLink; 157 | data['author'] = this.author; 158 | data['chapterId'] = this.chapterId; 159 | data['chapterName'] = this.chapterName; 160 | data['collect'] = this.collect; 161 | data['courseId'] = this.courseId; 162 | data['desc'] = this.desc; 163 | data['envelopePic'] = this.envelopePic; 164 | data['fresh'] = this.fresh; 165 | data['id'] = this.id; 166 | data['link'] = this.link; 167 | data['niceDate'] = this.niceDate; 168 | data['origin'] = this.origin; 169 | data['projectLink'] = this.projectLink; 170 | data['publishTime'] = this.publishTime; 171 | data['superChapterId'] = this.superChapterId; 172 | data['superChapterName'] = this.superChapterName; 173 | if (this.tags != null) { 174 | data['tags'] = this.tags.map((v) => v.toJson()).toList(); 175 | } 176 | data['title'] = this.title; 177 | data['type'] = this.type; 178 | data['userId'] = this.userId; 179 | data['visible'] = this.visible; 180 | data['zan'] = this.zan; 181 | return data; 182 | } 183 | } 184 | 185 | class Tags { 186 | String name; 187 | String url; 188 | 189 | Tags({this.name, this.url}); 190 | 191 | Tags.fromJson(Map json) { 192 | name = json['name']; 193 | url = json['url']; 194 | } 195 | 196 | Map toJson() { 197 | final Map data = new Map(); 198 | data['name'] = this.name; 199 | data['url'] = this.url; 200 | return data; 201 | } 202 | } 203 | -------------------------------------------------------------------------------- /enjoy_android/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 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 23 | F5456B28060EDEC4C621D0BE /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 93857955E53906A2EE920748 /* libPods-Runner.a */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXCopyFilesBuildPhase section */ 27 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 28 | isa = PBXCopyFilesBuildPhase; 29 | buildActionMask = 2147483647; 30 | dstPath = ""; 31 | dstSubfolderSpec = 10; 32 | files = ( 33 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 34 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 35 | ); 36 | name = "Embed Frameworks"; 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXCopyFilesBuildPhase section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 43 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 44 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 47 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 48 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 49 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 50 | 93857955E53906A2EE920748 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 52 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 53 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 54 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 56 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 57 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 58 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 59 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | /* End PBXFileReference section */ 61 | 62 | /* Begin PBXFrameworksBuildPhase section */ 63 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 68 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 69 | F5456B28060EDEC4C621D0BE /* libPods-Runner.a in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXFrameworksBuildPhase section */ 74 | 75 | /* Begin PBXGroup section */ 76 | 46941E1A00FEC32887F1855C /* Pods */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | ); 80 | name = Pods; 81 | sourceTree = ""; 82 | }; 83 | 4CA80798F06F6E2E1656C4FC /* Frameworks */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 93857955E53906A2EE920748 /* libPods-Runner.a */, 87 | ); 88 | name = Frameworks; 89 | sourceTree = ""; 90 | }; 91 | 9740EEB11CF90186004384FC /* Flutter */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 95 | 3B80C3931E831B6300D905FE /* App.framework */, 96 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 97 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 98 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 99 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 100 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 101 | ); 102 | name = Flutter; 103 | sourceTree = ""; 104 | }; 105 | 97C146E51CF9000F007C117D = { 106 | isa = PBXGroup; 107 | children = ( 108 | 9740EEB11CF90186004384FC /* Flutter */, 109 | 97C146F01CF9000F007C117D /* Runner */, 110 | 97C146EF1CF9000F007C117D /* Products */, 111 | 46941E1A00FEC32887F1855C /* Pods */, 112 | 4CA80798F06F6E2E1656C4FC /* Frameworks */, 113 | ); 114 | sourceTree = ""; 115 | }; 116 | 97C146EF1CF9000F007C117D /* Products */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 97C146EE1CF9000F007C117D /* Runner.app */, 120 | ); 121 | name = Products; 122 | sourceTree = ""; 123 | }; 124 | 97C146F01CF9000F007C117D /* Runner */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 128 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 129 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 130 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 131 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 132 | 97C147021CF9000F007C117D /* Info.plist */, 133 | 97C146F11CF9000F007C117D /* Supporting Files */, 134 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 135 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 136 | ); 137 | path = Runner; 138 | sourceTree = ""; 139 | }; 140 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 97C146F21CF9000F007C117D /* main.m */, 144 | ); 145 | name = "Supporting Files"; 146 | sourceTree = ""; 147 | }; 148 | /* End PBXGroup section */ 149 | 150 | /* Begin PBXNativeTarget section */ 151 | 97C146ED1CF9000F007C117D /* Runner */ = { 152 | isa = PBXNativeTarget; 153 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 154 | buildPhases = ( 155 | A3E8B80F8D2DB1DEDC0D5D42 /* [CP] Check Pods Manifest.lock */, 156 | 9740EEB61CF901F6004384FC /* Run Script */, 157 | 97C146EA1CF9000F007C117D /* Sources */, 158 | 97C146EB1CF9000F007C117D /* Frameworks */, 159 | 97C146EC1CF9000F007C117D /* Resources */, 160 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 161 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 162 | 14FA8907CB0B94B687BB024D /* [CP] Embed Pods Frameworks */, 163 | ); 164 | buildRules = ( 165 | ); 166 | dependencies = ( 167 | ); 168 | name = Runner; 169 | productName = Runner; 170 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 171 | productType = "com.apple.product-type.application"; 172 | }; 173 | /* End PBXNativeTarget section */ 174 | 175 | /* Begin PBXProject section */ 176 | 97C146E61CF9000F007C117D /* Project object */ = { 177 | isa = PBXProject; 178 | attributes = { 179 | LastUpgradeCheck = 0910; 180 | ORGANIZATIONNAME = "The Chromium Authors"; 181 | TargetAttributes = { 182 | 97C146ED1CF9000F007C117D = { 183 | CreatedOnToolsVersion = 7.3.1; 184 | }; 185 | }; 186 | }; 187 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 188 | compatibilityVersion = "Xcode 3.2"; 189 | developmentRegion = English; 190 | hasScannedForEncodings = 0; 191 | knownRegions = ( 192 | en, 193 | Base, 194 | ); 195 | mainGroup = 97C146E51CF9000F007C117D; 196 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 197 | projectDirPath = ""; 198 | projectRoot = ""; 199 | targets = ( 200 | 97C146ED1CF9000F007C117D /* Runner */, 201 | ); 202 | }; 203 | /* End PBXProject section */ 204 | 205 | /* Begin PBXResourcesBuildPhase section */ 206 | 97C146EC1CF9000F007C117D /* Resources */ = { 207 | isa = PBXResourcesBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 211 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 212 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 213 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 214 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 215 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 216 | ); 217 | runOnlyForDeploymentPostprocessing = 0; 218 | }; 219 | /* End PBXResourcesBuildPhase section */ 220 | 221 | /* Begin PBXShellScriptBuildPhase section */ 222 | 14FA8907CB0B94B687BB024D /* [CP] Embed Pods Frameworks */ = { 223 | isa = PBXShellScriptBuildPhase; 224 | buildActionMask = 2147483647; 225 | files = ( 226 | ); 227 | inputPaths = ( 228 | "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", 229 | "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework", 230 | ); 231 | name = "[CP] Embed Pods Frameworks"; 232 | outputPaths = ( 233 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | shellPath = /bin/sh; 237 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 238 | showEnvVarsInLog = 0; 239 | }; 240 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 241 | isa = PBXShellScriptBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | ); 245 | inputPaths = ( 246 | ); 247 | name = "Thin Binary"; 248 | outputPaths = ( 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | shellPath = /bin/sh; 252 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 253 | }; 254 | 9740EEB61CF901F6004384FC /* Run Script */ = { 255 | isa = PBXShellScriptBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | inputPaths = ( 260 | ); 261 | name = "Run Script"; 262 | outputPaths = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | shellPath = /bin/sh; 266 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 267 | }; 268 | A3E8B80F8D2DB1DEDC0D5D42 /* [CP] Check Pods Manifest.lock */ = { 269 | isa = PBXShellScriptBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | inputPaths = ( 274 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 275 | "${PODS_ROOT}/Manifest.lock", 276 | ); 277 | name = "[CP] Check Pods Manifest.lock"; 278 | outputPaths = ( 279 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 284 | showEnvVarsInLog = 0; 285 | }; 286 | /* End PBXShellScriptBuildPhase section */ 287 | 288 | /* Begin PBXSourcesBuildPhase section */ 289 | 97C146EA1CF9000F007C117D /* Sources */ = { 290 | isa = PBXSourcesBuildPhase; 291 | buildActionMask = 2147483647; 292 | files = ( 293 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 294 | 97C146F31CF9000F007C117D /* main.m in Sources */, 295 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | }; 299 | /* End PBXSourcesBuildPhase section */ 300 | 301 | /* Begin PBXVariantGroup section */ 302 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 303 | isa = PBXVariantGroup; 304 | children = ( 305 | 97C146FB1CF9000F007C117D /* Base */, 306 | ); 307 | name = Main.storyboard; 308 | sourceTree = ""; 309 | }; 310 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 311 | isa = PBXVariantGroup; 312 | children = ( 313 | 97C147001CF9000F007C117D /* Base */, 314 | ); 315 | name = LaunchScreen.storyboard; 316 | sourceTree = ""; 317 | }; 318 | /* End PBXVariantGroup section */ 319 | 320 | /* Begin XCBuildConfiguration section */ 321 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 322 | isa = XCBuildConfiguration; 323 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 324 | buildSettings = { 325 | ALWAYS_SEARCH_USER_PATHS = NO; 326 | CLANG_ANALYZER_NONNULL = YES; 327 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 328 | CLANG_CXX_LIBRARY = "libc++"; 329 | CLANG_ENABLE_MODULES = YES; 330 | CLANG_ENABLE_OBJC_ARC = YES; 331 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 332 | CLANG_WARN_BOOL_CONVERSION = YES; 333 | CLANG_WARN_COMMA = YES; 334 | CLANG_WARN_CONSTANT_CONVERSION = YES; 335 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 336 | CLANG_WARN_EMPTY_BODY = YES; 337 | CLANG_WARN_ENUM_CONVERSION = YES; 338 | CLANG_WARN_INFINITE_RECURSION = YES; 339 | CLANG_WARN_INT_CONVERSION = YES; 340 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 341 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 343 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 344 | CLANG_WARN_STRICT_PROTOTYPES = YES; 345 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 346 | CLANG_WARN_UNREACHABLE_CODE = YES; 347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 349 | COPY_PHASE_STRIP = NO; 350 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 351 | ENABLE_NS_ASSERTIONS = NO; 352 | ENABLE_STRICT_OBJC_MSGSEND = YES; 353 | GCC_C_LANGUAGE_STANDARD = gnu99; 354 | GCC_NO_COMMON_BLOCKS = YES; 355 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 356 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 357 | GCC_WARN_UNDECLARED_SELECTOR = YES; 358 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 359 | GCC_WARN_UNUSED_FUNCTION = YES; 360 | GCC_WARN_UNUSED_VARIABLE = YES; 361 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 362 | MTL_ENABLE_DEBUG_INFO = NO; 363 | SDKROOT = iphoneos; 364 | TARGETED_DEVICE_FAMILY = "1,2"; 365 | VALIDATE_PRODUCT = YES; 366 | }; 367 | name = Profile; 368 | }; 369 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 370 | isa = XCBuildConfiguration; 371 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 372 | buildSettings = { 373 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 374 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 375 | DEVELOPMENT_TEAM = S8QB4VV633; 376 | ENABLE_BITCODE = NO; 377 | FRAMEWORK_SEARCH_PATHS = ( 378 | "$(inherited)", 379 | "$(PROJECT_DIR)/Flutter", 380 | ); 381 | INFOPLIST_FILE = Runner/Info.plist; 382 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 383 | LIBRARY_SEARCH_PATHS = ( 384 | "$(inherited)", 385 | "$(PROJECT_DIR)/Flutter", 386 | ); 387 | PRODUCT_BUNDLE_IDENTIFIER = com.hale.enjoyAndroid; 388 | PRODUCT_NAME = "$(TARGET_NAME)"; 389 | VERSIONING_SYSTEM = "apple-generic"; 390 | }; 391 | name = Profile; 392 | }; 393 | 97C147031CF9000F007C117D /* Debug */ = { 394 | isa = XCBuildConfiguration; 395 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 396 | buildSettings = { 397 | ALWAYS_SEARCH_USER_PATHS = NO; 398 | CLANG_ANALYZER_NONNULL = YES; 399 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 400 | CLANG_CXX_LIBRARY = "libc++"; 401 | CLANG_ENABLE_MODULES = YES; 402 | CLANG_ENABLE_OBJC_ARC = YES; 403 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 404 | CLANG_WARN_BOOL_CONVERSION = YES; 405 | CLANG_WARN_COMMA = YES; 406 | CLANG_WARN_CONSTANT_CONVERSION = YES; 407 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 408 | CLANG_WARN_EMPTY_BODY = YES; 409 | CLANG_WARN_ENUM_CONVERSION = YES; 410 | CLANG_WARN_INFINITE_RECURSION = YES; 411 | CLANG_WARN_INT_CONVERSION = YES; 412 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 413 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 414 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 415 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 416 | CLANG_WARN_STRICT_PROTOTYPES = YES; 417 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 418 | CLANG_WARN_UNREACHABLE_CODE = YES; 419 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 420 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 421 | COPY_PHASE_STRIP = NO; 422 | DEBUG_INFORMATION_FORMAT = dwarf; 423 | ENABLE_STRICT_OBJC_MSGSEND = YES; 424 | ENABLE_TESTABILITY = YES; 425 | GCC_C_LANGUAGE_STANDARD = gnu99; 426 | GCC_DYNAMIC_NO_PIC = NO; 427 | GCC_NO_COMMON_BLOCKS = YES; 428 | GCC_OPTIMIZATION_LEVEL = 0; 429 | GCC_PREPROCESSOR_DEFINITIONS = ( 430 | "DEBUG=1", 431 | "$(inherited)", 432 | ); 433 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 434 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 435 | GCC_WARN_UNDECLARED_SELECTOR = YES; 436 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 437 | GCC_WARN_UNUSED_FUNCTION = YES; 438 | GCC_WARN_UNUSED_VARIABLE = YES; 439 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 440 | MTL_ENABLE_DEBUG_INFO = YES; 441 | ONLY_ACTIVE_ARCH = YES; 442 | SDKROOT = iphoneos; 443 | TARGETED_DEVICE_FAMILY = "1,2"; 444 | }; 445 | name = Debug; 446 | }; 447 | 97C147041CF9000F007C117D /* Release */ = { 448 | isa = XCBuildConfiguration; 449 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 450 | buildSettings = { 451 | ALWAYS_SEARCH_USER_PATHS = NO; 452 | CLANG_ANALYZER_NONNULL = YES; 453 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 454 | CLANG_CXX_LIBRARY = "libc++"; 455 | CLANG_ENABLE_MODULES = YES; 456 | CLANG_ENABLE_OBJC_ARC = YES; 457 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 458 | CLANG_WARN_BOOL_CONVERSION = YES; 459 | CLANG_WARN_COMMA = YES; 460 | CLANG_WARN_CONSTANT_CONVERSION = YES; 461 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 462 | CLANG_WARN_EMPTY_BODY = YES; 463 | CLANG_WARN_ENUM_CONVERSION = YES; 464 | CLANG_WARN_INFINITE_RECURSION = YES; 465 | CLANG_WARN_INT_CONVERSION = YES; 466 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 467 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 468 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 469 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 470 | CLANG_WARN_STRICT_PROTOTYPES = YES; 471 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 472 | CLANG_WARN_UNREACHABLE_CODE = YES; 473 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 474 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 475 | COPY_PHASE_STRIP = NO; 476 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 477 | ENABLE_NS_ASSERTIONS = NO; 478 | ENABLE_STRICT_OBJC_MSGSEND = YES; 479 | GCC_C_LANGUAGE_STANDARD = gnu99; 480 | GCC_NO_COMMON_BLOCKS = YES; 481 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 482 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 483 | GCC_WARN_UNDECLARED_SELECTOR = YES; 484 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 485 | GCC_WARN_UNUSED_FUNCTION = YES; 486 | GCC_WARN_UNUSED_VARIABLE = YES; 487 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 488 | MTL_ENABLE_DEBUG_INFO = NO; 489 | SDKROOT = iphoneos; 490 | TARGETED_DEVICE_FAMILY = "1,2"; 491 | VALIDATE_PRODUCT = YES; 492 | }; 493 | name = Release; 494 | }; 495 | 97C147061CF9000F007C117D /* Debug */ = { 496 | isa = XCBuildConfiguration; 497 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 498 | buildSettings = { 499 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 500 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 501 | ENABLE_BITCODE = NO; 502 | FRAMEWORK_SEARCH_PATHS = ( 503 | "$(inherited)", 504 | "$(PROJECT_DIR)/Flutter", 505 | ); 506 | INFOPLIST_FILE = Runner/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 508 | LIBRARY_SEARCH_PATHS = ( 509 | "$(inherited)", 510 | "$(PROJECT_DIR)/Flutter", 511 | ); 512 | PRODUCT_BUNDLE_IDENTIFIER = com.hale.enjoyAndroid; 513 | PRODUCT_NAME = "$(TARGET_NAME)"; 514 | VERSIONING_SYSTEM = "apple-generic"; 515 | }; 516 | name = Debug; 517 | }; 518 | 97C147071CF9000F007C117D /* Release */ = { 519 | isa = XCBuildConfiguration; 520 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 521 | buildSettings = { 522 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 523 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 524 | ENABLE_BITCODE = NO; 525 | FRAMEWORK_SEARCH_PATHS = ( 526 | "$(inherited)", 527 | "$(PROJECT_DIR)/Flutter", 528 | ); 529 | INFOPLIST_FILE = Runner/Info.plist; 530 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 531 | LIBRARY_SEARCH_PATHS = ( 532 | "$(inherited)", 533 | "$(PROJECT_DIR)/Flutter", 534 | ); 535 | PRODUCT_BUNDLE_IDENTIFIER = com.hale.enjoyAndroid; 536 | PRODUCT_NAME = "$(TARGET_NAME)"; 537 | VERSIONING_SYSTEM = "apple-generic"; 538 | }; 539 | name = Release; 540 | }; 541 | /* End XCBuildConfiguration section */ 542 | 543 | /* Begin XCConfigurationList section */ 544 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 545 | isa = XCConfigurationList; 546 | buildConfigurations = ( 547 | 97C147031CF9000F007C117D /* Debug */, 548 | 97C147041CF9000F007C117D /* Release */, 549 | 249021D3217E4FDB00AE95B9 /* Profile */, 550 | ); 551 | defaultConfigurationIsVisible = 0; 552 | defaultConfigurationName = Release; 553 | }; 554 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 555 | isa = XCConfigurationList; 556 | buildConfigurations = ( 557 | 97C147061CF9000F007C117D /* Debug */, 558 | 97C147071CF9000F007C117D /* Release */, 559 | 249021D4217E4FDB00AE95B9 /* Profile */, 560 | ); 561 | defaultConfigurationIsVisible = 0; 562 | defaultConfigurationName = Release; 563 | }; 564 | /* End XCConfigurationList section */ 565 | }; 566 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 567 | } 568 | --------------------------------------------------------------------------------