├── .github
└── workflows
│ ├── flutter.yml
│ └── tag.yml
├── .metadata
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .project
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── android.iml
├── app
│ ├── .classpath
│ ├── .project
│ ├── .settings
│ │ └── org.eclipse.buildship.core.prefs
│ ├── app.iml
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── jiangkang
│ │ │ │ └── flutter_system
│ │ │ │ ├── DemoNativeView.kt
│ │ │ │ ├── LottieSplashScreen.kt
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── ic_launcher.png
│ │ │ ├── launch_background.xml
│ │ │ └── splash_screen.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── raw
│ │ │ ├── lottie1.json
│ │ │ ├── lottie2.json
│ │ │ ├── lottie3.json
│ │ │ ├── lottie4.json
│ │ │ ├── lottie5.json
│ │ │ ├── lottie6.json
│ │ │ ├── lottie7.json
│ │ │ └── lottie8.json
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── flutter_system.iml
├── flutter_system_android.iml
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── emojis
│ ├── angry_face.png
│ ├── circle_face.png
│ └── smile_face.png
├── fonts
│ └── FangZhengFangSongJianTi.ttf
├── json
│ ├── articles.json
│ ├── basic.json
│ ├── components.json
│ ├── demos.json
│ ├── month_traditional.json
│ ├── pages.json
│ └── youqi.json
└── video
│ └── butterfly.mp4
├── best_toast
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── lib
│ └── best_toast.dart
├── pubspec.lock
└── pubspec.yaml
├── build.yaml
├── captures
├── demos
│ ├── gridview_count_3.png
│ ├── gridview_count_aspect_ratio.png
│ ├── gridview_count_axis.png
│ └── gridview_count_basic.png
├── home_demo.png
├── home_demo_dark.png
├── packages
│ └── IconFont.png
├── page
│ ├── calendar.png
│ ├── custompaint.png
│ └── guide.gif
└── products
│ ├── xiyou.png
│ └── youqi.png
├── dartdoc_options.yaml
├── doc
├── component.md
├── demo.md
├── index.md
└── page.md
├── flutter_system.iml
├── images
├── banner.jpg
├── github.png
├── home_bar_scan.png
├── landscape0.jpeg
├── landscape1.jpeg
├── landscape2.jpeg
└── loading.gif
├── ios
├── Flutter
│ ├── .last_build_id
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── flutter_export_environment.sh
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── 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
├── kicons
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── fonts
│ ├── aliyun.ttf
│ └── emoji.ttf
├── lib
│ ├── kicons.dart
│ └── src
│ │ ├── aliyun.dart
│ │ └── emoji.dart
├── pubspec.lock
├── pubspec.yaml
└── test
│ └── kicons_test.dart
├── lib
├── api
│ ├── api_demo.dart
│ └── api_placeholder_demo.dart
├── common
│ ├── global_model.dart
│ ├── model_binding.dart
│ └── res_constants.dart
├── component
│ ├── animations
│ │ └── slide_down_to_close_page.dart
│ ├── calendar.dart
│ ├── case0.dart
│ ├── component_appbar.dart
│ ├── component_pickers.dart
│ ├── component_share.dart
│ ├── componet_topbanner.dart
│ ├── dialogs.dart
│ ├── dynamic_ui_page.dart
│ ├── iconfont.dart
│ ├── listview_item.dart
│ ├── my_tab_indicator.dart
│ ├── password.dart
│ └── toast_demo.dart
├── constants
│ └── const_key_value.dart
├── date
│ ├── lunar.dart
│ ├── lunar_solar_converter.dart
│ └── solar.dart
├── demos
│ ├── animation
│ │ ├── anim_animated_container.dart
│ │ ├── demo_native_view.dart
│ │ └── demo_transform.dart
│ ├── demo_animation.dart
│ ├── demo_assets.dart
│ ├── demo_bottom_sheet.dart
│ ├── demo_button.dart
│ ├── demo_camera.dart
│ ├── demo_chip.dart
│ ├── demo_container.dart
│ ├── demo_custom_paint.dart
│ ├── demo_custom_scrollview.dart
│ ├── demo_dismissible.dart
│ ├── demo_drawer.dart
│ ├── demo_fitted_box.dart
│ ├── demo_forms.dart
│ ├── demo_gridview.dart
│ ├── demo_http.dart
│ ├── demo_image.dart
│ ├── demo_key.dart
│ ├── demo_list_wheel_scrollview.dart
│ ├── demo_listview.dart
│ ├── demo_navigator.dart
│ ├── demo_pageview.dart
│ ├── demo_platform.dart
│ ├── demo_progress_indicator.dart
│ ├── demo_read_write_files.dart
│ ├── demo_real_list.dart
│ ├── demo_rendering.dart
│ ├── demo_safearea.dart
│ ├── demo_scrollable.dart
│ ├── demo_slider.dart
│ ├── demo_sqlite.dart
│ ├── demo_tabs.dart
│ ├── demo_text.dart
│ ├── demo_textfield.dart
│ ├── demo_time.dart
│ ├── demo_video.dart
│ ├── demo_websocket.dart
│ ├── demos.dart
│ ├── editable
│ │ └── rich_editable_text.dart
│ └── image
│ │ └── demo_gif_image.dart
├── entries.dart
├── frouter
│ ├── router.dart
│ ├── router_builder.dart
│ └── router_generator.dart
├── home.dart
├── main.dart
├── model
│ └── model_entry.dart
├── page
│ ├── guide.dart
│ ├── page_calendar.dart
│ ├── page_entry.dart
│ ├── page_markdown.dart
│ ├── page_password.dart
│ ├── page_settings.dart
│ ├── page_show0.dart
│ └── web_page.dart
├── page_routers.dart
├── platform
│ └── toast.dart
├── products
│ ├── clocks
│ │ ├── clock_list_page.dart
│ │ └── particles
│ │ │ └── clock_face_painter.dart
│ ├── todo
│ │ ├── todo_api.dart
│ │ ├── todo_list.dart
│ │ └── todo_model.dart
│ ├── xiyou
│ │ ├── xiyou_home.dart
│ │ └── xiyou_my.dart
│ └── youqi
│ │ ├── api_youqi.dart
│ │ ├── widgets
│ │ ├── date_box_painter.dart
│ │ ├── youqi_content_page.dart
│ │ └── youqi_top_header.dart
│ │ ├── youqi_home_page.dart
│ │ └── youqi_model.dart
├── senior
│ ├── edit_text_page.dart
│ └── rich_text_page.dart
├── storage
│ └── storage_assets.dart
├── theme
│ └── custom_themes.dart
├── try
│ ├── README.md
│ └── animation
│ │ ├── anim_basic.dart
│ │ ├── anim_builder.dart
│ │ ├── anim_container.dart
│ │ ├── anim_hero_std.dart
│ │ ├── anim_physics.dart
│ │ ├── anim_two.dart
│ │ ├── anim_widget.dart
│ │ └── demo_fade_in.dart
├── utils
│ ├── app_utils.dart
│ ├── asset_utils.dart
│ ├── color_utils.dart
│ ├── db_utils.dart
│ ├── nav_utils.dart
│ ├── pickers_utils.dart
│ ├── share_utils.dart
│ ├── sp_utils.dart
│ ├── time_utils.dart
│ └── ui_utils.dart
└── widgets
│ ├── gif_image.dart
│ ├── keyboard_detector.dart
│ └── route_builder.dart
├── pubspec.lock
├── pubspec.yaml
├── res
└── values
│ ├── strings_en.arb
│ └── strings_zh.arb
├── test.sh
├── travis_script.sh
├── web
└── index.html
└── webapp
├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── webapp
│ │ │ │ └── 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
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── 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
└── main.dart
├── pubspec.lock
├── pubspec.yaml
└── web
└── index.html
/.github/workflows/flutter.yml:
--------------------------------------------------------------------------------
1 | name: build
2 |
3 | on: [push]
4 |
5 | jobs:
6 | build:
7 | runs-on: ubuntu-latest
8 | steps:
9 | - uses: actions/checkout@v2
10 | - name: Setup Java JDK
11 | uses: actions/setup-java@v1.3.0
12 | with:
13 | java-version: '12.x'
14 | - uses: subosito/flutter-action@v1
15 | with:
16 | channel: 'stable' # or: 'dev' or 'beta'
17 | - run: flutter doctor
18 | - run: flutter pub get
19 | - run: flutter build apk --debug
20 |
21 |
--------------------------------------------------------------------------------
/.github/workflows/tag.yml:
--------------------------------------------------------------------------------
1 | name: release
2 |
3 | on:
4 | push:
5 | tags:
6 | - v*
7 |
8 | jobs:
9 | build:
10 | runs-on: ubuntu-latest
11 | steps:
12 | - uses: actions/checkout@v2
13 | - name: Setup Java JDK
14 | uses: actions/setup-java@v1.3.0
15 | with:
16 | java-version: '12.x'
17 | - uses: subosito/flutter-action@v1
18 | with:
19 | channel: 'stable' # or: 'dev' or 'beta'
20 | - run: flutter doctor
21 | - run: flutter pub get
22 | - run: flutter build apk --debug
23 | - name: Release apk
24 | uses: ncipollo/release-action@v1.5.0
25 | with:
26 | artifacts: "build/app/outputs/apk/debug/*.apk"
27 | token: ${{ secrets.FLUTTER_CI }}
--------------------------------------------------------------------------------
/.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: 8661d8aecd626f7f57ccbcb735553edc05a2e713
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 姜康
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 | # flutter-system
2 |
3 | Flutter相关Demo
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | #所有规则: https://dart-lang.github.io/linter/lints/index.html
2 |
3 | include: package:flutter_lints/flutter.yaml
4 |
5 | analyzer:
6 | exclude: [build/**]
7 | language:
8 | strict-raw-types: true
9 |
10 | linter:
11 | rules:
12 | cancel_subscriptions: true
13 | constant_identifier_names: false
14 | prefer_const_constructors: false
15 | non_constant_identifier_names: false
16 | library_private_types_in_public_api: false
17 | depend_on_referenced_packages: false
18 | implementation_imports: false
--------------------------------------------------------------------------------
/android/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | android
4 | Project android created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.buildship.core.gradleprojectbuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.buildship.core.gradleprojectnature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/android/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/android/android.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/android/app/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | app
4 | Project app created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.buildship.core.gradleprojectbuilder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.buildship.core.gradleprojectnature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/android/app/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=..
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/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 | ndkVersion "21.3.6528147"
30 | compileSdkVersion 32
31 | buildToolsVersion '30.0.3'
32 |
33 | lintOptions {
34 | disable 'InvalidPackage'
35 | checkReleaseBuilds false
36 | }
37 |
38 | sourceSets {
39 | main.java.srcDirs += 'src/main/kotlin'
40 | }
41 |
42 | defaultConfig {
43 | applicationId "com.jiangkang.flutter_system"
44 | minSdkVersion 21
45 | targetSdkVersion 30
46 | versionCode flutterVersionCode.toInteger()
47 | versionName flutterVersionName
48 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
49 | }
50 |
51 | buildTypes {
52 | release {
53 | // TODO: Add your own signing config for the release build.
54 | // Signing with the debug keys for now, so `flutter run --release` works.
55 | signingConfig signingConfigs.debug
56 | }
57 | }
58 | }
59 |
60 | flutter {
61 | source '../..'
62 | }
63 |
64 | dependencies {
65 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
66 | implementation "com.airbnb.android:lottie:$lottieVersion"
67 | testImplementation 'junit:junit:4.13'
68 | androidTestImplementation 'androidx.test:runner:1.2.0'
69 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
70 | }
71 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
18 |
19 |
20 |
24 |
25 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/jiangkang/flutter_system/DemoNativeView.kt:
--------------------------------------------------------------------------------
1 | package com.jiangkang.flutter_system
2 |
3 | import android.content.Context
4 | import android.graphics.Color
5 | import android.view.View
6 | import android.widget.TextView
7 | import io.flutter.plugin.common.StandardMessageCodec
8 | import io.flutter.plugin.platform.PlatformView
9 | import io.flutter.plugin.platform.PlatformViewFactory
10 |
11 | internal class DemoNativeView(context: Context, id: Int, creationParams: Map?) : PlatformView {
12 |
13 | private val textView: TextView = TextView(context)
14 |
15 | override fun getView(): View {
16 | return textView
17 | }
18 |
19 | override fun dispose() {}
20 |
21 | init {
22 | textView.textSize = 32f
23 | textView.setBackgroundColor(Color.rgb(255, 255, 255))
24 | textView.text = "Rendered on a native Android view (id: $id)"
25 | }
26 | }
27 |
28 | internal class DemoNativeViewFactory : PlatformViewFactory(StandardMessageCodec.INSTANCE) {
29 | override fun create(context: Context, id: Int, args: Any?): PlatformView {
30 | val creationParams = args as Map?
31 | return DemoNativeView(context, id, creationParams)
32 | }
33 | }
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/jiangkang/flutter_system/LottieSplashScreen.kt:
--------------------------------------------------------------------------------
1 | package com.jiangkang.flutter_system
2 |
3 | import android.app.Activity
4 | import android.content.Context
5 | import android.graphics.Color
6 | import android.graphics.drawable.ColorDrawable
7 | import android.os.Bundle
8 | import android.os.Handler
9 | import android.os.Looper
10 | import android.view.Gravity
11 | import android.view.View
12 | import android.view.ViewGroup
13 | import android.widget.FrameLayout
14 | import com.airbnb.lottie.LottieAnimationView
15 | import com.airbnb.lottie.LottieDrawable
16 | import io.flutter.embedding.android.SplashScreen
17 | import kotlin.random.Random
18 |
19 | /**
20 | * A Splash Screen based lottie animation
21 | * it will pause 1s,then enter the main page
22 | */
23 | class LottieSplashScreen : SplashScreen{
24 |
25 | private val lottieRawIds = arrayOf(
26 | R.raw.lottie1,
27 | R.raw.lottie2,
28 | R.raw.lottie3,
29 | R.raw.lottie4,
30 | R.raw.lottie5,
31 | R.raw.lottie6,
32 | R.raw.lottie7,
33 | R.raw.lottie8
34 | )
35 |
36 | override fun createSplashView(context: Context, savedInstanceState: Bundle?): View? {
37 | val lottieView = LottieAnimationView(context)
38 | lottieView.apply {
39 | repeatMode = LottieDrawable.RESTART
40 | repeatCount = LottieDrawable.INFINITE
41 | setAnimation(lottieRawIds[Random(System.currentTimeMillis()).nextInt(0,lottieRawIds.size)])
42 | }.playAnimation()
43 | (context as Activity).window.setBackgroundDrawable(ColorDrawable(Color.WHITE))
44 |
45 | val layoutParamsLottie = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT)
46 | .apply {
47 | gravity = Gravity.CENTER
48 | }
49 | val rootView = FrameLayout(context)
50 | rootView.apply {
51 | layoutParams = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT)
52 | setBackgroundColor(Color.WHITE)
53 | addView(lottieView,layoutParamsLottie)
54 | }
55 | return rootView
56 | }
57 |
58 | override fun transitionToFlutter(onTransitionComplete: Runnable) {
59 | Handler(Looper.getMainLooper()).postDelayed(onTransitionComplete,1000)
60 | }
61 | }
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/jiangkang/flutter_system/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.jiangkang.flutter_system
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 | import io.flutter.embedding.android.SplashScreen
5 | import io.flutter.embedding.engine.FlutterEngine
6 |
7 | class MainActivity : FlutterActivity() {
8 |
9 | override fun provideSplashScreen(): SplashScreen? {
10 | return LottieSplashScreen()
11 | }
12 |
13 | override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
14 | super.configureFlutterEngine(flutterEngine)
15 | flutterEngine
16 | .platformViewsController
17 | .registry
18 | .registerViewFactory("demo_native_view",
19 | DemoNativeViewFactory()
20 | )
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/android/app/src/main/res/drawable/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | -
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | -
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.0'
3 | ext.lottieVersion = "3.4.1"
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 |
9 | dependencies {
10 | classpath 'com.android.tools.build:gradle:7.0.3'
11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | }
26 | subprojects {
27 | project.evaluationDependsOn(':app')
28 | }
29 |
30 | tasks.register("clean", Delete) {
31 | delete rootProject.buildDir
32 | }
33 |
--------------------------------------------------------------------------------
/android/flutter_system.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/android/flutter_system_android.iml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableJetifier=true
3 | android.useAndroidX=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/assets/emojis/angry_face.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/assets/emojis/angry_face.png
--------------------------------------------------------------------------------
/assets/emojis/circle_face.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/assets/emojis/circle_face.png
--------------------------------------------------------------------------------
/assets/emojis/smile_face.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/assets/emojis/smile_face.png
--------------------------------------------------------------------------------
/assets/fonts/FangZhengFangSongJianTi.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/assets/fonts/FangZhengFangSongJianTi.ttf
--------------------------------------------------------------------------------
/assets/json/articles.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "title": "Text的使用",
4 | "url": "https://jiangkang.tech/?p=151"
5 | },
6 | {
7 | "title": "GridView.count的使用",
8 | "url": "https://jiangkang.tech/?p=174"
9 | },
10 | {
11 | "title": "GridView.extent的使用",
12 | "url": "https://jiangkang.tech/?p=168"
13 | },
14 | {
15 | "title": "GridView的使用总结",
16 | "url": "https://jiangkang.tech/?p=149"
17 | },
18 | {
19 | "title": "图片圆角的几种实现方式",
20 | "url": "https://jiangkang.tech/?p=141"
21 | },
22 | {
23 | "title": "Dart基础语法",
24 | "url": "https://jiangkang.tech/?p=145"
25 | },
26 | {
27 | "title": "Flutter 1.9 Web开发体验",
28 | "url": "https://jiangkang.tech/?p=181"
29 | },
30 | {
31 | "title": "Flutter-Tabs的使用",
32 | "url": "https://jiangkang.tech/?p=192"
33 | },
34 | {
35 | "title": "Flutter-时间的处理",
36 | "url": "https://jiangkang.tech/?p=132"
37 | },
38 | {
39 | "title": "Flutter-Timeline View的使用",
40 | "url": "https://jiangkang.tech/?p=184"
41 | },
42 | {
43 | "title": "Flutter-深色模式的实现",
44 | "url": "https://jiangkang.tech/?p=138"
45 | },
46 | {
47 | "title": "Flutter-使用http请求数据并展示",
48 | "url": "https://jiangkang.tech/?p=159"
49 | }
50 | ]
--------------------------------------------------------------------------------
/assets/json/components.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/assets/json/components.json
--------------------------------------------------------------------------------
/assets/json/demos.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 |
4 | }
5 | ]
--------------------------------------------------------------------------------
/assets/json/month_traditional.json:
--------------------------------------------------------------------------------
1 | {
2 | "1": ["孟春","初春","上春","端月","初阳","端春","孟陬","春阳","首阳","肇春"],
3 | "2": ["仲春","仲阳","仲钟"],
4 | "3": ["季春","暮春","契月","花月","晚春","嘉月","蚕月"],
5 | "4": ["孟夏","初夏","首夏","维夏","槐月","余月","清和月"],
6 | "5": ["仲夏","超夏","榴月","蒲月"],
7 | "6": ["季夏","晚夏","暑夏","荷月","极暑","且月","杪夏"],
8 | "7": ["孟秋","初秋","少秋","新秋","肇秋","初商","兰月","凉月","相月"],
9 | "8": ["仲秋","仲商","桂月","壮月"],
10 | "9": ["季秋","暮秋","晚秋","杪秋","杪商","季商","季白","菊月","咏月","玄月","穷秋"],
11 | "10": ["孟冬","初冬","上冬","阳月","坤月","吉月","良月"],
12 | "11": ["仲冬","子月","葭月","畅月"],
13 | "12": ["季冬","暮冬","杪冬","穷冬","严冬","严月","嘉平月","腊月","除月"]
14 | }
--------------------------------------------------------------------------------
/assets/json/pages.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "title": "Guide Page",
4 | "router": "/page/guide"
5 | },
6 | {
7 | "title": "MarkDown Editor",
8 | "router": "/page/markdown"
9 | },
10 | {
11 | "title": "",
12 | "router": ""
13 | },
14 | {
15 | "title": "",
16 | "router": ""
17 | },
18 | {
19 | "title": "",
20 | "router": ""
21 | },
22 | {
23 | "title": "",
24 | "router": ""
25 | },
26 | {
27 | "title": "",
28 | "router": ""
29 | },
30 | {
31 | "title": "",
32 | "router": ""
33 | }
34 | ]
--------------------------------------------------------------------------------
/assets/json/youqi.json:
--------------------------------------------------------------------------------
1 | {
2 | "code": "0",
3 | "msg": "success",
4 | "data": [
5 | {
6 | "date": "2019-10-25",
7 | "bgImgUrl": "",
8 | "bgColor": "#FFFDD835",
9 | "content": "为天地立心,为生民立命\n为往圣继绝学,为万世开太平",
10 | "source": "张载 横渠四句 《横渠语录》",
11 | "contentDetail": "",
12 | "detailUrl": "https://baike.baidu.com/item/%E6%A8%AA%E6%B8%A0%E5%9B%9B%E5%8F%A5"
13 | },
14 | {
15 | "date": "2019-10-24",
16 | "bgImgUrl": "",
17 | "bgColor": "#FFFFAB91",
18 | "content": "知之为知之,不知为不知,是知也",
19 | "source": "《论语》",
20 | "contentDetail": "",
21 | "detailUrl": ""
22 | },
23 | {
24 | "date": "2019-10-23",
25 | "bgImgUrl": "",
26 | "bgColor": "#FF64B5F6",
27 | "content": "读书,行路,阅人",
28 | "source": "姜康-座右铭",
29 | "contentDetail": "",
30 | "detailUrl": ""
31 | },
32 | {
33 | "date": "2019-10-22",
34 | "bgImgUrl": "",
35 | "bgColor": "#FFB39DDB",
36 | "content": "时间是最宝贵的东西",
37 | "source": "姜康",
38 | "contentDetail": "",
39 | "detailUrl": ""
40 | }
41 | ]
42 | }
--------------------------------------------------------------------------------
/assets/video/butterfly.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/assets/video/butterfly.mp4
--------------------------------------------------------------------------------
/best_toast/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | build/
32 |
33 | # Android related
34 | **/android/**/gradle-wrapper.jar
35 | **/android/.gradle
36 | **/android/captures/
37 | **/android/gradlew
38 | **/android/gradlew.bat
39 | **/android/local.properties
40 | **/android/**/GeneratedPluginRegistrant.java
41 |
42 | # iOS/XCode related
43 | **/ios/**/*.mode1v3
44 | **/ios/**/*.mode2v3
45 | **/ios/**/*.moved-aside
46 | **/ios/**/*.pbxuser
47 | **/ios/**/*.perspectivev3
48 | **/ios/**/*sync/
49 | **/ios/**/.sconsign.dblite
50 | **/ios/**/.tags*
51 | **/ios/**/.vagrant/
52 | **/ios/**/DerivedData/
53 | **/ios/**/Icon?
54 | **/ios/**/Pods/
55 | **/ios/**/.symlinks/
56 | **/ios/**/profile
57 | **/ios/**/xcuserdata
58 | **/ios/.generated/
59 | **/ios/Flutter/App.framework
60 | **/ios/Flutter/Flutter.framework
61 | **/ios/Flutter/Flutter.podspec
62 | **/ios/Flutter/Generated.xcconfig
63 | **/ios/Flutter/app.flx
64 | **/ios/Flutter/app.zip
65 | **/ios/Flutter/flutter_assets/
66 | **/ios/Flutter/flutter_export_environment.sh
67 | **/ios/ServiceDefinitions.json
68 | **/ios/Runner/GeneratedPluginRegistrant.*
69 |
70 | # Exceptions to above rules.
71 | !**/ios/**/default.mode1v3
72 | !**/ios/**/default.mode2v3
73 | !**/ios/**/default.pbxuser
74 | !**/ios/**/default.perspectivev3
75 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
76 |
--------------------------------------------------------------------------------
/best_toast/.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: bbfbf1770cca2da7c82e887e4e4af910034800b6
8 | channel: stable
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/best_toast/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 0.0.2
2 |
3 | - init plugin
4 |
--------------------------------------------------------------------------------
/best_toast/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2020 JiangKang.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/best_toast/README.md:
--------------------------------------------------------------------------------
1 | # ktoast
2 |
3 | A new Flutter package project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Dart
8 | [package](https://flutter.dev/developing-packages/),
9 | a library module containing code that can be shared easily across
10 | multiple Flutter or Dart projects.
11 |
12 | For help getting started with Flutter, view our
13 | [online documentation](https://flutter.dev/docs), which offers tutorials,
14 | samples, guidance on mobile development, and a full API reference.
15 |
--------------------------------------------------------------------------------
/best_toast/lib/best_toast.dart:
--------------------------------------------------------------------------------
1 | library best_toast;
2 |
3 | import 'package:flutter/material.dart';
4 |
5 | class Toast {
6 | Toast._();
7 |
8 | static void showMessage(BuildContext context, String message,
9 | {int duration = 3,
10 | Color bgColor = Colors.white,
11 | Color fontColor = Colors.black}) {
12 | final entry = OverlayEntry(
13 | builder: (context) => Positioned(
14 | top: MediaQuery.of(context).size.height * 0.8,
15 | child: Container(
16 | alignment: Alignment.center,
17 | width: MediaQuery.of(context).size.width,
18 | child: Center(
19 | child: Card(
20 | shape: RoundedRectangleBorder(
21 | borderRadius: BorderRadius.circular(6)),
22 | elevation: 10,
23 | shadowColor: Colors.transparent,
24 | color: bgColor,
25 | child: Padding(
26 | padding: const EdgeInsets.symmetric(
27 | horizontal: 10, vertical: 6),
28 | child: Text(
29 | message,
30 | style: TextStyle(color: fontColor, fontSize: 18),
31 | ),
32 | ),
33 | ),
34 | ),
35 | ),
36 | ));
37 | Overlay.of(context).insert(entry);
38 | Future.delayed(Duration(seconds: duration))
39 | .then((value) => entry.remove());
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/best_toast/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: best_toast
2 | description: A pure dart toast plugin
3 | version: 0.0.3
4 | homepage: https://www.jiangkang.tech
5 |
6 | environment:
7 | sdk: ">=2.12.0 <3.0.0"
8 | flutter: ">=3.0.0"
9 |
10 | dependencies:
11 | flutter:
12 | sdk: flutter
13 | flutter_lints:
14 |
15 | dev_dependencies:
16 | flutter_test:
17 | sdk: flutter
18 |
19 | # For information on the generic Dart part of this file, see the
20 | # following page: https://dart.dev/tools/pub/pubspec
21 |
22 | # The following section is specific to Flutter.
23 | flutter:
24 |
25 | # To add assets to your package, add an assets section, like this:
26 | # assets:
27 | # - images/a_dot_burr.jpeg
28 | # - images/a_dot_ham.jpeg
29 | #
30 | # For details regarding assets in packages, see
31 | # https://flutter.dev/assets-and-images/#from-packages
32 | #
33 | # An image asset can refer to one or more resolution-specific "variants", see
34 | # https://flutter.dev/assets-and-images/#resolution-aware.
35 |
36 | # To add custom fonts to your package, add a fonts section here,
37 | # in this "flutter" section. Each entry in this list should have a
38 | # "family" key with the font family name, and a "fonts" key with a
39 | # list giving the asset and other descriptors for the font. For
40 | # example:
41 | # fonts:
42 | # - family: Schyler
43 | # fonts:
44 | # - asset: fonts/Schyler-Regular.ttf
45 | # - asset: fonts/Schyler-Italic.ttf
46 | # style: italic
47 | # - family: Trajan Pro
48 | # fonts:
49 | # - asset: fonts/TrajanPro.ttf
50 | # - asset: fonts/TrajanPro_Bold.ttf
51 | # weight: 700
52 | #
53 | # For details regarding fonts in packages, see
54 | # https://flutter.dev/custom-fonts/#from-packages
55 |
--------------------------------------------------------------------------------
/build.yaml:
--------------------------------------------------------------------------------
1 | targets:
2 | $default:
3 | builders:
4 | build_web_compilers|entrypoint:
5 | options:
6 | compiler: dart2js
7 | generate_for:
8 | - test/multiplatform/**_test.dart
9 | - test/web/**_test.dart
10 | - web/**.dart
11 | build_vm_compilers|entrypoint:
12 | generate_for:
13 | - test/multiplatform/**_test.dart
14 | - test/vm/**_test.dart
15 | - bin/**.dart
16 | flutter_system|router_builder:
17 | enabled: true
18 |
19 |
20 | builders:
21 | router_builder:
22 | import: 'package:flutter_system/frouter/router_builder.dart'
23 | builder_factories: ['routerBuilder']
24 | build_extensions: {'.dart': ['.router.dart']}
25 | auto_apply: root_package
26 | build_to: source
27 |
--------------------------------------------------------------------------------
/captures/demos/gridview_count_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/demos/gridview_count_3.png
--------------------------------------------------------------------------------
/captures/demos/gridview_count_aspect_ratio.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/demos/gridview_count_aspect_ratio.png
--------------------------------------------------------------------------------
/captures/demos/gridview_count_axis.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/demos/gridview_count_axis.png
--------------------------------------------------------------------------------
/captures/demos/gridview_count_basic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/demos/gridview_count_basic.png
--------------------------------------------------------------------------------
/captures/home_demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/home_demo.png
--------------------------------------------------------------------------------
/captures/home_demo_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/home_demo_dark.png
--------------------------------------------------------------------------------
/captures/packages/IconFont.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/packages/IconFont.png
--------------------------------------------------------------------------------
/captures/page/calendar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/page/calendar.png
--------------------------------------------------------------------------------
/captures/page/custompaint.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/page/custompaint.png
--------------------------------------------------------------------------------
/captures/page/guide.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/page/guide.gif
--------------------------------------------------------------------------------
/captures/products/xiyou.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/products/xiyou.png
--------------------------------------------------------------------------------
/captures/products/youqi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/captures/products/youqi.png
--------------------------------------------------------------------------------
/dartdoc_options.yaml:
--------------------------------------------------------------------------------
1 | dartdoc:
2 | categories:
3 | "Flutter-System":
4 | documentationMarkdown: doc/index.md
5 | "Flutter Page":
6 | documentationMarkdown: doc/page.md
7 | "Flutter Component":
8 | documentationMarkdown: doc/component.md
9 | "Flutter Demo":
10 | documentationMarkdown: doc/demo.md
11 | categoryOrder: ["Flutter-System", "Flutter Page","Flutter Component","Flutter Demo"]
--------------------------------------------------------------------------------
/doc/component.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/doc/component.md
--------------------------------------------------------------------------------
/doc/demo.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/doc/demo.md
--------------------------------------------------------------------------------
/doc/index.md:
--------------------------------------------------------------------------------
1 | # Flutter System
2 |
3 | - [Page](page.md)
4 | - [Component](component.md)
5 | - [Demo](demo.md)
6 |
--------------------------------------------------------------------------------
/doc/page.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/doc/page.md
--------------------------------------------------------------------------------
/images/banner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/images/banner.jpg
--------------------------------------------------------------------------------
/images/github.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/images/github.png
--------------------------------------------------------------------------------
/images/home_bar_scan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/images/home_bar_scan.png
--------------------------------------------------------------------------------
/images/landscape0.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/images/landscape0.jpeg
--------------------------------------------------------------------------------
/images/landscape1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/images/landscape1.jpeg
--------------------------------------------------------------------------------
/images/landscape2.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/images/landscape2.jpeg
--------------------------------------------------------------------------------
/images/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/images/loading.gif
--------------------------------------------------------------------------------
/ios/Flutter/.last_build_id:
--------------------------------------------------------------------------------
1 | 6b96431848928268c35aa1df2900c9aa
--------------------------------------------------------------------------------
/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 "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/flutter_export_environment.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # This is a generated file; do not edit or check into version control.
3 | export "FLUTTER_ROOT=/Users/jiangkang/Env/google/flutter"
4 | export "FLUTTER_APPLICATION_PATH=/Users/jiangkang/MyProjects/flutter-system"
5 | export "COCOAPODS_PARALLEL_CODE_SIGN=true"
6 | export "FLUTTER_TARGET=lib/main.dart"
7 | export "FLUTTER_BUILD_DIR=build"
8 | export "FLUTTER_BUILD_NAME=0.0.1"
9 | export "FLUTTER_BUILD_NUMBER=0.0.1"
10 | export "DART_OBFUSCATION=false"
11 | export "TRACK_WIDGET_CREATION=true"
12 | export "TREE_SHAKE_ICONS=false"
13 | export "PACKAGE_CONFIG=.dart_tool/package_config.json"
14 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '11.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - FMDB (2.7.5):
4 | - FMDB/standard (= 2.7.5)
5 | - FMDB/standard (2.7.5)
6 | - image_picker_ios (0.0.1):
7 | - Flutter
8 | - path_provider_ios (0.0.1):
9 | - Flutter
10 | - share (0.0.1):
11 | - Flutter
12 | - shared_preferences_ios (0.0.1):
13 | - Flutter
14 | - sqflite (0.0.2):
15 | - Flutter
16 | - FMDB (>= 2.7.5)
17 | - url_launcher_ios (0.0.1):
18 | - Flutter
19 | - video_player_avfoundation (0.0.1):
20 | - Flutter
21 | - webview_flutter_wkwebview (0.0.1):
22 | - Flutter
23 |
24 | DEPENDENCIES:
25 | - Flutter (from `Flutter`)
26 | - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
27 | - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
28 | - share (from `.symlinks/plugins/share/ios`)
29 | - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
30 | - sqflite (from `.symlinks/plugins/sqflite/ios`)
31 | - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
32 | - video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/ios`)
33 | - webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
34 |
35 | SPEC REPOS:
36 | trunk:
37 | - FMDB
38 |
39 | EXTERNAL SOURCES:
40 | Flutter:
41 | :path: Flutter
42 | image_picker_ios:
43 | :path: ".symlinks/plugins/image_picker_ios/ios"
44 | path_provider_ios:
45 | :path: ".symlinks/plugins/path_provider_ios/ios"
46 | share:
47 | :path: ".symlinks/plugins/share/ios"
48 | shared_preferences_ios:
49 | :path: ".symlinks/plugins/shared_preferences_ios/ios"
50 | sqflite:
51 | :path: ".symlinks/plugins/sqflite/ios"
52 | url_launcher_ios:
53 | :path: ".symlinks/plugins/url_launcher_ios/ios"
54 | video_player_avfoundation:
55 | :path: ".symlinks/plugins/video_player_avfoundation/ios"
56 | webview_flutter_wkwebview:
57 | :path: ".symlinks/plugins/webview_flutter_wkwebview/ios"
58 |
59 | SPEC CHECKSUMS:
60 | Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
61 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
62 | image_picker_ios: b786a5dcf033a8336a657191401bfdf12017dabb
63 | path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
64 | share: 0b2c3e82132f5888bccca3351c504d0003b3b410
65 | shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
66 | sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
67 | url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
68 | video_player_avfoundation: e489aac24ef5cf7af82702979ed16f2a5ef84cff
69 | webview_flutter_wkwebview: b7e70ef1ddded7e69c796c7390ee74180182971f
70 |
71 | PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
72 |
73 | COCOAPODS: 1.11.3
74 |
--------------------------------------------------------------------------------
/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.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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: [UIApplicationLaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/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 | flutter_system
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 | io.flutter.embedded_views_preview
43 | yes
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | NSAppTransportSecurity
47 |
48 | NSAllowsArbitraryLoads
49 |
50 |
51 | CADisableMinimumFrameDurationOnPhone
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/kicons/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/Flutter/flutter_export_environment.sh
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 | # Exceptions to above rules.
69 | !**/ios/**/default.mode1v3
70 | !**/ios/**/default.mode2v3
71 | !**/ios/**/default.pbxuser
72 | !**/ios/**/default.perspectivev3
73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
74 |
--------------------------------------------------------------------------------
/kicons/.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: 1aedbb1835bd6eb44550293d57d4d124f19901f0
8 | channel: stable
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/kicons/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## v1.0.2 - 2020/09/01
2 |
3 | * emoj and aliyun icons
4 |
--------------------------------------------------------------------------------
/kicons/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2019 JiangKang.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/kicons/README.md:
--------------------------------------------------------------------------------
1 | # kicons
2 |
3 | 一个自定义的图标库
4 |
5 | 
6 |
7 |
8 |
--------------------------------------------------------------------------------
/kicons/fonts/aliyun.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/kicons/fonts/aliyun.ttf
--------------------------------------------------------------------------------
/kicons/fonts/emoji.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangkang/flutter-system/0ce0388b692c94521dcb518e809899d4752e5962/kicons/fonts/emoji.ttf
--------------------------------------------------------------------------------
/kicons/lib/kicons.dart:
--------------------------------------------------------------------------------
1 | library kicons;
2 |
3 | export 'package:kicons/src/aliyun.dart';
4 | export 'package:kicons/src/emoji.dart';
5 |
6 | const package = "kicons";
7 |
--------------------------------------------------------------------------------
/kicons/lib/src/emoji.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:kicons/kicons.dart';
3 |
4 | /// 表情Icon
5 | class EmojiIcon {
6 | static const String _family = "Emoji";
7 |
8 | EmojiIcon._();
9 |
10 | static const IconData angry =
11 | IconData(0xeaf4, fontFamily: _family, fontPackage: package);
12 | static const IconData astonished =
13 | IconData(0xeaf5, fontFamily: _family, fontPackage: package);
14 | static const IconData confounded =
15 | IconData(0xeaf6, fontFamily: _family, fontPackage: package);
16 | static const IconData confused =
17 | IconData(0xeaf7, fontFamily: _family, fontPackage: package);
18 | static const IconData crying =
19 | IconData(0xeaf8, fontFamily: _family, fontPackage: package);
20 | static const IconData dizzy =
21 | IconData(0xeaf9, fontFamily: _family, fontPackage: package);
22 | static const IconData expressionless =
23 | IconData(0xeafa, fontFamily: _family, fontPackage: package);
24 | static const IconData heart_eyes =
25 | IconData(0xeafb, fontFamily: _family, fontPackage: package);
26 | static const IconData laughing =
27 | IconData(0xeafc, fontFamily: _family, fontPackage: package);
28 | static const IconData nerd_smile =
29 | IconData(0xeafd, fontFamily: _family, fontPackage: package);
30 | static const IconData open_mouth =
31 | IconData(0xeafe, fontFamily: _family, fontPackage: package);
32 | static const IconData rage =
33 | IconData(0xeaff, fontFamily: _family, fontPackage: package);
34 | static const IconData rolling_eyes =
35 | IconData(0xeb00, fontFamily: _family, fontPackage: package);
36 | static const IconData sad =
37 | IconData(0xeb01, fontFamily: _family, fontPackage: package);
38 | static const IconData simple_smile =
39 | IconData(0xeb02, fontFamily: _family, fontPackage: package);
40 | static const IconData slightly_smile =
41 | IconData(0xeb03, fontFamily: _family, fontPackage: package);
42 | static const IconData smirk =
43 | IconData(0xeb04, fontFamily: _family, fontPackage: package);
44 | static const IconData stuck_out_tongue =
45 | IconData(0xeb05, fontFamily: _family, fontPackage: package);
46 | static const IconData wink_smile =
47 | IconData(0xeb06, fontFamily: _family, fontPackage: package);
48 | static const IconData worried =
49 | IconData(0xeb07, fontFamily: _family, fontPackage: package);
50 |
51 | /// 返回IconData列表
52 | static List toList() {
53 | final result = [];
54 | for (int i = 0xeaf4; i <= 0xeb07; i++) {
55 | result.add(IconData(i, fontFamily: _family, fontPackage: package));
56 | }
57 | return result;
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/kicons/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: kicons
2 | description: An Icon package project,you can use many icons which you like.Then,you can list all of the icons quickly!
3 | version: 1.0.3
4 | homepage: https://www.jiangkang.tech
5 |
6 | environment:
7 | sdk: ">=2.12.0 <3.0.0"
8 | flutter: ">=3.0.0"
9 |
10 | dependencies:
11 | flutter:
12 | sdk: flutter
13 |
14 | dev_dependencies:
15 | flutter_test:
16 | sdk: flutter
17 | flutter_lints:
18 |
19 | flutter:
20 | fonts:
21 | - family: Emoji
22 | fonts:
23 | - asset: fonts/emoji.ttf
24 | - family: Aliyun
25 | fonts:
26 | - asset: fonts/aliyun.ttf
27 |
--------------------------------------------------------------------------------
/kicons/test/kicons_test.dart:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/api/api_demo.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'dart:io';
3 |
4 | import 'package:http/http.dart';
5 |
6 | const String HOST_DEMO = "https://api.apiopen.top";
7 |
8 | const String defaultPage = "0";
9 |
10 | const String defaultCount = "30";
11 |
12 | /// 获取图片列表
13 | Future fetchImages() async {
14 | return getImages().then((response) {
15 | return ImageResponse.fromJson(json.decode(response.body));
16 | }).catchError((error) {
17 | throw HttpException("statusCode: ${error.toString()}");
18 | });
19 | }
20 |
21 | Future getImages() => get(Uri.parse("$HOST_DEMO/getImages"),
22 | headers: {"page": defaultPage, "count": defaultCount});
23 |
24 | /// 获取新闻列表
25 | Future getNews() => get(Uri.parse("$HOST_DEMO/getWangYiNews") ,
26 | headers: {"page": defaultPage, "count": defaultCount});
27 |
28 | /// 获取城市列表
29 | Future getWeather(String city) =>
30 | get(Uri.parse("$HOST_DEMO/weatherApi"), headers: {"city": city});
31 |
32 | /// 获取唐诗列表
33 | Future getTangPoets() => get(Uri.parse("$HOST_DEMO/getTangPoetry"),
34 | headers: {"page": defaultPage, "count": defaultCount});
35 |
36 | /// 获取宋诗列表
37 | Future getSongPoets() => get(Uri.parse("$HOST_DEMO/getSongPoetry"),
38 | headers: {"page": defaultPage, "count": defaultCount});
39 |
40 | /// 获取一首随机的诗词
41 | Future getRecPoet() => get(Uri.parse("$HOST_DEMO/recommendPoetry"));
42 |
43 | /// Model:图片列表响应
44 | class ImageResponse {
45 | final int? code;
46 | final String? message;
47 | final List