├── .flutter-plugins-dependencies
├── .fvm
└── fvm_config.json
├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── README_CH.md
├── _config.yml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── air
│ │ │ │ └── flutter_app_sample
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── 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-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── key.jks
├── key.properties
├── key_README.txt
└── settings.gradle
├── assets
├── Butterfly-209.mp4
├── avatar.jpg
├── bumble_bee_captions.srt
├── child3.svg
├── child6.svg
├── child7.svg
├── child8.svg
├── circle.svg
├── dino2.svg
├── egypt1.svg
├── flutter-mark-square-64.png
├── head1.svg
├── login_top_gif.gif
├── pexels-photo-396547.jpg
├── place_view_page_banner_0.jpeg
├── place_view_page_banner_1.jpeg
└── place_view_page_banner_2.jpeg
├── doc
├── README_CH_v1.0.md
├── README_CH_v2.0.md
├── README_Solution_To_The_Problem.md
├── README_v1.0.md
└── README_v2.0.md
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── 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
├── ChineseCupertinoLocalizations.dart
├── common
│ ├── Read
│ ├── config
│ │ ├── ApiConfig.dart
│ │ ├── EnvironmentConfig.dart
│ │ ├── PageNameConfig.dart
│ │ └── StringConfig.dart
│ ├── helper
│ │ ├── tip_helper.dart
│ │ └── tip_type.dart
│ └── util
│ │ ├── LogUtil.dart
│ │ └── StringUtil.dart
├── component
│ ├── BasePresenter.dart
│ ├── BaseSource.dart
│ ├── BaseView.dart
│ ├── Read
│ ├── barcode
│ │ ├── app_barcode_scanner_widget.dart
│ │ ├── barcode_main_page.dart
│ │ ├── creator_page.dart
│ │ ├── custom_size_scanner_page.dart
│ │ ├── full_screen_scanner_page.dart
│ │ ├── select_scanner_style_page.dart
│ │ └── task_next_page.dart
│ ├── builder
│ │ ├── future_builder_async_request_page.dart
│ │ ├── future_builder_main_page.dart
│ │ ├── stream_builder_async_request_page.dart
│ │ └── stream_builder_main_page.dart
│ ├── component_config.dart
│ ├── filter
│ │ └── select_color_filter_page.dart
│ ├── fit
│ │ └── fitted_box_page.dart
│ ├── game
│ │ ├── MainGamePage.dart
│ │ └── WeatherPage.dart
│ ├── image
│ │ └── image_picker_page.dart
│ ├── login
│ │ ├── login_contract.dart
│ │ ├── login_page.dart
│ │ └── tv_login_page.dart
│ ├── main
│ │ ├── main_config.dart
│ │ ├── main_list_item_widget.dart
│ │ ├── main_page.dart
│ │ ├── main_view_model.dart
│ │ └── tv_main_page.dart
│ ├── message
│ │ ├── awesome_message_main_page.dart
│ │ ├── message_popup_route.dart
│ │ ├── popup_page.dart
│ │ └── tool_page.dart
│ ├── network
│ │ └── network_check_page.dart
│ ├── paint
│ │ └── sun_main_page.dart
│ ├── personal
│ │ ├── personal_config.dart
│ │ ├── personal_drawer_widget.dart
│ │ ├── personal_face_widget.dart
│ │ ├── personal_slide_drawer.dart
│ │ └── user_info_page.dart
│ ├── route
│ │ ├── launch_page.dart
│ │ ├── second_page.dart
│ │ └── third_page.dart
│ ├── search
│ │ └── SearchPage.dart
│ ├── setting
│ │ └── setting_page.dart
│ ├── shop
│ │ ├── Product.dart
│ │ ├── ShoppingList.dart
│ │ └── ShoppingListItem.dart
│ ├── state
│ │ ├── FrogColor.dart
│ │ ├── inherited_widget_child.dart
│ │ ├── inherited_widget_main_page.dart
│ │ ├── user_info.dart
│ │ └── user_inherited_widget.dart
│ ├── tab
│ │ ├── navigation_drawer_page.dart
│ │ ├── navigation_rail_page.dart
│ │ └── tab_main_page.dart
│ ├── test
│ │ └── TestPage.dart
│ └── video
│ │ └── video_player_page.dart
├── data
│ ├── Read
│ ├── request
│ │ └── LoginRequestBean.dart
│ └── response
│ │ └── User.dart
├── di
│ └── Read
├── entrance_global_config.dart
├── generated_plugin_registrant.dart
├── global_view_model.dart
├── main.dart
├── net
│ └── HttpContext.dart
├── sample
│ ├── CollapsingToolbarPage.dart
│ ├── DrawerVariouslyPage.dart
│ ├── MainSortListPage.dart
│ ├── ViewPagerFragmentPage.dart
│ ├── anim
│ │ ├── AnimOfSwitchPage.dart
│ │ ├── AnimatedBuilderPage.dart
│ │ ├── AnimatedContainerPage.dart
│ │ ├── AppPageRoute.dart
│ │ ├── ColorTweenPage.dart
│ │ ├── FadeInImagePage.dart
│ │ ├── HeroAnimPage.dart
│ │ ├── MainAnimSortPage.dart
│ │ ├── OpacityAndAnimatedOpacityPage.dart
│ │ ├── TransformPage.dart
│ │ ├── draw_anim_page.dart
│ │ ├── icon
│ │ │ └── main_icon_anim_page.dart
│ │ └── snappable_page.dart
│ ├── chart
│ │ ├── bar_chart
│ │ │ ├── bar_chart_page.dart
│ │ │ ├── bar_chart_page2.dart
│ │ │ └── samples
│ │ │ │ ├── bar_chart_sample1.dart
│ │ │ │ ├── bar_chart_sample2.dart
│ │ │ │ ├── bar_chart_sample3.dart
│ │ │ │ ├── bar_chart_sample4.dart
│ │ │ │ └── bar_chart_sample5.dart
│ │ ├── chart_page.dart
│ │ ├── line_chart
│ │ │ ├── line_chart_page.dart
│ │ │ ├── line_chart_page2.dart
│ │ │ ├── line_chart_page3.dart
│ │ │ ├── line_chart_page4.dart
│ │ │ └── samples
│ │ │ │ ├── line_chart_sample1.dart
│ │ │ │ ├── line_chart_sample2.dart
│ │ │ │ ├── line_chart_sample3.dart
│ │ │ │ ├── line_chart_sample4.dart
│ │ │ │ ├── line_chart_sample5.dart
│ │ │ │ ├── line_chart_sample6.dart
│ │ │ │ ├── line_chart_sample7.dart
│ │ │ │ └── line_chart_sample8.dart
│ │ ├── pie_chart
│ │ │ ├── pie_chart_page.dart
│ │ │ └── samples
│ │ │ │ ├── indicator.dart
│ │ │ │ ├── pie_chart_sample1.dart
│ │ │ │ └── pie_chart_sample2.dart
│ │ └── scatter_chart
│ │ │ ├── samples
│ │ │ ├── scatter_chart_sample1.dart
│ │ │ └── scatter_chart_sample2.dart
│ │ │ └── scatter_chart_page.dart
│ ├── clip
│ │ └── clip_main_page.dart
│ ├── drag
│ │ └── DragListPage.dart
│ ├── file
│ │ └── FileMainPage.dart
│ ├── image
│ │ └── main_image_sort_page.dart
│ ├── ink
│ │ └── ink_page.dart
│ ├── loading
│ │ ├── loading_modal_popup_route.dart
│ │ └── main_loading_page.dart
│ ├── navigation
│ │ └── curved_navigation_bar_page.dart
│ ├── notifier
│ │ ├── CardInfoPage.dart
│ │ ├── CardMainPage.dart
│ │ ├── CardModel.dart
│ │ └── CardModelByNotifierProvider.dart
│ ├── overlay
│ │ ├── main_overlay_page.dart
│ │ └── simple_overlay_page.dart
│ ├── picker
│ │ └── main_picker_page.dart
│ ├── popup
│ │ └── main_popup_page.dart
│ ├── progress
│ │ └── main_progress_page.dart
│ ├── segment
│ │ ├── drop_down_page.dart
│ │ └── segment_page.dart
│ ├── text
│ │ ├── RichTextPage.dart
│ │ └── input_text_page.dart
│ ├── tip
│ │ └── flushbar_page.dart
│ ├── wave
│ │ ├── main_wave_page.dart
│ │ ├── wave_arc_clipper.dart
│ │ ├── wave_oval_clipper.dart
│ │ └── wave_triangle_clipper.dart
│ ├── webview
│ │ ├── air_license_page.dart
│ │ └── flutter_web_page.dart
│ └── wheel
│ │ └── list_wheel_scroll_view_page.dart
├── tv
│ ├── app_raw_key_board_listener_widget.dart
│ └── key_code.dart
└── ui
│ ├── Read
│ ├── common
│ ├── AppCommonListItem.dart
│ ├── AppCommonTextField.dart
│ └── AppCommonToolBar.dart
│ ├── route
│ └── AppRoute.dart
│ └── style
│ └── AppStyle.dart
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
├── web
├── avatar.jpg
├── favicon.png
├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
├── index.html
├── js
│ └── jsQR.js
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── run_loop.cpp
├── run_loop.h
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.fvm/fvm_config.json:
--------------------------------------------------------------------------------
1 | {
2 | "flutterSdkVersion": "3.0.3",
3 | "flavors": {}
4 | }
--------------------------------------------------------------------------------
/.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 | .fvm/flutter_sdk
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | .dart_tool/
27 | .flutter-plugins
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/Generated.xcconfig
62 | **/ios/Flutter/app.flx
63 | **/ios/Flutter/app.zip
64 | **/ios/Flutter/flutter_assets/
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 |
--------------------------------------------------------------------------------
/.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: b712a172f9694745f50505c93340883493b505e5
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/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 33
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.air.flutter_app_sample"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50 | minSdkVersion 19
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | multiDexEnabled true
55 | }
56 |
57 | buildTypes {
58 | release {
59 | // TODO: Add your own signing config for the release build.
60 | // Signing with the debug keys for now, so `flutter run --release` works.
61 | signingConfig signingConfigs.debug
62 | }
63 | }
64 | }
65 |
66 | flutter {
67 | source '../..'
68 | }
69 |
70 | dependencies {
71 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
72 | implementation "androidx.multidex:multidex:2.0.1"
73 | }
74 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
9 |
17 |
21 |
25 |
26 |
27 |
28 |
29 |
30 |
32 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/air/flutter_app_sample/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.air.flutter_app_sample
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.2'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/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-7.4-all.zip
7 |
--------------------------------------------------------------------------------
/android/key.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/android/key.jks
--------------------------------------------------------------------------------
/android/key.properties:
--------------------------------------------------------------------------------
1 | storePassword=123456
2 | keyPassword=123456
3 | keyAlias=key
4 | storeFile=/Users/air/develop_work/flutter/personal_project/flutter_app_sample/android/key.jks
--------------------------------------------------------------------------------
/android/key_README.txt:
--------------------------------------------------------------------------------
1 | storePassword=123456
2 | keyPassword=123456
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/assets/Butterfly-209.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/assets/Butterfly-209.mp4
--------------------------------------------------------------------------------
/assets/avatar.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/assets/avatar.jpg
--------------------------------------------------------------------------------
/assets/bumble_bee_captions.srt:
--------------------------------------------------------------------------------
1 | 1
2 | 00:00:00,200 --> 00:00:01,750
3 | [ Birds chirping ]
4 |
5 | 2
6 | 00:00:02,300 --> 00:00:05,000
7 | [ Buzzing ]
8 |
--------------------------------------------------------------------------------
/assets/circle.svg:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/assets/flutter-mark-square-64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/assets/flutter-mark-square-64.png
--------------------------------------------------------------------------------
/assets/login_top_gif.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/assets/login_top_gif.gif
--------------------------------------------------------------------------------
/assets/pexels-photo-396547.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/assets/pexels-photo-396547.jpg
--------------------------------------------------------------------------------
/assets/place_view_page_banner_0.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/assets/place_view_page_banner_0.jpeg
--------------------------------------------------------------------------------
/assets/place_view_page_banner_1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/assets/place_view_page_banner_1.jpeg
--------------------------------------------------------------------------------
/assets/place_view_page_banner_2.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/assets/place_view_page_banner_2.jpeg
--------------------------------------------------------------------------------
/doc/README_Solution_To_The_Problem.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Flutter app sample
3 |
4 | img: /images/flutter_logo.jpg
5 | summary: Flutter项目示例
6 | categories: app sample
7 | top: true
8 | tags:
9 | - Flutter
10 | - Dart
11 | - MVP
12 | - Dio
13 | - DesignPatterns
14 |
15 |
16 | ---
17 |
18 | ----
19 |
20 | 
21 |
22 |
23 | 问题1、Flutter更新依赖的库的版本后,但是在项目中获取的一直是旧版本的!
24 |
25 | ```
26 |
27 | * 1、打开窗口:打开“Terminal” 或“终端”窗口
28 | * 2、执行命令:
29 | * 2.1、"flutter packages get" 命令
30 | * 2.2、"flutter packages upgrade" 命令
31 |
32 | ```
33 |
--------------------------------------------------------------------------------
/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 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/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/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - ai_barcode (0.0.1):
3 | - Flutter
4 | - MTBBarcodeScanner
5 | - connectivity (0.0.1):
6 | - Flutter
7 | - Reachability
8 | - Flutter (1.0.0)
9 | - image_picker (0.0.1):
10 | - Flutter
11 | - MTBBarcodeScanner (5.0.11)
12 | - "permission_handler (5.1.0+2)":
13 | - Flutter
14 | - Reachability (3.2)
15 | - shared_preferences (0.0.1):
16 | - Flutter
17 | - url_launcher (0.0.1):
18 | - Flutter
19 | - video_player (0.0.1):
20 | - Flutter
21 | - webview_flutter (0.0.1):
22 | - Flutter
23 |
24 | DEPENDENCIES:
25 | - ai_barcode (from `.symlinks/plugins/ai_barcode/ios`)
26 | - connectivity (from `.symlinks/plugins/connectivity/ios`)
27 | - Flutter (from `Flutter`)
28 | - image_picker (from `.symlinks/plugins/image_picker/ios`)
29 | - permission_handler (from `.symlinks/plugins/permission_handler/ios`)
30 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
31 | - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
32 | - video_player (from `.symlinks/plugins/video_player/ios`)
33 | - webview_flutter (from `.symlinks/plugins/webview_flutter/ios`)
34 |
35 | SPEC REPOS:
36 | trunk:
37 | - MTBBarcodeScanner
38 | - Reachability
39 |
40 | EXTERNAL SOURCES:
41 | ai_barcode:
42 | :path: ".symlinks/plugins/ai_barcode/ios"
43 | connectivity:
44 | :path: ".symlinks/plugins/connectivity/ios"
45 | Flutter:
46 | :path: Flutter
47 | image_picker:
48 | :path: ".symlinks/plugins/image_picker/ios"
49 | permission_handler:
50 | :path: ".symlinks/plugins/permission_handler/ios"
51 | shared_preferences:
52 | :path: ".symlinks/plugins/shared_preferences/ios"
53 | url_launcher:
54 | :path: ".symlinks/plugins/url_launcher/ios"
55 | video_player:
56 | :path: ".symlinks/plugins/video_player/ios"
57 | webview_flutter:
58 | :path: ".symlinks/plugins/webview_flutter/ios"
59 |
60 | SPEC CHECKSUMS:
61 | ai_barcode: 67fb0a7b732dbb87e92b59bb90a438db9383fa2f
62 | connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
63 | Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
64 | image_picker: 50e7c7ff960e5f58faa4d1f4af84a771c671bc4a
65 | MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb
66 | permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
67 | Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
68 | shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
69 | url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
70 | video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
71 | webview_flutter: 9f491a9b5a66f2573946a389b2677987b0ff8c0b
72 |
73 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
74 |
75 | COCOAPODS: 1.10.1
76 |
--------------------------------------------------------------------------------
/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.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/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_app_sample
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 | NSAppTransportSecurity
45 |
46 | NSAllowsArbitraryLoads
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/common/Read:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/lib/common/Read
--------------------------------------------------------------------------------
/lib/common/config/ApiConfig.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_app_sample/common/config/EnvironmentConfig.dart';
2 |
3 | ///Api config class!
4 | ///
5 | ///
6 | class ApiConfig {
7 | static const String RELEASE_URL = "http://101.201.77.210";
8 | static const String TEST_URL = "http://101.201.77.210";
9 | static const String DEBUG_URL = "http://101.201.77.210";
10 | static String BASE_URL = getUrl();
11 | static const int CONNECT_TIME_OUT = 5000;
12 | static const int RECEIVE_TIME_OUT = 3000;
13 |
14 | static String getUrl() {
15 | if (EnvironmentConfig.DEBUG_URL) {
16 | return TEST_URL;
17 | } else {
18 | return RELEASE_URL;
19 | }
20 | }
21 | ///URL path!
22 | static const String GET_VERIFICATION_CODE_URL = "/api/app/v1/LoginCtrl/getVerificationCode";
23 | static const String LOGIN_URL = "/api/app/v1/LoginCtrl/login";
24 | }
25 |
--------------------------------------------------------------------------------
/lib/common/config/EnvironmentConfig.dart:
--------------------------------------------------------------------------------
1 |
2 |
3 | class EnvironmentConfig{
4 |
5 | static bool DEBUG_URL = true;
6 | static bool DEBUG_TOAST = true;
7 | }
--------------------------------------------------------------------------------
/lib/common/config/PageNameConfig.dart:
--------------------------------------------------------------------------------
1 |
2 | class PageNameConfig{
3 |
4 | final String mLoginPageName = "登陆";
5 | final String mShoppingListPageName = "商品列表";
6 | }
--------------------------------------------------------------------------------
/lib/common/config/StringConfig.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_app_sample/common/config/PageNameConfig.dart';
2 |
3 | class StringConfig{
4 |
5 |
6 | static final PageNameConfig _pageNameConfig = PageNameConfig();
7 |
8 | ///Get PageNameConfig object!
9 | static PageNameConfig get pageNameConfig{
10 | return _pageNameConfig;
11 | }
12 | }
--------------------------------------------------------------------------------
/lib/common/helper/tip_helper.dart:
--------------------------------------------------------------------------------
1 | import 'package:ai_awesome_message/ai_awesome_message.dart' as awesome_message;
2 | import 'package:airoute/airoute.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | import 'tip_type.dart' as tip_type;
6 |
7 | ///
8 | /// TipHelper
9 | class TipHelper {
10 | ///
11 | /// showTip
12 | /// [context]
13 | /// [title]
14 | /// [message]
15 | /// [tipType]
16 | static showTip({
17 | required BuildContext context,
18 | String? title,
19 | String message = '',
20 | tip_type.TipType tipType = tip_type.TipType.INFO,
21 | }) {
22 | awesome_message.TipType awesomeTipType;
23 | if (tipType == tip_type.TipType.INFO) {
24 | awesomeTipType = awesome_message.TipType.INFO;
25 | } else if (tipType == tip_type.TipType.WARN) {
26 | awesomeTipType = awesome_message.TipType.WARN;
27 | } else if (tipType == tip_type.TipType.ERROR) {
28 | awesomeTipType = awesome_message.TipType.ERROR;
29 | } else if (tipType == tip_type.TipType.COMPLETE) {
30 | awesomeTipType = awesome_message.TipType.COMPLETE;
31 | } else {
32 | awesomeTipType = awesome_message.TipType.INFO;
33 | }
34 | Airoute.push(
35 | route: awesome_message.AwesomeMessageRoute(
36 | theme: null,
37 | settings: RouteSettings(name: "/ai_awesome_message"),
38 | awesomeMessage: awesome_message.AwesomeHelper.createAwesome(
39 | title: "${title ?? "提示"}",
40 | message: "${message}",
41 | tipType: awesomeTipType,
42 | ),
43 | ),
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/common/helper/tip_type.dart:
--------------------------------------------------------------------------------
1 | enum TipType {
2 | INFO,
3 | WARN,
4 | ERROR,
5 | COMPLETE,
6 | }
7 |
--------------------------------------------------------------------------------
/lib/common/util/LogUtil.dart:
--------------------------------------------------------------------------------
1 | class LogUtil {
2 | static final StringBuffer stringBuffer = new StringBuffer();
3 |
4 | static void log(Object object) {
5 | print("${object}");
6 | }
7 |
8 | static void logWithTag({String? tag, Object? message}) {
9 | print("${createLine()}");
10 |
11 | String all = "TAG:$tag, $message";
12 | print("$all");
13 |
14 | print("${createLine()}");
15 | }
16 |
17 | static String createSpace({int value = 0}) {
18 | stringBuffer.clear();
19 |
20 | for (int i = 0; i < value; i++) {
21 | stringBuffer.write(" ");
22 | }
23 | return stringBuffer.toString();
24 | }
25 |
26 | static String createLine({int max = 100}) {
27 | stringBuffer.clear();
28 |
29 | for (int i = 0; i < max; i++) {
30 | stringBuffer.write("-");
31 | }
32 |
33 | return stringBuffer.toString();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/lib/common/util/StringUtil.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class StringUtil {
4 | static String get getEmpty => emptyString;
5 | static String emptyString = "";
6 |
7 | ///是否是空数据
8 | static bool isEmpty(Object object) {
9 | if (object == null) {
10 | return true;
11 | }
12 | if (object is String) {
13 | if (object.length == 0) {
14 | return true;
15 | } else {
16 | return false;
17 | }
18 | }
19 |
20 | return false;
21 | }
22 |
23 | ///是否是空对象
24 | static bool isNull(Object object) {
25 | if (object == null) {
26 | return true;
27 | } else {
28 | return false;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/lib/component/BasePresenter.dart:
--------------------------------------------------------------------------------
1 | ///MVP-Presenter-
2 | abstract class BasePresenter {
3 | create();
4 | destroy();
5 | }
6 |
--------------------------------------------------------------------------------
/lib/component/BaseSource.dart:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | abstract class BaseSource{
4 |
5 | }
--------------------------------------------------------------------------------
/lib/component/BaseView.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_app_sample/component/BasePresenter.dart';
2 |
3 | ///MVP--View-
4 | abstract class BaseView {
5 | setPresenter(T presenter);
6 | }
7 |
--------------------------------------------------------------------------------
/lib/component/Read:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdliuw/flutter_app_sample/6c79f03fe083af02775c8645c6f323ed385f38d8/lib/component/Read
--------------------------------------------------------------------------------
/lib/component/barcode/barcode_main_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:air_design/air_design.dart';
2 | import 'package:airoute/airoute.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_app_sample/component/barcode/select_scanner_style_page.dart';
5 |
6 | import 'creator_page.dart';
7 |
8 | ///
9 | /// BarcodeMainPage
10 | class BarcodeMainPage extends StatefulWidget {
11 | @override
12 | _BarcodeMainPageState createState() => _BarcodeMainPageState();
13 | }
14 |
15 | class _BarcodeMainPageState extends State {
16 | @override
17 | Widget build(BuildContext context) {
18 | return Scaffold(
19 | appBar: AppBar(
20 | title: Text("条码"),
21 | ),
22 | body: Column(
23 | crossAxisAlignment: CrossAxisAlignment.center,
24 | mainAxisAlignment: MainAxisAlignment.center,
25 | children: [
26 | Expanded(
27 | child: AppCardOutlinedStyleWidget.defaultStyle(
28 | onTap: () {
29 | //跳转页面=扫描二维码
30 | Airoute.push(route: MaterialPageRoute