├── .DS_Store
├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── zhengda
│ │ │ │ └── toutiao
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── images
├── circle_bg.png
├── ic_app_bilibili.png
├── ic_app_douyin.png
├── ic_app_maoyan.png
├── ic_app_nestes_music.png
├── ic_close.png
├── ic_comment.png
├── ic_more.png
├── ic_play.png
├── ic_scan.png
├── ic_search.png
├── ic_setting.png
├── launcher.png
├── news1.jpeg
├── news2.jpeg
├── news3.jpeg
├── news4.jpeg
├── splash_logo.png
├── video_cover1.jpg
├── video_cover2.jpg
├── video_cover3.jpg
├── video_head1.jpg
├── video_head2.jpg
└── video_head3.jpg
├── img
├── .DS_Store
├── 我的.jpg
├── 登录.jpg
├── 西瓜视频.jpg
└── 首页.jpg
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── bean
│ ├── NewsItemBean.dart
│ └── VideoItemBean.dart
├── home
│ ├── HomePageContent.dart
│ ├── homepage.dart
│ ├── homepageSubPage.dart
│ └── homesearchview.dart
├── login
│ └── loginpage.dart
├── main
│ └── main.dart
├── mine
│ ├── applets.dart
│ ├── mine.dart
│ ├── minemenu.dart
│ └── moreservice.dart
├── splash
│ └── splash.dart
├── webview
│ └── WebView.dart
├── widget
│ └── MyEasyRefresh.dart
└── xigua
│ ├── xigua.dart
│ ├── xiguaPageContent.dart
│ └── xiguapageSubPage.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.aar
4 | *.ap_
5 | *.aab
6 |
7 | # Files for the ART/Dalvik VM
8 | *.dex
9 |
10 | # Java class files
11 | *.class
12 |
13 | # Generated files
14 | bin/
15 | gen/
16 | out/
17 | # Uncomment the following line in case you need and you don't have the release build type files in your app
18 | # release/
19 |
20 | # Gradle files
21 | .gradle/
22 | build/
23 |
24 | # Local configuration file (sdk path, etc)
25 | local.properties
26 |
27 | # Proguard folder generated by Eclipse
28 | proguard/
29 |
30 | # Log Files
31 | *.log
32 |
33 | # Android Studio Navigation editor temp files
34 | .navigation/
35 |
36 | # Android Studio captures folder
37 | captures/
38 |
39 | # IntelliJ
40 | *.iml
41 | .idea/workspace.xml
42 | .idea/tasks.xml
43 | .idea/gradle.xml
44 | .idea/assetWizardSettings.xml
45 | .idea/dictionaries
46 | .idea/libraries
47 | # Android Studio 3 in .gitignore file.
48 | .idea/caches
49 | .idea/modules.xml
50 | # Comment next line if keeping position of elements in Navigation Editor is relevant for you
51 | .idea/navEditor.xml
52 |
53 | # Keystore files
54 | # Uncomment the following lines if you do not want to check your keystore files in.
55 | #*.jks
56 | #*.keystore
57 |
58 | # External native build folder generated in Android Studio 2.2 and later
59 | .externalNativeBuild
60 | .cxx/
61 |
62 | # Google Services (e.g. APIs or Firebase)
63 | # google-services.json
64 |
65 | # Freeline
66 | freeline.py
67 | freeline/
68 | freeline_project_description.json
69 |
70 | # fastlane
71 | fastlane/report.xml
72 | fastlane/Preview.html
73 | fastlane/screenshots
74 | fastlane/test_output
75 | fastlane/readme.md
76 |
77 | # Version control
78 | vcs.xml
79 |
80 | # lint
81 | lint/intermediates/
82 | lint/generated/
83 | lint/outputs/
84 | lint/tmp/
85 | # lint/reports/
86 |
--------------------------------------------------------------------------------
/.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: 198df796aa80073ef22bdf249e614e2ff33c6895
8 | channel: beta
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 BaoYing-Fan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # FlutterToutiao
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.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
18 | ## Project screenshots
19 |
20 | #### 1. 首页
21 |
22 |

23 |
24 |
25 | #### 2. 西瓜视频
26 |
27 |
28 |

29 |
30 |
31 | #### 3. 我的
32 |
33 |
34 |

35 |
36 |
37 | #### 4. 一键登录
38 |
39 |
40 |

41 |
42 |
43 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 29
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.zhengda.toutiao"
42 | minSdkVersion 16
43 | targetSdkVersion 29
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
9 |
16 |
20 |
24 |
29 |
33 |
34 |
35 |
36 |
37 |
38 |
40 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/zhengda/toutiao/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.zhengda.toutiao
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/android/app/src/main/res/mipmap-xxhdpi/launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 | android.enableR8=true
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/images/circle_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/circle_bg.png
--------------------------------------------------------------------------------
/images/ic_app_bilibili.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_app_bilibili.png
--------------------------------------------------------------------------------
/images/ic_app_douyin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_app_douyin.png
--------------------------------------------------------------------------------
/images/ic_app_maoyan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_app_maoyan.png
--------------------------------------------------------------------------------
/images/ic_app_nestes_music.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_app_nestes_music.png
--------------------------------------------------------------------------------
/images/ic_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_close.png
--------------------------------------------------------------------------------
/images/ic_comment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_comment.png
--------------------------------------------------------------------------------
/images/ic_more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_more.png
--------------------------------------------------------------------------------
/images/ic_play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_play.png
--------------------------------------------------------------------------------
/images/ic_scan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_scan.png
--------------------------------------------------------------------------------
/images/ic_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_search.png
--------------------------------------------------------------------------------
/images/ic_setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/ic_setting.png
--------------------------------------------------------------------------------
/images/launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/launcher.png
--------------------------------------------------------------------------------
/images/news1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/news1.jpeg
--------------------------------------------------------------------------------
/images/news2.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/news2.jpeg
--------------------------------------------------------------------------------
/images/news3.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/news3.jpeg
--------------------------------------------------------------------------------
/images/news4.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/news4.jpeg
--------------------------------------------------------------------------------
/images/splash_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/splash_logo.png
--------------------------------------------------------------------------------
/images/video_cover1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/video_cover1.jpg
--------------------------------------------------------------------------------
/images/video_cover2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/video_cover2.jpg
--------------------------------------------------------------------------------
/images/video_cover3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/video_cover3.jpg
--------------------------------------------------------------------------------
/images/video_head1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/video_head1.jpg
--------------------------------------------------------------------------------
/images/video_head2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/video_head2.jpg
--------------------------------------------------------------------------------
/images/video_head3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/images/video_head3.jpg
--------------------------------------------------------------------------------
/img/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/img/.DS_Store
--------------------------------------------------------------------------------
/img/我的.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/img/我的.jpg
--------------------------------------------------------------------------------
/img/登录.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/img/登录.jpg
--------------------------------------------------------------------------------
/img/西瓜视频.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/img/西瓜视频.jpg
--------------------------------------------------------------------------------
/img/首页.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/img/首页.jpg
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | FRAMEWORK_SEARCH_PATHS = (
293 | "$(inherited)",
294 | "$(PROJECT_DIR)/Flutter",
295 | );
296 | INFOPLIST_FILE = Runner/Info.plist;
297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
298 | LIBRARY_SEARCH_PATHS = (
299 | "$(inherited)",
300 | "$(PROJECT_DIR)/Flutter",
301 | );
302 | PRODUCT_BUNDLE_IDENTIFIER = com.zhengda.toutiao;
303 | PRODUCT_NAME = "$(TARGET_NAME)";
304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
305 | SWIFT_VERSION = 5.0;
306 | VERSIONING_SYSTEM = "apple-generic";
307 | };
308 | name = Profile;
309 | };
310 | 97C147031CF9000F007C117D /* Debug */ = {
311 | isa = XCBuildConfiguration;
312 | buildSettings = {
313 | ALWAYS_SEARCH_USER_PATHS = NO;
314 | CLANG_ANALYZER_NONNULL = YES;
315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
316 | CLANG_CXX_LIBRARY = "libc++";
317 | CLANG_ENABLE_MODULES = YES;
318 | CLANG_ENABLE_OBJC_ARC = YES;
319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
320 | CLANG_WARN_BOOL_CONVERSION = YES;
321 | CLANG_WARN_COMMA = YES;
322 | CLANG_WARN_CONSTANT_CONVERSION = YES;
323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
325 | CLANG_WARN_EMPTY_BODY = YES;
326 | CLANG_WARN_ENUM_CONVERSION = YES;
327 | CLANG_WARN_INFINITE_RECURSION = YES;
328 | CLANG_WARN_INT_CONVERSION = YES;
329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
334 | CLANG_WARN_STRICT_PROTOTYPES = YES;
335 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
336 | CLANG_WARN_UNREACHABLE_CODE = YES;
337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
339 | COPY_PHASE_STRIP = NO;
340 | DEBUG_INFORMATION_FORMAT = dwarf;
341 | ENABLE_STRICT_OBJC_MSGSEND = YES;
342 | ENABLE_TESTABILITY = YES;
343 | GCC_C_LANGUAGE_STANDARD = gnu99;
344 | GCC_DYNAMIC_NO_PIC = NO;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_OPTIMIZATION_LEVEL = 0;
347 | GCC_PREPROCESSOR_DEFINITIONS = (
348 | "DEBUG=1",
349 | "$(inherited)",
350 | );
351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
353 | GCC_WARN_UNDECLARED_SELECTOR = YES;
354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
355 | GCC_WARN_UNUSED_FUNCTION = YES;
356 | GCC_WARN_UNUSED_VARIABLE = YES;
357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
358 | MTL_ENABLE_DEBUG_INFO = YES;
359 | ONLY_ACTIVE_ARCH = YES;
360 | SDKROOT = iphoneos;
361 | TARGETED_DEVICE_FAMILY = "1,2";
362 | };
363 | name = Debug;
364 | };
365 | 97C147041CF9000F007C117D /* Release */ = {
366 | isa = XCBuildConfiguration;
367 | buildSettings = {
368 | ALWAYS_SEARCH_USER_PATHS = NO;
369 | CLANG_ANALYZER_NONNULL = YES;
370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
371 | CLANG_CXX_LIBRARY = "libc++";
372 | CLANG_ENABLE_MODULES = YES;
373 | CLANG_ENABLE_OBJC_ARC = YES;
374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
375 | CLANG_WARN_BOOL_CONVERSION = YES;
376 | CLANG_WARN_COMMA = YES;
377 | CLANG_WARN_CONSTANT_CONVERSION = YES;
378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
380 | CLANG_WARN_EMPTY_BODY = YES;
381 | CLANG_WARN_ENUM_CONVERSION = YES;
382 | CLANG_WARN_INFINITE_RECURSION = YES;
383 | CLANG_WARN_INT_CONVERSION = YES;
384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
389 | CLANG_WARN_STRICT_PROTOTYPES = YES;
390 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
391 | CLANG_WARN_UNREACHABLE_CODE = YES;
392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
394 | COPY_PHASE_STRIP = NO;
395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
396 | ENABLE_NS_ASSERTIONS = NO;
397 | ENABLE_STRICT_OBJC_MSGSEND = YES;
398 | GCC_C_LANGUAGE_STANDARD = gnu99;
399 | GCC_NO_COMMON_BLOCKS = YES;
400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
402 | GCC_WARN_UNDECLARED_SELECTOR = YES;
403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
404 | GCC_WARN_UNUSED_FUNCTION = YES;
405 | GCC_WARN_UNUSED_VARIABLE = YES;
406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
407 | MTL_ENABLE_DEBUG_INFO = NO;
408 | SDKROOT = iphoneos;
409 | SUPPORTED_PLATFORMS = iphoneos;
410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
411 | TARGETED_DEVICE_FAMILY = "1,2";
412 | VALIDATE_PRODUCT = YES;
413 | };
414 | name = Release;
415 | };
416 | 97C147061CF9000F007C117D /* Debug */ = {
417 | isa = XCBuildConfiguration;
418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
419 | buildSettings = {
420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
421 | CLANG_ENABLE_MODULES = YES;
422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
423 | ENABLE_BITCODE = NO;
424 | FRAMEWORK_SEARCH_PATHS = (
425 | "$(inherited)",
426 | "$(PROJECT_DIR)/Flutter",
427 | );
428 | INFOPLIST_FILE = Runner/Info.plist;
429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
430 | LIBRARY_SEARCH_PATHS = (
431 | "$(inherited)",
432 | "$(PROJECT_DIR)/Flutter",
433 | );
434 | PRODUCT_BUNDLE_IDENTIFIER = com.zhengda.toutiao;
435 | PRODUCT_NAME = "$(TARGET_NAME)";
436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
438 | SWIFT_VERSION = 5.0;
439 | VERSIONING_SYSTEM = "apple-generic";
440 | };
441 | name = Debug;
442 | };
443 | 97C147071CF9000F007C117D /* Release */ = {
444 | isa = XCBuildConfiguration;
445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
446 | buildSettings = {
447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
448 | CLANG_ENABLE_MODULES = YES;
449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
450 | ENABLE_BITCODE = NO;
451 | FRAMEWORK_SEARCH_PATHS = (
452 | "$(inherited)",
453 | "$(PROJECT_DIR)/Flutter",
454 | );
455 | INFOPLIST_FILE = Runner/Info.plist;
456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
457 | LIBRARY_SEARCH_PATHS = (
458 | "$(inherited)",
459 | "$(PROJECT_DIR)/Flutter",
460 | );
461 | PRODUCT_BUNDLE_IDENTIFIER = com.zhengda.toutiao;
462 | PRODUCT_NAME = "$(TARGET_NAME)";
463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
464 | SWIFT_VERSION = 5.0;
465 | VERSIONING_SYSTEM = "apple-generic";
466 | };
467 | name = Release;
468 | };
469 | /* End XCBuildConfiguration section */
470 |
471 | /* Begin XCConfigurationList section */
472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
473 | isa = XCConfigurationList;
474 | buildConfigurations = (
475 | 97C147031CF9000F007C117D /* Debug */,
476 | 97C147041CF9000F007C117D /* Release */,
477 | 249021D3217E4FDB00AE95B9 /* Profile */,
478 | );
479 | defaultConfigurationIsVisible = 0;
480 | defaultConfigurationName = Release;
481 | };
482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
483 | isa = XCConfigurationList;
484 | buildConfigurations = (
485 | 97C147061CF9000F007C117D /* Debug */,
486 | 97C147071CF9000F007C117D /* Release */,
487 | 249021D4217E4FDB00AE95B9 /* Profile */,
488 | );
489 | defaultConfigurationIsVisible = 0;
490 | defaultConfigurationName = Release;
491 | };
492 | /* End XCConfigurationList section */
493 | };
494 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
495 | }
496 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fanbaoying/FlutterToutiao/b1fd443ae60a18ef1b6be3d5bd55daa0c9ee78ed/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | toutiao
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/bean/NewsItemBean.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/material.dart';
3 |
4 | class NewsItemBean {
5 | final String title;
6 | final ClipRRect image;
7 | final String authorName;
8 | final String commentCount;
9 |
10 | NewsItemBean(this.title, this.image, this.authorName, this.commentCount);
11 | }
--------------------------------------------------------------------------------
/lib/bean/VideoItemBean.dart:
--------------------------------------------------------------------------------
1 |
2 | class VideoItemBean {
3 | final String title;
4 | final String cover;
5 | final String authorName;
6 | final String avator;
7 | final String commentCount;
8 |
9 | VideoItemBean(this.title, this.cover, this.authorName, this.avator, this.commentCount);
10 | }
--------------------------------------------------------------------------------
/lib/home/HomePageContent.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:toutiao/home/homepageSubPage.dart';
3 | import 'package:toutiao/home/homesearchview.dart';
4 |
5 | // 页面内容
6 | class HomePageContent extends StatefulWidget {
7 | HomePageContent({Key key, this.title}) : super(key: key);
8 |
9 | final String title;
10 |
11 | @override
12 | HomePageContentState createState() => HomePageContentState();
13 | }
14 |
15 | class HomePageContentState extends State
16 | with SingleTickerProviderStateMixin {
17 | List tabs = ["关注", "推荐", "热榜", "要闻", "新时代", "抗疫", "免费小说", "热点"];
18 | List pages = new List();
19 | List tabViews = new List();
20 | TabController tabController;
21 | var topBarHeight = 65;
22 |
23 | @override
24 | void initState() {
25 | super.initState();
26 | tabController = new TabController(length: tabs.length, vsync: this);
27 | tabController.addListener(() {
28 | var index = tabController.index;
29 | });
30 |
31 | for(int i=0;i list = new List();
21 | EasyRefreshController easyRefreshController;
22 |
23 | HomeContent() {
24 | easyRefreshController = EasyRefreshController();
25 |
26 | NewsItemBean itemBean1 = new NewsItemBean(
27 | "马云圆梦A股!蚂蚁集团IPO获批",
28 | ClipRRect(
29 | borderRadius: BorderRadius.circular(4),
30 | child: Image.asset(
31 | "images/news2.jpeg",
32 | alignment: Alignment.topCenter,
33 | )),
34 | "中国银行保险报",
35 | "78");
36 |
37 | NewsItemBean itemBean2 = new NewsItemBean(
38 | "奥巴马炮轰特朗普:从我这儿继承的美国\"繁荣经济\",他全搞砸了",
39 | ClipRRect(
40 | borderRadius: BorderRadius.circular(4),
41 | child: Image.asset(
42 | "images/news1.jpeg",
43 | alignment: Alignment.topCenter,
44 | )),
45 | "环球网",
46 | "753");
47 |
48 | NewsItemBean itemBean3 = new NewsItemBean(
49 | "100个抑郁症女生的写真",
50 | ClipRRect(
51 | borderRadius: BorderRadius.circular(4),
52 | child: Image.asset(
53 | "images/news3.jpeg",
54 | alignment: Alignment.topCenter,
55 | )),
56 | "央视网新闻",
57 | "15");
58 |
59 | NewsItemBean itemBean4 = new NewsItemBean(
60 | "日本将向海洋排放福岛核污水?",
61 | ClipRRect(
62 | borderRadius: BorderRadius.circular(4),
63 | child: Image.asset(
64 | "images/news4.jpeg",
65 | alignment: Alignment.topCenter,
66 | )),
67 | "一条",
68 | "625");
69 |
70 | list.add(itemBean1);
71 | list.add(itemBean2);
72 | list.add(itemBean3);
73 | list.add(itemBean4);
74 |
75 | list.add(itemBean1);
76 | list.add(itemBean2);
77 | list.add(itemBean3);
78 | list.add(itemBean4);
79 |
80 | list.add(itemBean1);
81 | list.add(itemBean2);
82 | list.add(itemBean3);
83 | list.add(itemBean4);
84 | }
85 |
86 | @override
87 | Widget build(BuildContext context) {
88 | return MyEasyRefresh(
89 | ListView.builder(
90 | itemCount: list.length,
91 | itemBuilder: (context, index) {
92 | return GestureDetector(
93 | onTap: () {
94 | Navigator.of(context).push(new MaterialPageRoute(builder: (BuildContext context) {
95 | return MyWebView();
96 | }));
97 | },
98 | child: Container(
99 | padding: const EdgeInsets.all(15),
100 | child: Stack(
101 | children: [
102 | Container(
103 | width: 200,
104 | height: 60,
105 | child: Text(list[index].title,
106 | style: TextStyle(fontSize: 16)),
107 | ),
108 | Positioned(
109 | child: Container(
110 | margin: const EdgeInsets.fromLTRB(208, 0, 0, 0),
111 | width: 150,
112 | height: 70,
113 | child: ClipRRect(
114 | borderRadius: BorderRadius.circular(4),
115 | child: list[index].image),
116 | ),
117 | ),
118 | Container(
119 | margin: const EdgeInsets.fromLTRB(0, 60, 0, 0),
120 | child: Text(
121 | list[index].authorName +
122 | " 评论" +
123 | list[index].commentCount,
124 | style: TextStyle(
125 | fontSize: 12, color: Colors.black38))),
126 | ],
127 | ),
128 | decoration: BoxDecoration(
129 | border: Border(
130 | bottom: BorderSide(
131 | width: 0.3, color: Colors.black12))),
132 | ),
133 | );
134 | })
135 | );
136 | }
137 | }
138 |
--------------------------------------------------------------------------------
/lib/home/homesearchview.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class HomeSearchView extends StatelessWidget {
6 | @override
7 | Widget build(BuildContext context) {
8 | return Stack(
9 | children: [
10 | Align(
11 | alignment: Alignment.bottomLeft,
12 | child: Stack(
13 | alignment: Alignment.centerLeft,
14 | children: [
15 | FlatButton(
16 | minWidth: 290,
17 | height: 40,
18 | color: Colors.white,
19 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)), //设置圆角
20 | onPressed: () {
21 |
22 | },
23 | ),
24 | Row(
25 | children: [
26 | Container(
27 | margin: const EdgeInsets.only(left: 12, right: 8),
28 | child: Image.asset("images/ic_search.png", width: 18, height: 18),
29 | ),
30 | Text("宋茜泳装照 | 英雄联盟S10赛季"),
31 | ],
32 | )
33 | ],
34 | )
35 | ),
36 | Align(
37 | alignment: Alignment.bottomRight,
38 | child: Column(
39 | children: [
40 | Container(
41 | width: 25,
42 | height: 25,
43 | margin: const EdgeInsets.only(top: 40, bottom: 3),
44 | child: FloatingActionButton(
45 | backgroundColor: Colors.white,
46 | child: Text("+", style: TextStyle(fontSize: 20, color: Colors.red)),
47 | ),
48 | ),
49 | Text("发布", style: TextStyle(color: Colors.white, fontSize: 10))
50 | ],
51 | ),
52 | ),
53 |
54 | ],
55 | );
56 | }
57 |
58 | }
--------------------------------------------------------------------------------
/lib/login/loginpage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class LoginPage extends StatefulWidget {
5 |
6 | @override
7 | _LoginPage createState() => _LoginPage();
8 | }
9 |
10 | class _LoginPage extends State {
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return MaterialApp(
15 | home: Scaffold(
16 | body: ListView(
17 | children: [
18 | InkWell(
19 | onTap: () {
20 | Navigator.pop(context);
21 | },
22 | child: Container(
23 | alignment: Alignment.topLeft,
24 | padding: const EdgeInsets.all(15),
25 | child: Image.asset("images/ic_close.png", width: 16, height: 16),
26 | ),
27 | ),
28 | Container(
29 | padding: const EdgeInsets.only(top: 50),
30 | height: 90,
31 | child: Image.asset("images/launcher.png"),
32 | ),
33 | Container(
34 | margin: const EdgeInsets.only(top: 10),
35 | alignment: Alignment.center,
36 | child: Text("登录你的头条,精彩永不丢失", style: TextStyle(color: Colors.black, fontSize: 16)),
37 | ),
38 | Container(
39 | alignment: Alignment.center,
40 | margin: const EdgeInsets.only(top: 50),
41 | child: Text("中国移动认证", style: TextStyle(color: Colors.black54)),
42 | ),
43 | Container(
44 | margin: const EdgeInsets.only(top: 10),
45 | alignment: Alignment.center,
46 | child: Text("182****7610", style: TextStyle(color: Colors.black, fontSize: 30)),
47 | ),
48 | Container(
49 | height: 43,
50 | margin: const EdgeInsets.fromLTRB(55, 30, 55, 0),
51 | child: RaisedButton(
52 | child: Text("一键登录"),
53 | textColor: Colors.white,
54 | color: Colors.red,
55 | highlightColor: Colors.red[300],
56 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(5)),
57 | onPressed: () {
58 | //此处添加toast
59 | },
60 | ),
61 | ),
62 | Container(
63 | alignment: Alignment.center,
64 | margin: const EdgeInsets.only(left: 20, top: 20, right: 20),
65 | child: Text("登录即同意《中国移动认证服务条款》\n及\"用户协议\"和\"隐私政策\"", textAlign: TextAlign.center, style: TextStyle(fontSize: 13, color: Colors.black54),),
66 | )
67 | ],
68 | ),
69 | ),
70 | );
71 | }
72 |
73 | }
--------------------------------------------------------------------------------
/lib/main/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:toutiao/home/homepage.dart';
3 | import 'package:toutiao/mine/mine.dart';
4 | import 'package:toutiao/xigua/xigua.dart';
5 |
6 | class MainPage extends StatefulWidget {
7 | MainPage({Key key}) : super(key: key);
8 |
9 | _MyAppState createState() => _MyAppState();
10 |
11 | }
12 |
13 | class _MyAppState extends State {
14 | // This widget is the root of your application.
15 | int _currentIndex = 0;
16 |
17 | List _pageList = [
18 | HomePage(), //页面1
19 | XiguaPage(), //页面2
20 | MinePage(), //页面3
21 | ];
22 |
23 | List bottomItems = [
24 | BottomNavigationBarItem(
25 | icon: Icon(Icons.home, color: Colors.black54),
26 | activeIcon: Icon(Icons.home, color: Colors.red),
27 | title: Text("首页", style: TextStyle(fontSize: 12))
28 | ),
29 | BottomNavigationBarItem(
30 | icon: Icon(Icons.video_call_rounded, color: Colors.black54),
31 | activeIcon: Icon(Icons.video_call_rounded, color: Colors.red),
32 | title: Text("西瓜视频", style: TextStyle(fontSize: 12))
33 | ),
34 | BottomNavigationBarItem(
35 | icon: Icon(Icons.account_circle_rounded, color: Colors.black54),
36 | activeIcon: Icon(Icons.account_circle_rounded, color: Colors.red),
37 | title: Text("我的", style: TextStyle(fontSize: 12))
38 | )
39 | ];
40 |
41 | @override
42 | Widget build(BuildContext context) {
43 | return MaterialApp(
44 | title: 'Flutter Demo',
45 | theme: ThemeData(
46 | primarySwatch: Colors.blue,
47 | ),
48 | home: Scaffold(
49 | body: this._pageList[this._currentIndex],
50 | bottomNavigationBar: BottomNavigationBar(
51 | selectedFontSize: 14,
52 | unselectedFontSize: 12,
53 | selectedItemColor: Colors.red,
54 | currentIndex: _currentIndex,
55 | type: BottomNavigationBarType.fixed,
56 | items: bottomItems,
57 | onTap: (int index) {
58 | setState(() {
59 | this._currentIndex = index;
60 | });
61 | },
62 | ),
63 | ),
64 | );
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/lib/mine/applets.dart:
--------------------------------------------------------------------------------
1 |
2 |
3 | import 'package:flutter/cupertino.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:toutiao/mine/minemenu.dart';
6 |
7 | class Applets extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return Container(
11 | color: Colors.white,
12 | child: Column(
13 | children: [
14 | Stack(
15 | children: [
16 | Align(
17 | alignment: AlignmentDirectional.bottomStart,
18 | child: Text("小程序", style: TextStyle(fontSize: 18)),
19 | ),
20 | Align(
21 | alignment: AlignmentDirectional.bottomEnd,
22 | child: Text("全部 >", style: TextStyle(fontSize: 13, color: Colors.black38)),
23 | )
24 | ],
25 | ),
26 | AppletMenuRow(),
27 | AppletMenuRow(),
28 | ],
29 | ),
30 | );
31 | }
32 |
33 | }
--------------------------------------------------------------------------------
/lib/mine/mine.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/material.dart';
3 | import 'package:toutiao/login/loginpage.dart';
4 | import 'package:toutiao/mine/applets.dart';
5 | import 'package:toutiao/mine/minemenu.dart';
6 | import 'package:toutiao/widget/MyEasyRefresh.dart';
7 | import 'moreservice.dart';
8 |
9 | class MinePage extends StatelessWidget {
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Scaffold(
14 | body: MyEasyRefresh(
15 | ListView(
16 | padding: const EdgeInsets.only(left: 15, top: 50, right: 15),
17 | children: [
18 | Stack(
19 | children: [
20 | Align(
21 | alignment: AlignmentDirectional.topStart,
22 | child: Image.asset("images/ic_scan.png", width: 20, height: 20)
23 | ),
24 | Align(
25 | alignment: AlignmentDirectional.topEnd,
26 | child: Image.asset("images/ic_setting.png", width: 20, height: 20)
27 | ),
28 | ],
29 | ),
30 | Container(
31 | margin: const EdgeInsets.only(top: 20),
32 | child: InkWell(
33 | onTap: () {
34 | Navigator.of(context).push(new MaterialPageRoute(builder: (BuildContext context) {
35 | return LoginPage();
36 | }));
37 | },
38 | child: Stack(
39 | alignment: Alignment.center,
40 | children: [
41 | Container(
42 | width: 110,
43 | height: 110,
44 | child: Image.asset("images/circle_bg.png", width: 20, height: 20)
45 | ),
46 | Text("登录", style: TextStyle(fontSize: 19, color: Colors.white))
47 | ],
48 | ),
49 | )
50 | ),
51 | MineMenu(),
52 | Container(
53 | color: Colors.white,
54 | height: 50,
55 | margin: const EdgeInsets.only(top: 14),
56 | padding: const EdgeInsets.only(left: 14, right: 14),
57 | child: Stack(
58 | children: [
59 | Align(
60 | alignment: Alignment.centerLeft,
61 | child: Text("你创作的,就是头条", style: TextStyle(fontSize: 15))
62 | ),
63 | Align(
64 | alignment: AlignmentDirectional.centerEnd,
65 | child: Container(
66 | width: 69,
67 | height: 30,
68 | child: OutlineButton(
69 | textColor: Colors.red,
70 | child: Text("+发布", style: TextStyle(fontSize: 13)),
71 | borderSide: BorderSide(color: Colors.red, style: BorderStyle.solid),
72 | onPressed: () {
73 | print("OutlineButton Click");
74 | },
75 | ),
76 | )
77 | )
78 | ],
79 | ),
80 | ),
81 | MoreService(),
82 | Container(
83 | color: Colors.white,
84 | padding: const EdgeInsets.all(12),
85 | margin: const EdgeInsets.only(top: 14, bottom: 20),
86 | child: Applets(),
87 | )
88 | ],
89 | )
90 | ),
91 | );
92 | }
93 |
94 | }
--------------------------------------------------------------------------------
/lib/mine/minemenu.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class MineMenu extends StatelessWidget {
6 | List titles1 = List();
7 |
8 | MineMenu() {
9 | titles1.add("消息通知");
10 | titles1.add("收藏");
11 | titles1.add("浏览历史");
12 | titles1.add("下载管理");
13 | }
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return Container(
18 | color: Colors.white,
19 | height: 90,
20 | alignment: Alignment.center,
21 | margin: const EdgeInsets.only(top: 25),
22 | child: MenuRow(titles1, Colors.red)
23 | );
24 | }
25 |
26 | }
27 |
28 | //服务类型组件
29 | class MenuRow extends StatelessWidget {
30 |
31 | List titles = List();
32 | Color iconColor = Colors.red;
33 |
34 | MenuRow(this.titles, this.iconColor);
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return Row(
39 | mainAxisAlignment: MainAxisAlignment.spaceAround, //子view空间等分
40 | mainAxisSize: MainAxisSize.max, //match_parent
41 | children: [
42 | Column(children: [
43 | Container(
44 | margin: const EdgeInsets.only(top: 20, bottom: 5),
45 | child: Icon(Icons.notifications_none_outlined, size: 30, color: iconColor),
46 | ),
47 | Text(titles[0], style: TextStyle(fontSize: 13))
48 | ],),
49 | Column(children: [
50 | Container(
51 | margin: const EdgeInsets.only(top: 20, bottom: 5),
52 | child: Icon(Icons.star_border, size: 30, color: iconColor),
53 | ),
54 | Text(titles[1], style: TextStyle(fontSize: 13))
55 | ],),
56 | Column(children: [
57 | Container(
58 | margin: const EdgeInsets.only(top: 20, bottom: 5),
59 | child: Icon(Icons.history, size: 30, color: iconColor),
60 | ),
61 | Text(titles[2], style: TextStyle(fontSize: 13))
62 | ],),
63 | Column(children: [
64 | Container(
65 | margin: const EdgeInsets.only(top: 20, bottom: 5),
66 | child: Icon(Icons.download_sharp, size: 30, color: iconColor),
67 | ),
68 | Text(titles[3], style: TextStyle(fontSize: 13))
69 | ],),
70 | ],
71 | );
72 | }
73 | }
74 |
75 | class AppletMenuRow extends StatelessWidget {
76 | @override
77 | Widget build(BuildContext context) {
78 | return Row(
79 | mainAxisAlignment: MainAxisAlignment.spaceAround, //子view空间等分
80 | mainAxisSize: MainAxisSize.max, //match_parent
81 | children: [
82 | Column(children: [
83 | AppIcon("images/ic_app_douyin.png"),
84 | Text("抖音")
85 | ]),
86 | Column(children: [
87 | AppIcon("images/ic_app_bilibili.png"),
88 | Text("bilibili")
89 | ]),
90 | Column(children: [
91 | AppIcon("images/ic_app_maoyan.png"),
92 | Text("猫眼")
93 | ]),
94 | Column(children: [
95 | AppIcon("images/ic_app_nestes_music.png"),
96 | Text("云音乐")
97 | ])
98 | ],
99 | );
100 | }
101 |
102 | }
103 |
104 | class AppIcon extends StatelessWidget {
105 | String asset;
106 |
107 | AppIcon(this.asset);
108 |
109 | @override
110 | Widget build(BuildContext context) {
111 | return Container(
112 | margin: const EdgeInsets.only(top: 20, bottom: 3),
113 | width: 35,
114 | height: 35,
115 | child: Image.asset(asset),
116 | );
117 | }
118 |
119 | }
--------------------------------------------------------------------------------
/lib/mine/moreservice.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/material.dart';
3 | import 'package:toutiao/mine/minemenu.dart';
4 |
5 | class MoreService extends StatelessWidget {
6 | List titles1 = List();
7 | List titles2 = List();
8 |
9 | MoreService() {
10 | titles1.add("用户反馈");
11 | titles1.add("钱包");
12 | titles1.add("广告推广");
13 | titles1.add("免流量");
14 |
15 | titles2.add("评论");
16 | titles2.add("点赞");
17 | titles2.add("夜间模式");
18 | titles2.add("关注");
19 | }
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | return Container(
24 | color: Colors.white,
25 | padding: const EdgeInsets.all(12),
26 | margin: const EdgeInsets.only(top: 14),
27 | child: Column(
28 | children: [
29 | Stack(
30 | children: [
31 | Align(
32 | alignment: AlignmentDirectional.topStart,
33 | child: Text("更多服务", style: TextStyle(fontSize: 18)),
34 | )
35 | ],
36 | ),
37 | MenuRow(titles1, Colors.black87),
38 | MenuRow(titles2, Colors.black87)
39 | ],
40 | ),
41 | );
42 | }
43 |
44 | }
--------------------------------------------------------------------------------
/lib/splash/splash.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:toutiao/main/main.dart';
5 |
6 | void main() {
7 | runApp(MyApp());
8 | }
9 |
10 | class MyApp extends StatelessWidget {
11 | // This widget is the root of your application.
12 | @override
13 | Widget build(BuildContext context) {
14 | return MaterialApp(
15 | title: 'Flutter Demo',
16 | theme: ThemeData(
17 | primarySwatch: Colors.blue,
18 | ),
19 | home: Scaffold(
20 | body: MyHomePage(),
21 | ),
22 | );
23 | }
24 | }
25 |
26 | class MyHomePage extends StatelessWidget {
27 |
28 | //倒计时2秒跳进主页面
29 | void countDown(BuildContext context) {
30 | new Timer(new Duration(seconds: 1), () {
31 | // 只在倒计时结束时回调
32 | Navigator.of(context).push(new MaterialPageRoute(builder: (context) {
33 | return new MainPage();
34 | }));
35 | });
36 | }
37 |
38 | @override
39 | Widget build(BuildContext context) {
40 | countDown(context);
41 |
42 | return Column(
43 | mainAxisAlignment: MainAxisAlignment.center,
44 | crossAxisAlignment: CrossAxisAlignment.center,
45 | textDirection: TextDirection.ltr,
46 | verticalDirection: VerticalDirection.down,
47 | children: [
48 | Container(
49 | alignment: Alignment.topCenter,
50 | margin: const EdgeInsets.only(top: 200),
51 | child: Text("信息创造价值", style: TextStyle(fontSize: 35, color: Colors.red)),
52 | ),
53 | Container(
54 | margin: const EdgeInsets.only(top: 380),
55 | alignment: Alignment.bottomCenter,
56 | child: Image.asset("images/splash_logo.png", width: 100),
57 | )
58 | ],
59 | );
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/lib/webview/WebView.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
5 |
6 | class MyWebView extends StatefulWidget {
7 |
8 | _MyWebView createState() => _MyWebView();
9 |
10 | }
11 |
12 | class _MyWebView extends State {
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return MaterialApp(
17 | home: Scaffold(
18 | body: WebviewScaffold(url: "https://3w.huanqiu.com/a/a4d1ef/40LVKxv2Tow?agt=20&tt_group_id=6885158772294353415",
19 | // 允许网页缩放
20 | withZoom: true,
21 | // 允许LocalStorage
22 | withLocalStorage: true,
23 | withJavascript: true),
24 | )
25 | );
26 | }
27 |
28 | }
--------------------------------------------------------------------------------
/lib/widget/MyEasyRefresh.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_easyrefresh/easy_refresh.dart';
5 |
6 | //刷新加载控件封装
7 | class MyEasyRefresh extends StatelessWidget {
8 | EasyRefreshController easyRefreshController;
9 | Widget listView;
10 |
11 | MyEasyRefresh(this.listView) {
12 | easyRefreshController = EasyRefreshController();
13 | }
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return EasyRefresh(
18 | controller: easyRefreshController,
19 | enableControlFinishRefresh: false,
20 | enableControlFinishLoad: false,
21 | header: ClassicalHeader(
22 | textColor: Colors.black87,
23 | refreshText: "往下拉,往下拉",
24 | refreshedText: "刷新完成",
25 | refreshingText: "正在刷新",
26 | refreshReadyText: "快放手"
27 | ),
28 | footer: ClassicalFooter(
29 | textColor: Colors.black87,
30 | loadText: "往上拉,往上拉",
31 | loadedText: "加载完成",
32 | loadingText: "正在加载",
33 | loadReadyText: "快放手"
34 | ),
35 | onRefresh: () async {
36 | print("刷新完成");
37 | },
38 | onLoad: () async {
39 | print("加载完成");
40 | },
41 | child: listView);
42 | }
43 |
44 | }
--------------------------------------------------------------------------------
/lib/xigua/xigua.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/material.dart';
3 | import 'package:toutiao/xigua/xiguaPageContent.dart';
4 |
5 | class XiguaPage extends StatelessWidget {
6 | @override
7 | Widget build(BuildContext context) {
8 | return XiguaPageContent();
9 | }
10 |
11 | }
--------------------------------------------------------------------------------
/lib/xigua/xiguaPageContent.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:toutiao/home/homesearchview.dart';
3 | import 'package:toutiao/xigua/xiguapageSubPage.dart';
4 |
5 | // 页面内容
6 | class XiguaPageContent extends StatefulWidget {
7 | XiguaPageContent({Key key, this.title}) : super(key: key);
8 |
9 | final String title;
10 |
11 | @override
12 | XiguaPageContentState createState() => XiguaPageContentState();
13 | }
14 |
15 | class XiguaPageContentState extends State
16 | with SingleTickerProviderStateMixin {
17 | List tabs = ["推荐", "热门", "影视", "直播", "游戏", "音乐", "综艺", "美食"];
18 | List pages = new List();
19 | List tabViews = new List();
20 | TabController tabController;
21 |
22 | @override
23 | void initState() {
24 | super.initState();
25 | tabController = new TabController(length: tabs.length, vsync: this);
26 | tabController.addListener(() {
27 | var index = tabController.index;
28 | });
29 |
30 | for(int i=0;i list = new List();
16 |
17 | HomeContent() {
18 | VideoItemBean videoItemBean1 = new VideoItemBean(
19 | "或许,这才是姜子牙真正想要表达的意思!",
20 | "images/video_cover1.jpg",
21 | "电影狂人A",
22 | "images/video_head1.jpg",
23 | "245");
24 |
25 | VideoItemBean videoItemBean3 = new VideoItemBean(
26 | "六大被北影录用教材的镜头,徐峥在医院哭戏,游本昌一个眼神封神",
27 | "images/video_cover2.jpg",
28 | "盘点老梁",
29 | "images/video_head2.jpg",
30 | "9432");
31 |
32 | VideoItemBean videoItemBean4 = new VideoItemBean(
33 | "敌我差距之鲁班:敌方鲁班五杀随便拿,我方鲁班不像话?",
34 | "images/video_cover3.jpg",
35 | "电竞小芯",
36 | "images/video_head3.jpg",
37 | "834");
38 |
39 | list.add(videoItemBean1);
40 | list.add(videoItemBean3);
41 | list.add(videoItemBean4);
42 |
43 | list.add(videoItemBean1);
44 | list.add(videoItemBean3);
45 | list.add(videoItemBean4);
46 |
47 | list.add(videoItemBean1);
48 | list.add(videoItemBean3);
49 | list.add(videoItemBean4);
50 | }
51 |
52 | @override
53 | Widget build(BuildContext context) {
54 | return MyEasyRefresh(
55 | ListView.builder(
56 | itemCount: list.length,
57 | itemBuilder: (context, index) {
58 | return Container(
59 | child: Column(
60 | mainAxisAlignment: MainAxisAlignment.start,
61 | children: [
62 | Stack(
63 | children: [
64 | Container(
65 | height: 200,
66 | child: Image.asset(list[index].cover),
67 | ),
68 | Container(
69 | width: 270,
70 | padding: const EdgeInsets.all(10),
71 | child: Text(list[index].title,
72 | style: TextStyle(fontSize: 16, color: Colors.white)),
73 | ),
74 | Container(
75 | height: 200,
76 | alignment: Alignment.center,
77 | child: Image.asset("images/ic_play.png",
78 | width: 50, height: 50),
79 | )
80 | ],
81 | ),
82 | UserCard(list[index])
83 | ],
84 | ),
85 | );
86 | })
87 | );
88 | }
89 | }
90 |
91 | //用户card=
92 | class UserCard extends StatelessWidget {
93 | VideoItemBean videoItemBean;
94 |
95 | UserCard(this.videoItemBean);
96 |
97 | @override
98 | Widget build(BuildContext context) {
99 | return Row(
100 | children: [
101 | Container(
102 | margin: const EdgeInsets.fromLTRB(12, 10, 12, 10),
103 | width: 30,
104 | height: 30,
105 | child: ClipRRect(
106 | borderRadius: BorderRadius.circular(30),
107 | child: Image.asset(videoItemBean.avator),
108 | )),
109 | Text(videoItemBean.authorName),
110 | Text(" 关注", style: TextStyle(color: Colors.red, fontSize: 13)),
111 | Expanded( //权重充满空白区域
112 | flex: 1,
113 | child: Text(""),
114 | ),
115 | Image.asset("images/ic_comment.png", width: 15, height: 15),
116 | Text(" " + videoItemBean.commentCount, style: TextStyle(fontSize: 13)),
117 | Container(
118 | margin: const EdgeInsets.only(left: 25, right: 20),
119 | width: 18,
120 | height: 18,
121 | child: Image.asset("images/ic_more.png",
122 | width: 30, height: 30, alignment: Alignment.topCenter),
123 | )
124 | ],
125 | );
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.flutter-io.cn"
9 | source: hosted
10 | version: "2.5.0-nullsafety.1"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.flutter-io.cn"
16 | source: hosted
17 | version: "2.1.0-nullsafety.1"
18 | cached_network_image:
19 | dependency: "direct main"
20 | description:
21 | name: cached_network_image
22 | url: "https://pub.flutter-io.cn"
23 | source: hosted
24 | version: "2.3.3"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.flutter-io.cn"
30 | source: hosted
31 | version: "1.1.0-nullsafety.3"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.flutter-io.cn"
37 | source: hosted
38 | version: "1.2.0-nullsafety.1"
39 | clock:
40 | dependency: transitive
41 | description:
42 | name: clock
43 | url: "https://pub.flutter-io.cn"
44 | source: hosted
45 | version: "1.1.0-nullsafety.1"
46 | collection:
47 | dependency: transitive
48 | description:
49 | name: collection
50 | url: "https://pub.flutter-io.cn"
51 | source: hosted
52 | version: "1.15.0-nullsafety.3"
53 | convert:
54 | dependency: transitive
55 | description:
56 | name: convert
57 | url: "https://pub.flutter-io.cn"
58 | source: hosted
59 | version: "2.1.1"
60 | crypto:
61 | dependency: transitive
62 | description:
63 | name: crypto
64 | url: "https://pub.flutter-io.cn"
65 | source: hosted
66 | version: "2.1.5"
67 | cupertino_icons:
68 | dependency: "direct main"
69 | description:
70 | name: cupertino_icons
71 | url: "https://pub.flutter-io.cn"
72 | source: hosted
73 | version: "1.0.0"
74 | dio:
75 | dependency: "direct main"
76 | description:
77 | name: dio
78 | url: "https://pub.flutter-io.cn"
79 | source: hosted
80 | version: "3.0.10"
81 | fake_async:
82 | dependency: transitive
83 | description:
84 | name: fake_async
85 | url: "https://pub.flutter-io.cn"
86 | source: hosted
87 | version: "1.2.0-nullsafety.1"
88 | ffi:
89 | dependency: transitive
90 | description:
91 | name: ffi
92 | url: "https://pub.flutter-io.cn"
93 | source: hosted
94 | version: "0.1.3"
95 | file:
96 | dependency: transitive
97 | description:
98 | name: file
99 | url: "https://pub.flutter-io.cn"
100 | source: hosted
101 | version: "5.2.1"
102 | flutter:
103 | dependency: "direct main"
104 | description: flutter
105 | source: sdk
106 | version: "0.0.0"
107 | flutter_blurhash:
108 | dependency: transitive
109 | description:
110 | name: flutter_blurhash
111 | url: "https://pub.flutter-io.cn"
112 | source: hosted
113 | version: "0.5.0"
114 | flutter_cache_manager:
115 | dependency: transitive
116 | description:
117 | name: flutter_cache_manager
118 | url: "https://pub.flutter-io.cn"
119 | source: hosted
120 | version: "2.0.0"
121 | flutter_easyrefresh:
122 | dependency: "direct main"
123 | description:
124 | name: flutter_easyrefresh
125 | url: "https://pub.flutter-io.cn"
126 | source: hosted
127 | version: "2.1.6"
128 | flutter_page_indicator:
129 | dependency: transitive
130 | description:
131 | name: flutter_page_indicator
132 | url: "https://pub.flutter-io.cn"
133 | source: hosted
134 | version: "0.0.3"
135 | flutter_swiper:
136 | dependency: "direct main"
137 | description:
138 | name: flutter_swiper
139 | url: "https://pub.flutter-io.cn"
140 | source: hosted
141 | version: "1.1.6"
142 | flutter_test:
143 | dependency: "direct dev"
144 | description: flutter
145 | source: sdk
146 | version: "0.0.0"
147 | flutter_web_plugins:
148 | dependency: transitive
149 | description: flutter
150 | source: sdk
151 | version: "0.0.0"
152 | flutter_webview_plugin:
153 | dependency: "direct main"
154 | description:
155 | name: flutter_webview_plugin
156 | url: "https://pub.flutter-io.cn"
157 | source: hosted
158 | version: "0.2.1+2"
159 | http:
160 | dependency: transitive
161 | description:
162 | name: http
163 | url: "https://pub.flutter-io.cn"
164 | source: hosted
165 | version: "0.12.2"
166 | http_parser:
167 | dependency: transitive
168 | description:
169 | name: http_parser
170 | url: "https://pub.flutter-io.cn"
171 | source: hosted
172 | version: "3.1.4"
173 | intl:
174 | dependency: transitive
175 | description:
176 | name: intl
177 | url: "https://pub.flutter-io.cn"
178 | source: hosted
179 | version: "0.16.1"
180 | js:
181 | dependency: transitive
182 | description:
183 | name: js
184 | url: "https://pub.flutter-io.cn"
185 | source: hosted
186 | version: "0.6.3-nullsafety.1"
187 | matcher:
188 | dependency: transitive
189 | description:
190 | name: matcher
191 | url: "https://pub.flutter-io.cn"
192 | source: hosted
193 | version: "0.12.10-nullsafety.1"
194 | meta:
195 | dependency: transitive
196 | description:
197 | name: meta
198 | url: "https://pub.flutter-io.cn"
199 | source: hosted
200 | version: "1.3.0-nullsafety.4"
201 | octo_image:
202 | dependency: transitive
203 | description:
204 | name: octo_image
205 | url: "https://pub.flutter-io.cn"
206 | source: hosted
207 | version: "0.3.0"
208 | path:
209 | dependency: transitive
210 | description:
211 | name: path
212 | url: "https://pub.flutter-io.cn"
213 | source: hosted
214 | version: "1.8.0-nullsafety.1"
215 | path_provider:
216 | dependency: transitive
217 | description:
218 | name: path_provider
219 | url: "https://pub.flutter-io.cn"
220 | source: hosted
221 | version: "1.6.21"
222 | path_provider_linux:
223 | dependency: transitive
224 | description:
225 | name: path_provider_linux
226 | url: "https://pub.flutter-io.cn"
227 | source: hosted
228 | version: "0.0.1+2"
229 | path_provider_macos:
230 | dependency: transitive
231 | description:
232 | name: path_provider_macos
233 | url: "https://pub.flutter-io.cn"
234 | source: hosted
235 | version: "0.0.4+4"
236 | path_provider_platform_interface:
237 | dependency: transitive
238 | description:
239 | name: path_provider_platform_interface
240 | url: "https://pub.flutter-io.cn"
241 | source: hosted
242 | version: "1.0.3"
243 | path_provider_windows:
244 | dependency: transitive
245 | description:
246 | name: path_provider_windows
247 | url: "https://pub.flutter-io.cn"
248 | source: hosted
249 | version: "0.0.4+1"
250 | pedantic:
251 | dependency: transitive
252 | description:
253 | name: pedantic
254 | url: "https://pub.flutter-io.cn"
255 | source: hosted
256 | version: "1.9.2"
257 | platform:
258 | dependency: transitive
259 | description:
260 | name: platform
261 | url: "https://pub.flutter-io.cn"
262 | source: hosted
263 | version: "2.2.1"
264 | plugin_platform_interface:
265 | dependency: transitive
266 | description:
267 | name: plugin_platform_interface
268 | url: "https://pub.flutter-io.cn"
269 | source: hosted
270 | version: "1.0.3"
271 | process:
272 | dependency: transitive
273 | description:
274 | name: process
275 | url: "https://pub.flutter-io.cn"
276 | source: hosted
277 | version: "3.0.13"
278 | rxdart:
279 | dependency: transitive
280 | description:
281 | name: rxdart
282 | url: "https://pub.flutter-io.cn"
283 | source: hosted
284 | version: "0.24.1"
285 | sky_engine:
286 | dependency: transitive
287 | description: flutter
288 | source: sdk
289 | version: "0.0.99"
290 | source_span:
291 | dependency: transitive
292 | description:
293 | name: source_span
294 | url: "https://pub.flutter-io.cn"
295 | source: hosted
296 | version: "1.8.0-nullsafety.2"
297 | sqflite:
298 | dependency: transitive
299 | description:
300 | name: sqflite
301 | url: "https://pub.flutter-io.cn"
302 | source: hosted
303 | version: "1.3.1+2"
304 | sqflite_common:
305 | dependency: transitive
306 | description:
307 | name: sqflite_common
308 | url: "https://pub.flutter-io.cn"
309 | source: hosted
310 | version: "1.0.2+1"
311 | stack_trace:
312 | dependency: transitive
313 | description:
314 | name: stack_trace
315 | url: "https://pub.flutter-io.cn"
316 | source: hosted
317 | version: "1.10.0-nullsafety.2"
318 | stream_channel:
319 | dependency: transitive
320 | description:
321 | name: stream_channel
322 | url: "https://pub.flutter-io.cn"
323 | source: hosted
324 | version: "2.1.0-nullsafety.1"
325 | string_scanner:
326 | dependency: transitive
327 | description:
328 | name: string_scanner
329 | url: "https://pub.flutter-io.cn"
330 | source: hosted
331 | version: "1.1.0-nullsafety.1"
332 | synchronized:
333 | dependency: transitive
334 | description:
335 | name: synchronized
336 | url: "https://pub.flutter-io.cn"
337 | source: hosted
338 | version: "2.2.0+2"
339 | term_glyph:
340 | dependency: transitive
341 | description:
342 | name: term_glyph
343 | url: "https://pub.flutter-io.cn"
344 | source: hosted
345 | version: "1.2.0-nullsafety.1"
346 | test_api:
347 | dependency: transitive
348 | description:
349 | name: test_api
350 | url: "https://pub.flutter-io.cn"
351 | source: hosted
352 | version: "0.2.19-nullsafety.2"
353 | toast:
354 | dependency: "direct main"
355 | description:
356 | name: toast
357 | url: "https://pub.flutter-io.cn"
358 | source: hosted
359 | version: "0.1.5"
360 | transformer_page_view:
361 | dependency: transitive
362 | description:
363 | name: transformer_page_view
364 | url: "https://pub.flutter-io.cn"
365 | source: hosted
366 | version: "0.1.6"
367 | typed_data:
368 | dependency: transitive
369 | description:
370 | name: typed_data
371 | url: "https://pub.flutter-io.cn"
372 | source: hosted
373 | version: "1.3.0-nullsafety.3"
374 | uuid:
375 | dependency: transitive
376 | description:
377 | name: uuid
378 | url: "https://pub.flutter-io.cn"
379 | source: hosted
380 | version: "2.2.2"
381 | vector_math:
382 | dependency: transitive
383 | description:
384 | name: vector_math
385 | url: "https://pub.flutter-io.cn"
386 | source: hosted
387 | version: "2.1.0-nullsafety.3"
388 | video_player:
389 | dependency: "direct main"
390 | description:
391 | name: video_player
392 | url: "https://pub.flutter-io.cn"
393 | source: hosted
394 | version: "0.11.1+2"
395 | video_player_platform_interface:
396 | dependency: transitive
397 | description:
398 | name: video_player_platform_interface
399 | url: "https://pub.flutter-io.cn"
400 | source: hosted
401 | version: "2.2.0"
402 | video_player_web:
403 | dependency: transitive
404 | description:
405 | name: video_player_web
406 | url: "https://pub.flutter-io.cn"
407 | source: hosted
408 | version: "0.1.4"
409 | win32:
410 | dependency: transitive
411 | description:
412 | name: win32
413 | url: "https://pub.flutter-io.cn"
414 | source: hosted
415 | version: "1.7.3"
416 | xdg_directories:
417 | dependency: transitive
418 | description:
419 | name: xdg_directories
420 | url: "https://pub.flutter-io.cn"
421 | source: hosted
422 | version: "0.1.2"
423 | sdks:
424 | dart: ">=2.10.0-110 <=2.11.0-213.1.beta"
425 | flutter: ">=1.20.0 <2.0.0"
426 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: toutiao
2 | description: A new Flutter application.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.7.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 | toast: ^0.1.3
28 | flutter_easyrefresh: ^2.1.0
29 | flutter_webview_plugin: ^0.2.1+2
30 | cached_network_image: ^2.3.3
31 | flutter_swiper: ^1.1.6
32 | video_player: ^0.11.1+2
33 | dio: ^3.0.10
34 |
35 |
36 | # The following adds the Cupertino Icons font to your application.
37 | # Use with the CupertinoIcons class for iOS style icons.
38 | cupertino_icons: ^1.0.0
39 |
40 | dev_dependencies:
41 | flutter_test:
42 | sdk: flutter
43 |
44 | # For information on the generic Dart part of this file, see the
45 | # following page: https://dart.dev/tools/pub/pubspec
46 |
47 | # The following section is specific to Flutter.
48 | flutter:
49 |
50 | # The following line ensures that the Material Icons font is
51 | # included with your application, so that you can use the icons in
52 | # the material Icons class.
53 | uses-material-design: true
54 |
55 | # To add assets to your application, add an assets section, like this:
56 | assets:
57 | - images/splash_logo.png
58 | - images/ic_play.png
59 | - images/ic_more.png
60 | - images/launcher.png
61 | - images/ic_close.png
62 | - images/ic_scan.png
63 | - images/ic_setting.png
64 | - images/ic_comment.png
65 | - images/circle_bg.png
66 | - images/ic_app_douyin.png
67 | - images/ic_app_bilibili.png
68 | - images/ic_app_maoyan.png
69 | - images/ic_app_nestes_music.png
70 | - images/ic_search.png
71 | - images/news1.jpeg
72 | - images/news2.jpeg
73 | - images/news3.jpeg
74 | - images/news4.jpeg
75 | - images/video_cover1.jpg
76 | - images/video_cover2.jpg
77 | - images/video_cover3.jpg
78 | - images/video_head1.jpg
79 | - images/video_head2.jpg
80 | - images/video_head3.jpg
81 |
82 | # An image asset can refer to one or more resolution-specific "variants", see
83 | # https://flutter.dev/assets-and-images/#resolution-aware.
84 |
85 | # For details regarding adding assets from package dependencies, see
86 | # https://flutter.dev/assets-and-images/#from-packages
87 |
88 | # To add custom fonts to your application, add a fonts section here,
89 | # in this "flutter" section. Each entry in this list should have a
90 | # "family" key with the font family name, and a "fonts" key with a
91 | # list giving the asset and other descriptors for the font. For
92 | # example:
93 | # fonts:
94 | # - family: Schyler
95 | # fonts:
96 | # - asset: fonts/Schyler-Regular.ttf
97 | # - asset: fonts/Schyler-Italic.ttf
98 | # style: italic
99 | # - family: Trajan Pro
100 | # fonts:
101 | # - asset: fonts/TrajanPro.ttf
102 | # - asset: fonts/TrajanPro_Bold.ttf
103 | # weight: 700
104 | #
105 | # For details regarding fonts from package dependencies,
106 | # see https://flutter.dev/custom-fonts/#from-packages
107 |
--------------------------------------------------------------------------------
/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:toutiao/splash/splash.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 |
--------------------------------------------------------------------------------