├── ios ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-50x50@1x.png │ │ │ ├── Icon-App-50x50@2x.png │ │ │ ├── Icon-App-57x57@1x.png │ │ │ ├── Icon-App-57x57@2x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-72x72@1x.png │ │ │ ├── Icon-App-72x72@2x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ │ └── LaunchBackground.imageset │ │ │ ├── background.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── RunnerTests │ └── RunnerTests.swift └── .gitignore ├── assets └── images │ ├── icon.png │ └── ic_nav_icon.png ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── drawable │ │ │ │ │ ├── background.png │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-hdpi │ │ │ │ │ ├── splash.png │ │ │ │ │ └── android12splash.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ ├── splash.png │ │ │ │ │ └── android12splash.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ ├── splash.png │ │ │ │ │ └── android12splash.png │ │ │ │ ├── drawable-v21 │ │ │ │ │ ├── background.png │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ ├── splash.png │ │ │ │ │ └── android12splash.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ │ ├── splash.png │ │ │ │ │ └── android12splash.png │ │ │ │ ├── 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 │ │ │ │ ├── drawable-night-hdpi │ │ │ │ │ └── android12splash.png │ │ │ │ ├── drawable-night-mdpi │ │ │ │ │ └── android12splash.png │ │ │ │ ├── drawable-night-xhdpi │ │ │ │ │ └── android12splash.png │ │ │ │ ├── drawable-night-xxhdpi │ │ │ │ │ └── android12splash.png │ │ │ │ ├── drawable-night-xxxhdpi │ │ │ │ │ └── android12splash.png │ │ │ │ ├── xml │ │ │ │ │ └── network_security_config.xml │ │ │ │ ├── values-v31 │ │ │ │ │ └── styles.xml │ │ │ │ ├── values-night-v31 │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── cn │ │ │ │ │ └── coderpig │ │ │ │ │ └── van_android_getx │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle └── settings.gradle ├── lib ├── core │ ├── utils │ │ ├── sp_utils.dart │ │ ├── color_utils.dart │ │ ├── toast_utils.dart │ │ └── logger_utils.dart │ └── services │ │ └── api │ │ ├── exceptions.dart │ │ ├── van_api.dart │ │ └── api_client.dart ├── theme_vm.dart ├── features │ ├── main │ │ ├── main_vm.dart │ │ ├── main_bindings.dart │ │ ├── widget │ │ │ ├── index_container_widget.dart │ │ │ └── index_bottom_bar_widget.dart │ │ └── main_page.dart │ ├── other │ │ ├── other_page.dart │ │ ├── navi_vm.dart │ │ ├── study_system_vm.dart │ │ ├── study_system_page.dart │ │ └── navi_page.dart │ ├── home │ │ ├── vm │ │ │ ├── drawer_vm.dart │ │ │ └── home_vm.dart │ │ ├── widgets │ │ │ ├── article_item_widget.dart │ │ │ └── auto_scroll_banner.dart │ │ └── pages │ │ │ ├── drawer_page.dart │ │ │ └── home_page.dart │ ├── wx │ │ ├── wx_page.dart │ │ ├── wx_article_list_vm.dart │ │ ├── wx_vm.dart │ │ └── wx_article_list_page.dart │ ├── setting │ │ └── setting_page.dart │ ├── account │ │ ├── register_page.dart │ │ ├── login_page.dart │ │ └── account_vm.dart │ └── browser │ │ └── browser_page.dart ├── data │ └── model │ │ ├── account_login.dart │ │ ├── account_register.dart │ │ ├── integral.dart │ │ ├── home_banner_info.dart │ │ ├── wx_article_list.dart │ │ ├── account_info.dart │ │ ├── wx_account_info.dart │ │ ├── study_system_info.dart │ │ ├── base_response.dart │ │ ├── navi_info.dart │ │ └── home_article_info.dart ├── main.dart ├── widgets │ ├── keep_alive_wrapper.dart │ └── custom_dialog.dart └── const │ └── themes.dart ├── README.md ├── .gitignore ├── .metadata ├── pubspec.yaml ├── analysis_options.yaml └── pubspec.lock /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/assets/images/icon.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /assets/images/ic_nav_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/assets/images/ic_nav_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Van♂Android 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-v21/background.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-hdpi/android12splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-mdpi/android12splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-xhdpi/android12splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-xxhdpi/android12splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-xxxhdpi/android12splash.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night-hdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-night-hdpi/android12splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night-mdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-night-mdpi/android12splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night-xhdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-night-xhdpi/android12splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night-xxhdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coder-pig/van_android_getx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /lib/core/utils/sp_utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:get_storage/get_storage.dart'; 2 | 3 | class SPUtil { 4 | static GetStorage _sp() => GetStorage("my_sp"); 5 | final cookies = ''.val("Cookie", getBox: _sp); 6 | } -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/cn/coderpig/van_android_getx/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package cn.coderpig.van_android_getx 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 6 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/xml/network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/theme_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/const/themes.dart'; 4 | 5 | class ThemeVM extends GetxController { 6 | var currentTheme = leiMuBlueTheme.obs; 7 | 8 | void changeTheme(ThemeData theme) { 9 | currentTheme.value = theme; 10 | } 11 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/core/utils/color_utils.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'package:flutter/material.dart'; 3 | 4 | // 获取一个随机颜色值 5 | Color getRandomColor() { 6 | final Random random = Random(); 7 | return Color.fromRGBO( 8 | random.nextInt(256), // Red 9 | random.nextInt(256), // Green 10 | random.nextInt(256), // Blue 11 | 1, // Alpha 12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /lib/features/main/main_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class MainVM extends GetxController { 5 | var tabIndex = 0.obs; 6 | var mainPageController = PageController(initialPage: 0); 7 | 8 | @override 9 | void onClose() { 10 | mainPageController.dispose(); 11 | super.onClose(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "background.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/data/model/account_login.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'account_login.g.dart'; 4 | 5 | 6 | @JsonSerializable() 7 | class AccountLoginReq { 8 | final String username; 9 | final String password; 10 | 11 | AccountLoginReq(this.username, this.password); 12 | 13 | factory AccountLoginReq.fromJson(Map srcJson) => _$AccountLoginReqFromJson(srcJson); 14 | 15 | Map toJson() => _$AccountLoginReqToJson(this); 16 | 17 | } -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "LaunchImage.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "LaunchImage@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "LaunchImage@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/data/model/account_register.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'account_register.g.dart'; 4 | 5 | 6 | @JsonSerializable() 7 | class AccountRegisterReq { 8 | final String username; 9 | final String password; 10 | final String repassword; 11 | 12 | AccountRegisterReq(this.username, this.password, this.repassword); 13 | 14 | factory AccountRegisterReq.fromJson(Map srcJson) => _$AccountRegisterReqFromJson(srcJson); 15 | 16 | Map toJson() => _$AccountRegisterReqToJson(this); 17 | 18 | } -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:get_storage/get_storage.dart'; 4 | import 'package:van_android_getx/features/main/main_bindings.dart'; 5 | import 'package:van_android_getx/theme_vm.dart'; 6 | import 'features/main/main_page.dart'; 7 | 8 | void main() async { 9 | await GetStorage.init(); // 初始化GetStorage 10 | final themeVM = Get.put(ThemeVM()); 11 | runApp(Obx( 12 | () => GetMaterialApp(theme: themeVM.currentTheme.value, initialBinding: MainBindings(), home: const MainPage()))); 13 | } 14 | -------------------------------------------------------------------------------- /lib/features/main/main_bindings.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | import 'package:get_storage/get_storage.dart'; 3 | import 'package:van_android_getx/core/services/api/api_client.dart'; 4 | import 'package:van_android_getx/features/account/account_vm.dart'; 5 | 6 | import 'main_vm.dart'; 7 | 8 | /// 首页的依赖注入绑定 9 | class MainBindings extends Bindings { 10 | @override 11 | void dependencies() { 12 | Get.lazyPut(() => GetStorage()); 13 | Get.lazyPut(() => ApiClient()); 14 | Get.lazyPut(() => MainVM()); 15 | Get.lazyPut(() => AccountVM()); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/features/other/other_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'navi_page.dart'; 4 | import 'study_system_page.dart'; 5 | 6 | class OtherPage extends StatelessWidget { 7 | const OtherPage({super.key}); 8 | 9 | @override 10 | Widget build(BuildContext context) => const DefaultTabController( 11 | length: 2, 12 | child: Column( 13 | children: [ 14 | TabBar(tabs: [Tab(text: "网站导航"), Tab(text: "学习体系")]), 15 | Expanded(child: TabBarView(children: [NaviPage(), StudySystemPage()])) 16 | ], 17 | )); 18 | } 19 | -------------------------------------------------------------------------------- /lib/core/services/api/exceptions.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | import 'package:van_android_getx/features/account/login_page.dart'; 3 | 4 | /// 自定义请求异常父类 5 | class ApiException implements Exception { 6 | final int? code; 7 | final String? message; 8 | String? stackInfo; 9 | 10 | ApiException([this.code, this.message]); 11 | 12 | factory ApiException.from(dynamic exception) { 13 | if (exception is ApiException) { 14 | return exception; 15 | } else { 16 | throw exception; 17 | return ApiException(-1, "未知错误")..stackInfo = exception.toString(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # van_android_getx 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /lib/widgets/keep_alive_wrapper.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class KeepAliveWrapper extends StatefulWidget { 4 | final Widget child; 5 | 6 | const KeepAliveWrapper({Key? key, required this.child}) : super(key: key); 7 | 8 | @override 9 | State createState() => _KeepAliveWrapperState(); 10 | } 11 | 12 | class _KeepAliveWrapperState extends State with AutomaticKeepAliveClientMixin { 13 | @override 14 | Widget build(BuildContext context) { 15 | super.build(context); 16 | return widget.child; 17 | } 18 | 19 | @override 20 | bool get wantKeepAlive => true; 21 | } 22 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.7.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 10 | } 11 | } 12 | 13 | allprojects { 14 | repositories { 15 | google() 16 | mavenCentral() 17 | } 18 | } 19 | 20 | rootProject.buildDir = '../build' 21 | subprojects { 22 | project.buildDir = "${rootProject.buildDir}/${project.name}" 23 | } 24 | subprojects { 25 | project.evaluationDependsOn(':app') 26 | } 27 | 28 | tasks.register("clean", Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /lib/data/model/integral.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'integral.g.dart'; 4 | 5 | @JsonSerializable() 6 | class Integral extends Object { 7 | @JsonKey(name: 'coinCount') 8 | int coinCount; 9 | 10 | @JsonKey(name: 'rank') 11 | String rank; 12 | 13 | @JsonKey(name: 'userId') 14 | int userId; 15 | 16 | @JsonKey(name: 'username') 17 | String username; 18 | 19 | Integral( 20 | this.coinCount, 21 | this.rank, 22 | this.userId, 23 | this.username, 24 | ); 25 | 26 | factory Integral.fromJson(Map srcJson) => _$IntegralFromJson(srcJson); 27 | 28 | Map toJson() => _$IntegralToJson(this); 29 | } 30 | -------------------------------------------------------------------------------- /lib/features/home/vm/drawer_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | import 'package:van_android_getx/core/services/api/van_api.dart'; 3 | import 'package:van_android_getx/core/utils/toast_utils.dart'; 4 | import 'package:van_android_getx/features/account/account_vm.dart'; 5 | 6 | class DrawerVm extends GetxController { 7 | 8 | // 查询积分 9 | Future fetchCoin() async { 10 | final result = await VanApi.requestCoin(); 11 | if (result.error == null) { 12 | Get.find().accountInfo.update((accountInfo) { 13 | accountInfo?.coinCount = result.data!.coinCount; 14 | showToast(msg: "积分刷新成功"); 15 | }); 16 | } else { 17 | showToast(msg: result.errorMsg); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /lib/core/utils/toast_utils.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:fluttertoast/fluttertoast.dart'; 5 | 6 | /// Toast工具类 7 | /// Android 11 或以上的版本只有[msg]和[toastLength]属性会生效,其它属性会被忽略 8 | void showToast({ 9 | required String msg, 10 | Toast toastLength = Toast.LENGTH_SHORT, 11 | ToastGravity gravity = ToastGravity.BOTTOM, 12 | Color backgroundColor = Colors.black54, 13 | Color textColor = Colors.white, 14 | double fontSize = 16.0, 15 | }) { 16 | Fluttertoast.showToast( 17 | msg: msg, 18 | toastLength: toastLength, 19 | gravity: gravity, 20 | backgroundColor: backgroundColor, 21 | textColor: textColor, 22 | fontSize: fontSize); 23 | } 24 | -------------------------------------------------------------------------------- /lib/features/other/navi_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/core/services/api/van_api.dart'; 4 | import 'package:van_android_getx/core/utils/toast_utils.dart'; 5 | import 'package:van_android_getx/data/model/navi_info.dart'; 6 | 7 | class NaviVM extends GetxController { 8 | var naviInfoItems = List.empty(growable: true).obs; 9 | 10 | // 拉取导航数据 11 | Future fetchNavi() async { 12 | var result = await VanApi.navi(); 13 | if (result.error == null) { 14 | naviInfoItems.addAll(result.data ?? []); 15 | } else { 16 | showToast(msg: result.errorMsg); 17 | } 18 | } 19 | 20 | @override 21 | void onInit() { 22 | super.onInit(); 23 | WidgetsBinding.instance.addPostFrameCallback((_) { 24 | fetchNavi(); 25 | }); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/const/themes.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const Color leiMuBlue = Color(0xFF5A78EA); 4 | 5 | final ThemeData leiMuBlueTheme = ThemeData.light().copyWith( 6 | primaryColor: leiMuBlue, 7 | colorScheme: ColorScheme.fromSeed(seedColor: leiMuBlue), 8 | appBarTheme: const AppBarTheme( 9 | backgroundColor: leiMuBlue, 10 | titleTextStyle: TextStyle( 11 | color: Colors.white, 12 | fontSize: 20, 13 | ), 14 | ), 15 | ); 16 | 17 | const Color laMuPink = Color(0xFFFFB6C1); 18 | 19 | final ThemeData laMuPinkTheme = ThemeData.light().copyWith( 20 | primaryColor: laMuPink, 21 | colorScheme: ColorScheme.fromSeed(seedColor: laMuPink), 22 | appBarTheme: const AppBarTheme( 23 | backgroundColor: laMuPink, 24 | titleTextStyle: TextStyle( 25 | color: Colors.white, 26 | fontSize: 20, 27 | ), 28 | ), 29 | ); 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Symbolication related 35 | app.*.symbols 36 | 37 | # Obfuscation related 38 | app.*.map.json 39 | 40 | # Android Studio will place build artifacts here 41 | /android/app/debug 42 | /android/app/profile 43 | /android/app/release 44 | *.g.dart 45 | 46 | -------------------------------------------------------------------------------- /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 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/features/other/study_system_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/core/services/api/van_api.dart'; 4 | import 'package:van_android_getx/core/utils/toast_utils.dart'; 5 | import 'package:van_android_getx/data/model/study_system_info.dart'; 6 | 7 | class StudySystemVM extends GetxController { 8 | var studySystemItems = List.empty(growable: true).obs; 9 | 10 | // 拉取导航数据 11 | Future fetchStudySystem() async { 12 | var result = await VanApi.studySystem(); 13 | if (result.error == null) { 14 | studySystemItems.addAll(result.data ?? []); 15 | } else { 16 | showToast(msg: result.errorMsg); 17 | } 18 | } 19 | 20 | @override 21 | void onInit() { 22 | super.onInit(); 23 | WidgetsBinding.instance.addPostFrameCallback((_) { 24 | fetchStudySystem(); 25 | }); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/data/model/home_banner_info.dart: -------------------------------------------------------------------------------- 1 | 2 | 3 | import 'package:json_annotation/json_annotation.dart'; 4 | 5 | part 'home_banner_info.g.dart'; 6 | 7 | @JsonSerializable() 8 | class HomeBannerInfo { 9 | 10 | @JsonKey(name: 'desc') 11 | String desc; 12 | 13 | @JsonKey(name: 'id') 14 | int id; 15 | 16 | @JsonKey(name: 'imagePath') 17 | String imagePath; 18 | 19 | @JsonKey(name: 'isVisible') 20 | int isVisible; 21 | 22 | @JsonKey(name: 'order') 23 | int order; 24 | 25 | @JsonKey(name: 'title') 26 | String title; 27 | 28 | @JsonKey(name: 'type') 29 | int type; 30 | 31 | @JsonKey(name: 'url') 32 | String url; 33 | 34 | HomeBannerInfo(this.desc,this.id,this.imagePath,this.isVisible,this.order,this.title,this.type,this.url,); 35 | 36 | factory HomeBannerInfo.fromJson(Map srcJson) => _$HomeBannerInfoFromJson(srcJson); 37 | 38 | Map toJson() => _$HomeBannerInfoToJson(this); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | } 9 | settings.ext.flutterSdkPath = flutterSdkPath() 10 | 11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") 12 | 13 | repositories { 14 | google() 15 | mavenCentral() 16 | gradlePluginPortal() 17 | } 18 | 19 | plugins { 20 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false 21 | } 22 | } 23 | 24 | plugins { 25 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 26 | id "com.android.application" version "7.3.0" apply false 27 | } 28 | 29 | include ":app" 30 | -------------------------------------------------------------------------------- /lib/features/main/widget/index_container_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/features/home/pages/home_page.dart'; 4 | import 'package:van_android_getx/features/wx/wx_page.dart'; 5 | import 'package:van_android_getx/widgets/keep_alive_wrapper.dart'; 6 | 7 | import '../../other/other_page.dart'; 8 | import '../main_vm.dart'; 9 | 10 | class IndexContainerWidget extends StatelessWidget { 11 | const IndexContainerWidget({super.key}); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | final MainVM vm = Get.find(); 16 | return Expanded( 17 | child: PageView( 18 | controller: vm.mainPageController, 19 | onPageChanged: (index) { 20 | vm.tabIndex.value = index; 21 | }, 22 | children: const [ 23 | KeepAliveWrapper(child: HomePage()), 24 | KeepAliveWrapper(child: WxPage()), 25 | KeepAliveWrapper(child: OtherPage()), 26 | ])); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/features/wx/wx_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/features/wx/wx_article_list_page.dart'; 4 | import 'package:van_android_getx/features/wx/wx_vm.dart'; 5 | 6 | class WxPage extends StatelessWidget { 7 | const WxPage({super.key}); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | var vm = Get.put(WxVM()); 12 | return Obx(() { 13 | // 判断有数据才初始化Tab 14 | if (vm.wxAccounts.isEmpty) { 15 | return Container(); 16 | } else { 17 | return Column(children: [ 18 | TabBar( 19 | isScrollable: true, //设置为可以滚动,不然会显示补全 20 | tabs: vm.wxAccounts.map((e) => e.name).toList().map((e) => Tab(text: e)).toList(), 21 | controller: vm.tabController, 22 | ), 23 | Expanded( 24 | child: TabBarView( 25 | controller: vm.tabController, 26 | children: vm.wxAccounts.map((e) => e.id).map((id) => WxArticleListPage(wxId: id!)).toList())), 27 | ]); 28 | } 29 | }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/features/main/main_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:van_android_getx/widgets/custom_dialog.dart'; 4 | 5 | import '../home/pages/drawer_page.dart'; 6 | import 'widget/index_bottom_bar_widget.dart'; 7 | import 'widget/index_container_widget.dart'; 8 | 9 | class MainPage extends StatelessWidget { 10 | const MainPage({super.key}); 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return PopScope( 15 | canPop: false, 16 | onPopInvoked: (didPop) async { 17 | if (didPop) { 18 | return; 19 | } else { 20 | final bool shouldPop = await showExitConfirmDialog(); 21 | if (shouldPop) { 22 | SystemNavigator.pop(); 23 | } 24 | } 25 | }, 26 | child: Scaffold( 27 | appBar: AppBar(title: const Text("Van ♂ Android")), 28 | body: const Column( 29 | children: [ 30 | IndexContainerWidget(), 31 | IndexBottomBarWidget(), 32 | ], 33 | ), 34 | drawer: const DrawerPage())); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /lib/features/wx/wx_article_list_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/core/services/api/van_api.dart'; 4 | import 'package:van_android_getx/core/utils/toast_utils.dart'; 5 | import 'package:van_android_getx/data/model/home_article_info.dart'; 6 | 7 | class WxArticleListVM extends GetxController { 8 | final int wxId; // 微信公众号ID 9 | WxArticleListVM(this.wxId); 10 | 11 | // 文章列表 12 | var articleInfoItems = List.empty(growable: true).obs; 13 | var currentPage = 0; // 当前页数 14 | 15 | // 拉取文章 16 | Future fetchArticleList({bool? isRefresh = false}) async { 17 | if (isRefresh == true) { 18 | currentPage = 0; 19 | articleInfoItems.clear(); 20 | } else { 21 | currentPage++; 22 | } 23 | var result = await VanApi.wxArticleList(wxId, currentPage); 24 | if (result.error == null) { 25 | articleInfoItems.addAll((result.data?.datas ?? [])); 26 | } else { 27 | showToast(msg: result.errorMsg); 28 | } 29 | } 30 | 31 | @override 32 | void onInit() { 33 | super.onInit(); 34 | WidgetsBinding.instance.addPostFrameCallback((_) { 35 | fetchArticleList(); 36 | }); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /.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: "7f20e5d18ce4cb80c621533090a7c5113f5bdc52" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 7f20e5d18ce4cb80c621533090a7c5113f5bdc52 17 | base_revision: 7f20e5d18ce4cb80c621533090a7c5113f5bdc52 18 | - platform: android 19 | create_revision: 7f20e5d18ce4cb80c621533090a7c5113f5bdc52 20 | base_revision: 7f20e5d18ce4cb80c621533090a7c5113f5bdc52 21 | - platform: ios 22 | create_revision: 7f20e5d18ce4cb80c621533090a7c5113f5bdc52 23 | base_revision: 7f20e5d18ce4cb80c621533090a7c5113f5bdc52 24 | 25 | # User provided section 26 | 27 | # List of Local paths (relative to this file) that should be 28 | # ignored by the migrate tool. 29 | # 30 | # Files that are not part of the templates will be ignored by default. 31 | unmanaged_files: 32 | - 'lib/main.dart' 33 | - 'ios/Runner.xcodeproj/project.pbxproj' 34 | -------------------------------------------------------------------------------- /lib/features/wx/wx_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/core/services/api/van_api.dart'; 4 | import 'package:van_android_getx/core/utils/toast_utils.dart'; 5 | import 'package:van_android_getx/data/model/wx_account_info.dart'; 6 | 7 | class WxVM extends GetxController with GetSingleTickerProviderStateMixin { 8 | TabController? tabController; 9 | var wxAccounts = List.empty(growable: true).obs; 10 | 11 | @override 12 | void onInit() { 13 | super.onInit(); 14 | WidgetsBinding.instance.addPostFrameCallback((_) { 15 | fetchWXAccounts(); 16 | }); 17 | } 18 | 19 | // 拉取公众号列表 20 | Future fetchWXAccounts({bool? isRefresh = false}) async { 21 | var result = await VanApi.wxAccounts(); 22 | if (result.error == null) { 23 | wxAccounts.addAll(result.data ?? []); 24 | tabController = TabController(length: wxAccounts.length, vsync: this); 25 | tabController?.addListener(() { 26 | if (!tabController!.indexIsChanging) {} 27 | }); 28 | } else { 29 | showToast(msg: result.errorMsg); 30 | } 31 | } 32 | 33 | @override 34 | void onClose() { 35 | tabController?.dispose(); 36 | super.onClose(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: van_android_getx 2 | description: "A new Flutter project." 3 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 4 | 5 | version: 1.0.0+1 6 | 7 | environment: 8 | sdk: '>=3.2.1 <4.0.0' 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | 14 | cupertino_icons: ^1.0.2 15 | get: ^4.6.6 16 | fluttertoast: ^8.2.5 17 | shared_preferences: ^2.2.3 18 | logger: ^2.3.0 19 | json_annotation: ^4.9.0 20 | get_storage: ^2.1.1 21 | url_launcher: ^6.2.2 22 | flutter_inappwebview: ^6.0.0 23 | cached_network_image: ^3.3.0 24 | 25 | 26 | dev_dependencies: 27 | flutter_test: 28 | sdk: flutter 29 | flutter_launcher_icons: ^0.13.1 # 图标生成插件 30 | flutter_native_splash: ^2.3.8 # 自定义启动页 31 | flutter_lints: ^2.0.0 32 | build_runner: ^2.4.7 33 | json_serializable: ^6.7.1 34 | 35 | flutter_icons: 36 | image_path: "assets/images/icon.png" 37 | android: "ic_launcher" # 指定生成的图标名 38 | ios: true # iOS是否也生成图标 39 | 40 | flutter_native_splash: 41 | color: "79B4EB" 42 | image: assets/images/icon.png 43 | android: true 44 | android_gravity: center 45 | ios: true 46 | android_12: 47 | image: assets/images/icon.png 48 | 49 | flutter: 50 | uses-material-design: true 51 | assets: 52 | - assets/images/ 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-v31/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 18 | 21 | 22 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night-v31/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 18 | 21 | 22 | -------------------------------------------------------------------------------- /lib/features/main/widget/index_bottom_bar_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import '../main_vm.dart'; 5 | 6 | class IndexBottomBarWidget extends StatelessWidget { 7 | const IndexBottomBarWidget({super.key}); 8 | 9 | @override 10 | Widget build(BuildContext context) => GetX(builder: (vm) { 11 | // BottomNavigationBar 切换选中的tab需要触发刷新,所以要可观察组件包裹 12 | return BottomNavigationBar( 13 | type: BottomNavigationBarType.fixed, 14 | onTap: (index) { 15 | vm.tabIndex.value = index; 16 | vm.mainPageController.jumpToPage(index); 17 | }, 18 | // 选中时的颜色 19 | selectedItemColor: Theme.of(context).primaryColor, 20 | // 未选中时的颜色 21 | unselectedItemColor: Colors.grey, 22 | // 选中的label是否展示 23 | showSelectedLabels: true, 24 | // 未选中的label是否展示 25 | showUnselectedLabels: true, 26 | // 当前选中Tab的下标 27 | currentIndex: vm.tabIndex.value, 28 | items: const [ 29 | BottomNavigationBarItem(icon: Icon(Icons.home), label: '首页'), 30 | BottomNavigationBarItem(icon: Icon(Icons.article), label: '公众号'), 31 | BottomNavigationBarItem(icon: Icon(Icons.heart_broken), label: '其它'), 32 | ], 33 | ); 34 | }); 35 | } 36 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 19 | 22 | 23 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 19 | 22 | 23 | -------------------------------------------------------------------------------- /lib/data/model/wx_article_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | import 'dart:convert'; 3 | 4 | import 'package:van_android_getx/data/model/home_article_info.dart'; 5 | 6 | part 'wx_article_list.g.dart'; 7 | 8 | @JsonSerializable() 9 | class WxArticleList { 10 | @JsonKey(name: "curPage") 11 | int? curPage; 12 | @JsonKey(name: "datas") 13 | List? datas; 14 | @JsonKey(name: "offset") 15 | int? offset; 16 | @JsonKey(name: "over") 17 | bool? over; 18 | @JsonKey(name: "pageCount") 19 | int? pageCount; 20 | @JsonKey(name: "size") 21 | int? size; 22 | @JsonKey(name: "total") 23 | int? total; 24 | 25 | WxArticleList({ 26 | this.curPage, 27 | this.datas, 28 | this.offset, 29 | this.over, 30 | this.pageCount, 31 | this.size, 32 | this.total, 33 | }); 34 | 35 | factory WxArticleList.fromJson(Map json) => _$WxArticleListFromJson(json); 36 | 37 | Map toJson() => _$WxArticleListToJson(this); 38 | } 39 | 40 | @JsonSerializable() 41 | class Tag { 42 | @JsonKey(name: "name") 43 | String? name; 44 | @JsonKey(name: "url") 45 | String? url; 46 | 47 | Tag({ 48 | this.name, 49 | this.url, 50 | }); 51 | 52 | factory Tag.fromJson(Map json) => _$TagFromJson(json); 53 | 54 | Map toJson() => _$TagToJson(this); 55 | } 56 | 57 | -------------------------------------------------------------------------------- /lib/data/model/account_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | import 'dart:convert'; 3 | 4 | part 'account_info.g.dart'; 5 | 6 | 7 | @JsonSerializable() 8 | class AccountInfo { 9 | @JsonKey(name: "admin") 10 | bool? admin; 11 | @JsonKey(name: "chapterTops") 12 | List? chapterTops; 13 | @JsonKey(name: "coinCount") 14 | int? coinCount; 15 | @JsonKey(name: "collectIds") 16 | List? collectIds; 17 | @JsonKey(name: "email") 18 | String? email; 19 | @JsonKey(name: "icon") 20 | String? icon; 21 | @JsonKey(name: "id") 22 | int? id; 23 | @JsonKey(name: "nickname") 24 | String? nickname; 25 | @JsonKey(name: "password") 26 | String? password; 27 | @JsonKey(name: "publicName") 28 | String? publicName; 29 | @JsonKey(name: "token") 30 | String? token; 31 | @JsonKey(name: "type") 32 | int? type; 33 | @JsonKey(name: "username") 34 | String? username; 35 | 36 | AccountInfo({ 37 | this.admin, 38 | this.chapterTops, 39 | this.coinCount, 40 | this.collectIds, 41 | this.email, 42 | this.icon, 43 | this.id, 44 | this.nickname, 45 | this.password, 46 | this.publicName, 47 | this.token, 48 | this.type, 49 | this.username, 50 | }); 51 | 52 | factory AccountInfo.fromJson(Map json) => _$AccountInfoFromJson(json); 53 | 54 | Map toJson() => _$AccountInfoToJson(this); 55 | } 56 | -------------------------------------------------------------------------------- /lib/features/setting/setting_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/const/themes.dart'; 4 | import 'package:van_android_getx/theme_vm.dart'; 5 | 6 | class SettingPage extends StatelessWidget { 7 | const SettingPage({super.key}); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | final vm = Get.find(); 12 | return Scaffold( 13 | appBar: AppBar( 14 | title: const Text('系统设置'), 15 | ), 16 | body: Column( 17 | children: [ 18 | Row( 19 | children: [ 20 | Icon( 21 | Icons.color_lens, 22 | color: Theme.of(context).primaryColor, 23 | ), 24 | const Text("主题切换") 25 | ], 26 | ), 27 | Row( 28 | children: [ 29 | GestureDetector( 30 | child: Container(width: 48, height: 48, color: leiMuBlue), 31 | onTap: () { 32 | vm.changeTheme(leiMuBlueTheme); 33 | }, 34 | ), 35 | const SizedBox(width: 10), 36 | GestureDetector( 37 | child: Container(width: 48, height: 48, color: laMuPink), 38 | onTap: () { 39 | vm.changeTheme(laMuPinkTheme); 40 | }, 41 | ), 42 | ], 43 | ) 44 | ], 45 | ), 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /lib/data/model/wx_account_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'wx_account_info.g.dart'; 4 | 5 | @JsonSerializable() 6 | class WxAccountInfo { 7 | @JsonKey(name: "articleList") 8 | List? articleList; 9 | @JsonKey(name: "author") 10 | String? author; 11 | @JsonKey(name: "children") 12 | List? children; 13 | @JsonKey(name: "courseId") 14 | int? courseId; 15 | @JsonKey(name: "cover") 16 | String? cover; 17 | @JsonKey(name: "desc") 18 | String? desc; 19 | @JsonKey(name: "id") 20 | int? id; 21 | @JsonKey(name: "lisense") 22 | String? lisense; 23 | @JsonKey(name: "lisenseLink") 24 | String? lisenseLink; 25 | @JsonKey(name: "name") 26 | String? name; 27 | @JsonKey(name: "order") 28 | int? order; 29 | @JsonKey(name: "parentChapterId") 30 | int? parentChapterId; 31 | @JsonKey(name: "type") 32 | int? type; 33 | @JsonKey(name: "userControlSetTop") 34 | bool? userControlSetTop; 35 | @JsonKey(name: "visible") 36 | int? visible; 37 | 38 | WxAccountInfo({ 39 | this.articleList, 40 | this.author, 41 | this.children, 42 | this.courseId, 43 | this.cover, 44 | this.desc, 45 | this.id, 46 | this.lisense, 47 | this.lisenseLink, 48 | this.name, 49 | this.order, 50 | this.parentChapterId, 51 | this.type, 52 | this.userControlSetTop, 53 | this.visible, 54 | }); 55 | 56 | factory WxAccountInfo.fromJson(Map json) => _$WxAccountInfoFromJson(json); 57 | 58 | Map toJson() => _$WxAccountInfoToJson(this); 59 | } 60 | -------------------------------------------------------------------------------- /lib/data/model/study_system_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'study_system_info.g.dart'; 4 | 5 | @JsonSerializable() 6 | class StudySystemInfo { 7 | @JsonKey(name: "articleList") 8 | List? articleList; 9 | @JsonKey(name: "author") 10 | String? author; 11 | @JsonKey(name: "children") 12 | List? children; 13 | @JsonKey(name: "courseId") 14 | int? courseId; 15 | @JsonKey(name: "cover") 16 | String? cover; 17 | @JsonKey(name: "desc") 18 | String? desc; 19 | @JsonKey(name: "id") 20 | int? id; 21 | @JsonKey(name: "lisense") 22 | String? lisense; 23 | @JsonKey(name: "lisenseLink") 24 | String? lisenseLink; 25 | @JsonKey(name: "name") 26 | String? name; 27 | @JsonKey(name: "order") 28 | int? order; 29 | @JsonKey(name: "parentChapterId") 30 | int? parentChapterId; 31 | @JsonKey(name: "type") 32 | int? type; 33 | @JsonKey(name: "userControlSetTop") 34 | bool? userControlSetTop; 35 | @JsonKey(name: "visible") 36 | int? visible; 37 | 38 | StudySystemInfo({ 39 | this.articleList, 40 | this.author, 41 | this.children, 42 | this.courseId, 43 | this.cover, 44 | this.desc, 45 | this.id, 46 | this.lisense, 47 | this.lisenseLink, 48 | this.name, 49 | this.order, 50 | this.parentChapterId, 51 | this.type, 52 | this.userControlSetTop, 53 | this.visible, 54 | }); 55 | 56 | factory StudySystemInfo.fromJson(Map json) => _$StudySystemInfoFromJson(json); 57 | 58 | Map toJson() => _$StudySystemInfoToJson(this); 59 | } 60 | -------------------------------------------------------------------------------- /lib/widgets/custom_dialog.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | /// 展示一个Loading对话框 5 | void showLoadingDialog({bool canPop = true}) { 6 | Get.dialog( 7 | WillPopScope( 8 | onWillPop: () async => canPop, // 根据canPop参数决定是否允许关闭对话框 9 | child: Center( 10 | child: SizedBox( 11 | width: 100, 12 | height: 100, 13 | child: Card( 14 | color: Colors.white, 15 | child: Column( 16 | mainAxisAlignment: MainAxisAlignment.center, 17 | crossAxisAlignment: CrossAxisAlignment.center, 18 | children: [ 19 | // 指定一个固定不变的颜色 20 | CircularProgressIndicator(valueColor: AlwaysStoppedAnimation(Get.theme.primaryColor)), 21 | ], 22 | ), 23 | ), 24 | ), 25 | )), 26 | barrierDismissible: false); 27 | } 28 | 29 | /// 展示一个退出App的确认弹窗 30 | Future showExitConfirmDialog() async => 31 | await Get.dialog( 32 | AlertDialog( 33 | title: const Text('退出应用'), 34 | content: const Text('你确定要退出应用吗?'), 35 | actions: [ 36 | TextButton( 37 | onPressed: () => Get.back(result: false), // 不退出应用 38 | child: const Text('取消'), 39 | ), 40 | TextButton( 41 | onPressed: () => Get.back(result: true), // 确认退出应用 42 | child: const Text('确定'), 43 | ), 44 | ], 45 | ), 46 | ) ?? 47 | false; // 防止点击对话框外部时返回null 48 | -------------------------------------------------------------------------------- /lib/features/home/vm/home_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/core/services/api/van_api.dart'; 4 | import 'package:van_android_getx/core/utils/toast_utils.dart'; 5 | import 'package:van_android_getx/data/model/home_article_info.dart'; 6 | import 'package:van_android_getx/data/model/home_banner_info.dart'; 7 | 8 | class HomeVM extends GetxController { 9 | // Banner 10 | var bannerItems = List.empty(growable: true).obs; 11 | 12 | // 文章 13 | var homeArticleInfoItems = List.empty(growable: true).obs; 14 | var currentPage = 0; // 当前页数 15 | 16 | // 拉取Banner 17 | Future fetchHomeBanner() async { 18 | var result = await VanApi.homeBanner(); 19 | if (result.error == null) { 20 | bannerItems.value = result.data ?? []; 21 | } else { 22 | showToast(msg: result.errorMsg); 23 | } 24 | } 25 | 26 | // 拉取文章 27 | Future fetchArticleList({bool? isRefresh = false}) async { 28 | if (isRefresh == true) { 29 | currentPage = 0; 30 | homeArticleInfoItems.clear(); 31 | } else { 32 | currentPage++; 33 | } 34 | var result = await VanApi.homeArticleList(currentPage); 35 | if (result.error == null) { 36 | homeArticleInfoItems.addAll((result.data?.datas ?? [])); 37 | } else { 38 | showToast(msg: result.errorMsg); 39 | } 40 | } 41 | 42 | @override 43 | void onInit() { 44 | super.onInit(); 45 | // 页面初始化的时候拉下数据 46 | WidgetsBinding.instance.addPostFrameCallback((_) { 47 | fetchHomeBanner(); 48 | fetchArticleList(isRefresh: true); 49 | }); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/data/model/base_response.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:json_annotation/json_annotation.dart'; 3 | import 'package:van_android_getx/core/services/api/exceptions.dart'; 4 | 5 | part 'base_response.g.dart'; 6 | 7 | @JsonSerializable(genericArgumentFactories: true) 8 | class DataResponse { 9 | final T? data; 10 | final int errorCode; 11 | final String errorMsg; 12 | @JsonKey(includeFromJson: false, includeToJson: false) 13 | Map? headers; 14 | @JsonKey(includeFromJson: false, includeToJson: false) 15 | ApiException? error; 16 | 17 | DataResponse({required this.data, required this.errorCode, required this.errorMsg, this.headers, this.error}); 18 | 19 | // 使用泛型方法的工厂构造方法来创建一个响应实例 20 | factory DataResponse.fromJson(Map json, T Function(dynamic json) fromJsonT) => 21 | _$DataResponseFromJson(json, fromJsonT); 22 | 23 | // 使用泛型方法将实例转换为Json 24 | Map toJson(dynamic Function(T value) toJsonT) => _$DataResponseToJson(this, toJsonT); 25 | } 26 | 27 | // 如果Data是列表类型用这个 28 | @JsonSerializable(genericArgumentFactories: true) 29 | class ListResponse { 30 | final List? data; 31 | final int errorCode; 32 | final String errorMsg; 33 | @JsonKey(includeFromJson: false, includeToJson: false) 34 | Map? headers; 35 | @JsonKey(includeFromJson: false, includeToJson: false) 36 | ApiException? error; 37 | 38 | ListResponse({required this.data, required this.errorCode, required this.errorMsg, this.headers, this.error}); 39 | 40 | // 使用泛型方法的工厂构造方法来创建一个响应实例 41 | factory ListResponse.fromJson(Map json, T Function(dynamic json) fromJsonT) => 42 | _$ListResponseFromJson(json, fromJsonT); 43 | 44 | // 使用泛型方法将实例转换为Json 45 | Map toJson(dynamic Function(T value) toJsonT) => _$ListResponseToJson(this, toJsonT); 46 | } 47 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /lib/core/utils/logger_utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:logger/logger.dart'; 2 | 3 | /// 日志打印工具类 4 | class LogUtil { 5 | static const String _tag = "Van♂Android GetX"; 6 | static final _logger = Logger(printer: LongPrettyPrinter()); 7 | static bool isEnabled = true; // 控制日志开关的标记 8 | 9 | // 通用的日志打印方法 10 | static void _printLog(Function(dynamic message) logFunction, dynamic message) { 11 | if (isEnabled) logFunction("$_tag :: $message"); 12 | } 13 | 14 | static v(dynamic message) => _printLog(_logger.t, message); 15 | 16 | static d(dynamic message) => _printLog(_logger.d, message); 17 | 18 | static i(dynamic message) => _printLog(_logger.i, message); 19 | 20 | static w(dynamic message) => _printLog(_logger.w, message); 21 | 22 | static e(dynamic message) => _printLog(_logger.e, message); 23 | } 24 | 25 | // 自定义PrettyPrinter,对长消息进行分段,再合适位置插入换行符 26 | class LongPrettyPrinter extends PrettyPrinter { 27 | final int wrapLen; // 截断输出的标准长度 28 | LongPrettyPrinter({this.wrapLen = 1000}) : super(methodCount: 0); 29 | 30 | @override 31 | String stringifyMessage(message) { 32 | var originMsg = super.stringifyMessage(message); // 获得原始消息 33 | var newMsg = ""; // 处理后的消息 34 | var i = 0; // 索引 35 | // 循环直到消息的剩余部分小于等于wrapLen 36 | while (originMsg.length > i) { 37 | var nextWrapPoint = (i + wrapLen < originMsg.length) ? i + wrapLen : originMsg.length; 38 | var nextLineBreak = originMsg.lastIndexOf("\n", nextWrapPoint); 39 | // 如果在当前段内找到了换行符,使用该换行符作为分割点 40 | if (nextLineBreak > i) { 41 | newMsg += originMsg.substring(i, nextLineBreak + 1); 42 | i = nextLineBreak + 1; 43 | } else { 44 | // 否则,直接使用wrapLen作为分割点,并添加换行符 45 | newMsg += originMsg.substring(i, nextWrapPoint) + ((nextWrapPoint < originMsg.length) ? "\n" : ""); 46 | i = nextWrapPoint; 47 | } 48 | } 49 | return newMsg; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Van Android Getx 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | van_android_getx 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | UIStatusBarHidden 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /lib/features/home/widgets/article_item_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/features/browser/browser_page.dart'; 4 | 5 | import '../../../data/model/home_article_info.dart'; 6 | 7 | class ArticleItemWidget extends StatelessWidget { 8 | const ArticleItemWidget({super.key, required this.articleInfo}); 9 | 10 | final ArticleInfo articleInfo; 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return GestureDetector( 15 | child: Column( 16 | children: [ 17 | Container( 18 | padding: const EdgeInsets.all(12.0), 19 | alignment: Alignment.topLeft, 20 | child: Text( 21 | articleInfo.title, 22 | style: const TextStyle(fontSize: 16, color: Colors.black), 23 | )), 24 | const SizedBox(height: 4.0), 25 | Row( 26 | children: [ 27 | const SizedBox(width: 12.0), 28 | Expanded( 29 | child: Text( 30 | articleInfo.author, 31 | style: const TextStyle(fontSize: 12, color: Colors.grey), 32 | ), 33 | ), 34 | Text( 35 | articleInfo.superChapterName, 36 | style: const TextStyle(fontSize: 12, color: Colors.grey), 37 | ), 38 | const SizedBox(width: 12.0), 39 | Text( 40 | articleInfo.niceDate, 41 | style: const TextStyle(fontSize: 12, color: Colors.grey), 42 | ), 43 | const SizedBox(width: 12.0), 44 | ], 45 | ), 46 | const SizedBox(height: 8.0), 47 | const Divider(height: 1, color: Colors.grey, thickness: 0.5), 48 | ], 49 | ), 50 | onTap: () { 51 | Get.to(BrowserPage(url: articleInfo.link)); 52 | }, 53 | ); 54 | } 55 | } -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | id "dev.flutter.flutter-gradle-plugin" 5 | } 6 | 7 | def localProperties = new Properties() 8 | def localPropertiesFile = rootProject.file('local.properties') 9 | if (localPropertiesFile.exists()) { 10 | localPropertiesFile.withReader('UTF-8') { reader -> 11 | localProperties.load(reader) 12 | } 13 | } 14 | 15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 16 | if (flutterVersionCode == null) { 17 | flutterVersionCode = '1' 18 | } 19 | 20 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 21 | if (flutterVersionName == null) { 22 | flutterVersionName = '1.0' 23 | } 24 | 25 | android { 26 | namespace "cn.coderpig.van_android_getx" 27 | compileSdkVersion 34 28 | ndkVersion flutter.ndkVersion 29 | 30 | compileOptions { 31 | sourceCompatibility JavaVersion.VERSION_1_8 32 | targetCompatibility JavaVersion.VERSION_1_8 33 | } 34 | 35 | kotlinOptions { 36 | jvmTarget = '1.8' 37 | } 38 | 39 | sourceSets { 40 | main.java.srcDirs += 'src/main/kotlin' 41 | } 42 | 43 | defaultConfig { 44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 45 | applicationId "cn.coderpig.van_android_getx" 46 | // You can update the following values to match your application needs. 47 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 48 | minSdkVersion flutter.minSdkVersion 49 | targetSdkVersion flutter.targetSdkVersion 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | } 53 | 54 | buildTypes { 55 | release { 56 | // TODO: Add your own signing config for the release build. 57 | // Signing with the debug keys for now, so `flutter run --release` works. 58 | signingConfig signingConfigs.debug 59 | } 60 | } 61 | } 62 | 63 | flutter { 64 | source '../..' 65 | } 66 | 67 | dependencies {} 68 | -------------------------------------------------------------------------------- /lib/features/account/register_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/features/account/account_vm.dart'; 4 | 5 | class RegisterPage extends StatelessWidget { 6 | const RegisterPage({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | final AccountVM vm = Get.put(AccountVM()); 11 | return Scaffold( 12 | appBar: AppBar( 13 | title: const Text('注册页', style: TextStyle(color: Colors.white)), 14 | backgroundColor: Theme.of(context).primaryColor, 15 | iconTheme: const IconThemeData(color: Colors.white), 16 | ), 17 | body: Padding( 18 | padding: const EdgeInsets.all(16.0), 19 | child: Column( 20 | crossAxisAlignment: CrossAxisAlignment.stretch, 21 | children: [ 22 | TextField( 23 | controller: vm.registerUserNameController, 24 | decoration: const InputDecoration( 25 | labelText: '用户名', 26 | border: OutlineInputBorder(), 27 | ), 28 | ), 29 | const SizedBox(height: 20.0), 30 | TextField( 31 | controller: vm.registerPasswordController, 32 | decoration: const InputDecoration( 33 | labelText: '密码', 34 | border: OutlineInputBorder(), 35 | ), 36 | obscureText: true, 37 | ), 38 | const SizedBox(height: 20.0), 39 | TextField( 40 | controller: vm.registerReUserNameController, 41 | decoration: const InputDecoration( 42 | labelText: '确认密码', 43 | border: OutlineInputBorder(), 44 | ), 45 | obscureText: true, 46 | ), 47 | const SizedBox(height: 20.0), 48 | MaterialButton( 49 | onPressed: vm.register, 50 | color: Theme.of(context).primaryColor, 51 | textColor: Colors.white, 52 | padding: const EdgeInsets.symmetric(vertical: 16.0), 53 | child: const Text('注册'), 54 | ), 55 | ], 56 | ), 57 | ), 58 | ); 59 | } 60 | 61 | } -------------------------------------------------------------------------------- /lib/features/wx/wx_article_list_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/features/home/widgets/article_item_widget.dart'; 4 | import 'package:van_android_getx/features/wx/wx_article_list_vm.dart'; 5 | 6 | class WxArticleListPage extends StatelessWidget { 7 | final int wxId; 8 | 9 | const WxArticleListPage({super.key, required this.wxId}); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | var vm = Get.put(WxArticleListVM(wxId), tag: "$wxId"); 14 | var scrollController = ScrollController(); 15 | var showFab = false.obs; // 悬浮按钮是否显示的可观察变量 16 | return Scaffold( 17 | floatingActionButton: Obx(() => showFab.value 18 | ? FloatingActionButton( 19 | onPressed: () { 20 | scrollController.animateTo( 21 | 0, 22 | duration: const Duration(milliseconds: 300), 23 | curve: Curves.easeOut, 24 | ); 25 | }, 26 | child: const Icon(Icons.arrow_upward), 27 | ) 28 | : Container()), 29 | body: RefreshIndicator( 30 | onRefresh: () => vm.fetchArticleList(isRefresh: true), 31 | child: Obx(() { 32 | scrollController.addListener(() { 33 | // 根据滑动距离控制悬浮按钮的显示隐藏 34 | if (scrollController.position.pixels > 200) { 35 | showFab.value = true; 36 | } else if (scrollController.position.pixels <= 200) { 37 | showFab.value = false; 38 | } 39 | // 列表滑动到底部加载更多 40 | if (scrollController.position.pixels == scrollController.position.maxScrollExtent) { 41 | vm.fetchArticleList(); 42 | } 43 | }); 44 | return ListView.builder( 45 | controller: scrollController, 46 | // 列表长度为数据长度+1,0用来显示Banner 47 | itemCount: vm.articleInfoItems.length, 48 | itemBuilder: (context, index) { 49 | return ArticleItemWidget(articleInfo: vm.articleInfoItems[index]); 50 | }); 51 | }))); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/features/account/login_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/features/account/account_vm.dart'; 4 | 5 | import 'register_page.dart'; 6 | 7 | class LoginPage extends StatelessWidget { 8 | const LoginPage({super.key}); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | final AccountVM vm = Get.find(); 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: const Text('登录页', style: TextStyle(color: Colors.white)), 16 | backgroundColor: Theme.of(context).primaryColor, 17 | iconTheme: const IconThemeData(color: Colors.white), 18 | ), 19 | body: Padding( 20 | padding: const EdgeInsets.all(16.0), 21 | child: Column( 22 | crossAxisAlignment: CrossAxisAlignment.stretch, 23 | children: [ 24 | TextField( 25 | controller: vm.loginUserNameController, 26 | decoration: const InputDecoration( 27 | labelText: '用户名', 28 | border: OutlineInputBorder(), 29 | ), 30 | ), 31 | const SizedBox(height: 20.0), 32 | TextField( 33 | controller: vm.loginPasswordController, 34 | decoration: const InputDecoration( 35 | labelText: '密码', 36 | border: OutlineInputBorder(), 37 | ), 38 | obscureText: true, 39 | ), 40 | const SizedBox(height: 20.0), 41 | MaterialButton( 42 | onPressed: vm.login, 43 | color: Theme.of(context).primaryColor, 44 | padding: const EdgeInsets.symmetric(vertical: 16.0), 45 | child: const Text('登录', style: TextStyle(color: Colors.white)), 46 | ), 47 | const SizedBox(height: 12.0), 48 | GestureDetector( 49 | child: Container( 50 | alignment: Alignment.center, 51 | padding: const EdgeInsets.symmetric(horizontal: 12.0, vertical: 12.0), 52 | child: const Text("去注册", style: TextStyle(color: Colors.grey)), 53 | ), 54 | onTap: () { 55 | // 跳转注册页,如果注册页返回true页关闭登录页 56 | Get.to(const RegisterPage())?.then((value) { 57 | if (value == true) Get.back(); 58 | }); 59 | }) 60 | ], 61 | ), 62 | ), 63 | ); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /lib/features/browser/browser_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:flutter_inappwebview/flutter_inappwebview.dart'; 4 | import 'package:get/get.dart'; 5 | import 'package:url_launcher/url_launcher.dart'; 6 | 7 | class BrowserPage extends StatelessWidget { 8 | const BrowserPage({super.key, required this.url}); 9 | 10 | final String url; 11 | 12 | // 复制URL到剪切板 13 | void _copyUrlToClipboard() { 14 | Clipboard.setData(ClipboardData(text: url)); 15 | Get.snackbar("提示", "链接已复制到剪贴板"); 16 | } 17 | 18 | // 跳转手机浏览器 19 | void _openBrowser() async { 20 | Uri uri = Uri.parse(url); 21 | if (await canLaunchUrl(uri)) { 22 | await launchUrl(uri); 23 | } else { 24 | throw 'Could not launch $uri'; 25 | } 26 | } 27 | 28 | @override 29 | Widget build(BuildContext context) { 30 | var isLoading = true.obs; // 网页是否正在加载中 31 | return Scaffold( 32 | appBar: AppBar( 33 | backgroundColor: Theme.of(context).primaryColor, 34 | title: const Text('Van ♂ Android'), 35 | leading: IconButton( 36 | icon: const Icon(Icons.arrow_back, color: Colors.white), 37 | onPressed: () { 38 | Navigator.pop(context); 39 | }, 40 | ), 41 | actions: [ 42 | IconButton( 43 | icon: const Icon(Icons.copy, color: Colors.white), 44 | onPressed: _copyUrlToClipboard, 45 | ), 46 | IconButton( 47 | icon: const Icon(Icons.open_in_browser, color: Colors.white), 48 | onPressed: _openBrowser, 49 | ), 50 | ], 51 | ), 52 | body: Stack( 53 | children: [ 54 | InAppWebView( 55 | initialUrlRequest: URLRequest(url: WebUri(url)), 56 | onLoadStart: (InAppWebViewController controller, Uri? url) { 57 | isLoading.value = true; // 页面开始加载,更新状态为 true 58 | }, 59 | // 页面停止加载时的回调 60 | onLoadStop: (InAppWebViewController controller, Uri? url) { 61 | isLoading.value = false; // 页面停止加载,更新状态为 false 62 | }, 63 | ), 64 | Obx(() { 65 | if (isLoading.value) { 66 | // 如果正在加载,则显示圆形进度指示器 67 | return const Center(child: CircularProgressIndicator()); 68 | } else { 69 | // 如果不是,则不显示任何内容 70 | return Container(); 71 | } 72 | }) 73 | ], 74 | ), 75 | ); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /lib/features/home/widgets/auto_scroll_banner.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:cached_network_image/cached_network_image.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class AutoScrollBannerWidget extends StatefulWidget { 7 | final List imageUrls; 8 | final Function(int pos) onTap; 9 | 10 | const AutoScrollBannerWidget({super.key, required this.imageUrls, required this.onTap}); 11 | 12 | @override 13 | State createState() => _AutoScrollBannerWidgetState(); 14 | } 15 | 16 | class _AutoScrollBannerWidgetState extends State { 17 | late PageController _pageController; 18 | late Timer _timer; 19 | int _currentPage = 0; 20 | 21 | @override 22 | void initState() { 23 | super.initState(); 24 | // 为了无限轮播,把_currentPage设置在一个较大的值 25 | _currentPage = widget.imageUrls.length * 10000; 26 | // 初始化页面控制器 27 | _pageController = PageController(initialPage: _currentPage); 28 | // 启动定时器,每3秒切换页面 29 | _timer = Timer.periodic(const Duration(seconds: 5), (Timer timer) { 30 | // 计算下个页面索引 31 | int nextPageIndex = _pageController.page!.toInt() + 1; 32 | if (_pageController.hasClients) { 33 | _pageController.animateToPage( 34 | nextPageIndex, 35 | duration: const Duration(milliseconds: 350), 36 | curve: Curves.easeIn, 37 | ); 38 | } 39 | }); 40 | } 41 | 42 | @override 43 | void dispose() { 44 | // 组件销毁时,取消定时器,释放资源 45 | _timer.cancel(); 46 | _pageController.dispose(); 47 | super.dispose(); 48 | } 49 | 50 | @override 51 | Widget build(BuildContext context) { 52 | return SizedBox( 53 | height: 200, 54 | width: double.infinity, 55 | child: widget.imageUrls.isNotEmpty 56 | ? PageView.builder( 57 | controller: _pageController, 58 | itemBuilder: (context, index) { 59 | // 取余获得真正有效的index 60 | var trueIndex = index % widget.imageUrls.length; 61 | return GestureDetector( 62 | onTap: () => widget.onTap(trueIndex), 63 | child: CachedNetworkImage( 64 | imageUrl: widget.imageUrls[trueIndex], 65 | placeholder: (context, url) => const Center(child: CircularProgressIndicator()), 66 | errorWidget: (context, url, error) => const Icon(Icons.error)), 67 | ); 68 | }, 69 | onPageChanged: (index) { 70 | _currentPage = index; 71 | }, 72 | ) 73 | : Container() 74 | ); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/features/home/pages/drawer_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/features/account/account_vm.dart'; 4 | import 'package:van_android_getx/features/account/login_page.dart'; 5 | import 'package:van_android_getx/features/home/vm/drawer_vm.dart'; 6 | import 'package:van_android_getx/features/setting/setting_page.dart'; 7 | 8 | class DrawerPage extends StatelessWidget { 9 | const DrawerPage({super.key}); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | final AccountVM accountVM = Get.find(); 14 | final DrawerVm drawerVm = Get.put(DrawerVm()); 15 | return Drawer( 16 | child: ListView( 17 | padding: EdgeInsets.zero, 18 | children: [ 19 | DrawerHeader( 20 | decoration: BoxDecoration( 21 | color: Theme.of(context).primaryColor, 22 | ), 23 | child: Column( 24 | children: [ 25 | Image.asset("assets/images/ic_nav_icon.png", width: 64, height: 64), 26 | const SizedBox(height: 10), 27 | // 用户名 28 | Obx(() { 29 | return GestureDetector( 30 | child: Text( 31 | accountVM.accountInfo.value?.nickname ?? "去登录", 32 | style: const TextStyle( 33 | color: Colors.white, 34 | fontSize: 24, 35 | ), 36 | ), 37 | onTap: () { 38 | if (accountVM.accountInfo.value == null) { 39 | Get.to(const LoginPage()); 40 | } 41 | }, 42 | ); 43 | }) 44 | ], 45 | ), 46 | ), 47 | // 积分 48 | Obx(() => ListTile( 49 | leading: const Icon(Icons.score), 50 | title: Text('我的积分:【${accountVM.accountInfo.value?.coinCount ?? "点击刷新"}】'), 51 | onTap: drawerVm.fetchCoin, 52 | )), 53 | ListTile( 54 | leading: const Icon(Icons.settings), 55 | title: const Text('系统设置'), 56 | onTap: () { 57 | Get.to(const SettingPage()); 58 | }, 59 | ), 60 | Obx(() => Visibility( 61 | visible: accountVM.accountInfo.value != null, 62 | child: ListTile( 63 | leading: const Icon(Icons.logout), 64 | title: const Text('退出登录'), 65 | onTap: accountVM.logout, 66 | ))), 67 | ], 68 | ), 69 | ); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /lib/features/home/pages/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/features/browser/browser_page.dart'; 4 | import 'package:van_android_getx/features/home/vm/home_vm.dart'; 5 | import 'package:van_android_getx/features/home/widgets/article_item_widget.dart'; 6 | import 'package:van_android_getx/features/home/widgets/auto_scroll_banner.dart'; 7 | 8 | class HomePage extends StatelessWidget { 9 | const HomePage({super.key}); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | var scrollController = ScrollController(); 14 | var showFab = false.obs; // 悬浮按钮是否显示的可观察变量 15 | final vm = Get.put(HomeVM()); 16 | return Scaffold( 17 | floatingActionButton: Obx(() => showFab.value 18 | ? FloatingActionButton( 19 | onPressed: () { 20 | scrollController.animateTo( 21 | 0, 22 | duration: const Duration(milliseconds: 300), 23 | curve: Curves.easeOut, 24 | ); 25 | }, 26 | child: const Icon(Icons.arrow_upward), 27 | ) 28 | : Container()), 29 | body: RefreshIndicator( 30 | onRefresh: () => vm.fetchArticleList(isRefresh: true), 31 | child: Obx(() { 32 | scrollController.addListener(() { 33 | // 根据滑动距离控制悬浮按钮的显示隐藏 34 | if (scrollController.position.pixels > 200) { 35 | showFab.value = true; 36 | } else if (scrollController.position.pixels <= 200) { 37 | showFab.value = false; 38 | } 39 | // 列表滑动到底部加载更多 40 | if (scrollController.position.pixels == scrollController.position.maxScrollExtent) { 41 | vm.fetchArticleList(); 42 | } 43 | }); 44 | return ListView.builder( 45 | controller: scrollController, 46 | // 列表长度为数据长度+1,0用来显示Banner 47 | itemCount: vm.homeArticleInfoItems.length + 1, 48 | itemBuilder: (context, index) { 49 | if (index == 0) { 50 | return AutoScrollBannerWidget( 51 | imageUrls: vm.bannerItems.map((element) => element.imagePath).toList(), 52 | onTap: (pos) { 53 | Get.to(BrowserPage(url: vm.bannerItems[pos].url)); 54 | }); 55 | } else { 56 | return ArticleItemWidget(articleInfo: vm.homeArticleInfoItems[index - 1]); 57 | } 58 | }); 59 | }))); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/core/services/api/van_api.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | import 'package:van_android_getx/data/model/account_login.dart'; 3 | import 'package:van_android_getx/data/model/account_register.dart'; 4 | import 'package:van_android_getx/data/model/base_response.dart'; 5 | import 'package:van_android_getx/data/model/account_info.dart'; 6 | import 'package:van_android_getx/data/model/home_article_info.dart'; 7 | import 'package:van_android_getx/data/model/home_banner_info.dart'; 8 | import 'package:van_android_getx/data/model/integral.dart'; 9 | import 'package:van_android_getx/data/model/navi_info.dart'; 10 | import 'package:van_android_getx/data/model/study_system_info.dart'; 11 | import 'package:van_android_getx/data/model/wx_account_info.dart'; 12 | import 'package:van_android_getx/data/model/wx_article_list.dart'; 13 | 14 | import 'api_client.dart'; 15 | 16 | class VanApi { 17 | // 是否处于登录状态 18 | static bool isLogin() => Get.find().isLogin; 19 | 20 | // 更新Cookies 21 | static updateCookies(String cookies) => Get.find().updateCookies(cookies); 22 | 23 | // 请求登录 24 | static Future> login(AccountLoginReq req) => 25 | Get.find().postX("user/login", query: req.toJson(), fromJsonT: (json) => AccountInfo.fromJson(json)); 26 | 27 | // 请求注册 28 | static Future> register(AccountRegisterReq req) => Get.find() 29 | .postX("user/register", query: req.toJson(), fromJsonT: (json) => AccountInfo.fromJson(json)); 30 | 31 | // 查询积分 32 | static Future> requestCoin() => 33 | Get.find().getX("lg/coin/userinfo/json", fromJsonT: (json) => Integral.fromJson(json)); 34 | 35 | // 首页文章 36 | static Future> homeArticleList(int currentPage) => 37 | Get.find().getX("article/list/$currentPage/json", fromJsonT: (json) => HomeArticleInfo.fromJson(json)); 38 | 39 | // 首页Banner 40 | static Future> homeBanner() => 41 | Get.find().getX("banner/json", fromJsonT: (json) => HomeBannerInfo.fromJson(json)); 42 | 43 | // 公众号列表 44 | static Future> wxAccounts() => 45 | Get.find().getX("wxarticle/chapters/json", fromJsonT: (json) => WxAccountInfo.fromJson(json)); 46 | 47 | // 公众号文章列表 48 | static Future> wxArticleList(int wxId, int currentPage) => 49 | Get.find().getX("wxarticle/list/$wxId/$currentPage/json", fromJsonT: (json) => WxArticleList.fromJson(json)); 50 | 51 | // 导航数据 52 | static Future> navi() => 53 | Get.find().getX("navi/json", fromJsonT: (json) => NaviInfo.fromJson(json)); 54 | 55 | // 学习体系 56 | static Future> studySystem() => 57 | Get.find().getX("tree/json", fromJsonT: (json) => StudySystemInfo.fromJson(json)); 58 | 59 | 60 | } 61 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/features/account/account_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:get_storage/get_storage.dart'; 4 | import 'package:van_android_getx/core/services/api/api_client.dart'; 5 | import 'package:van_android_getx/core/services/api/van_api.dart'; 6 | import 'package:van_android_getx/core/utils/logger_utils.dart'; 7 | import 'package:van_android_getx/core/utils/toast_utils.dart'; 8 | import 'package:van_android_getx/data/model/account_info.dart'; 9 | import 'package:van_android_getx/data/model/account_login.dart'; 10 | import 'package:van_android_getx/data/model/account_register.dart'; 11 | import 'package:van_android_getx/data/model/base_response.dart'; 12 | 13 | class AccountVM extends GetxController { 14 | var apiClient = Get.find(); 15 | // 用户信息 16 | var accountInfo = Rx(null); 17 | // 登录 18 | var loginUserNameController = TextEditingController(); 19 | var loginPasswordController = TextEditingController(); 20 | // 注册 21 | var registerUserNameController = TextEditingController(); 22 | var registerPasswordController = TextEditingController(); 23 | var registerReUserNameController = TextEditingController(); 24 | 25 | // 登录 26 | Future login() async { 27 | final username = loginUserNameController.text; 28 | final password = loginPasswordController.text; 29 | if (username.isNotEmpty && password.isNotEmpty) { 30 | var result = await VanApi.login(AccountLoginReq(username, password)); 31 | parseAccountInfo(result); 32 | } else { 33 | showToast(msg: "用户名或密码不能为空"); 34 | } 35 | } 36 | 37 | // 注册 38 | Future register() async { 39 | final username = registerUserNameController.text; 40 | final password = registerPasswordController.text; 41 | final rePassword = registerReUserNameController.text; 42 | if (username.isNotEmpty && password.isNotEmpty && rePassword.isNotEmpty) { 43 | if (password == rePassword) { 44 | var result = await VanApi.register(AccountRegisterReq(username, password, rePassword)); 45 | parseAccountInfo(result, isLogin: false); 46 | } else { 47 | showToast(msg: "两次输入的密码不一致"); 48 | } 49 | } else { 50 | showToast(msg: "用户名或密码不能为空"); 51 | } 52 | } 53 | 54 | // 退出登录 55 | void logout() { 56 | accountInfo.value = null; 57 | apiClient.updateCookies(null); 58 | showToast(msg: "退出登录成功"); 59 | } 60 | 61 | // 解析用户信息的通用处理方法 62 | void parseAccountInfo(DataResponse result, {bool? isLogin = true}) { 63 | if(result.error == null) { 64 | // 更新用户状态 65 | accountInfo.value = result.data; 66 | var cookies = result.headers?['set-cookie']; 67 | if (null != cookies) { 68 | VanApi.updateCookies(cookies); 69 | Get.find().write("Cookie", cookies); 70 | } 71 | if (isLogin == true) { 72 | loginUserNameController.text = ""; 73 | loginPasswordController.text = ""; 74 | showToast(msg: "【${result.data!.nickname}】登录成功"); 75 | Get.back(); 76 | } else { 77 | showToast(msg: "【${result.data!.nickname}】注册成功"); 78 | // 注册成功登录页面也关闭 79 | Get.back(result: true); 80 | } 81 | } else { 82 | showToast(msg: result.errorMsg); 83 | } 84 | } 85 | 86 | 87 | @override 88 | void onClose() { 89 | super.onClose(); 90 | loginUserNameController.dispose(); 91 | loginPasswordController.dispose(); 92 | registerUserNameController.dispose(); 93 | registerPasswordController.dispose(); 94 | registerReUserNameController.dispose(); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /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 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /lib/features/other/study_system_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/core/utils/toast_utils.dart'; 4 | import 'package:van_android_getx/data/model/study_system_info.dart'; 5 | import 'package:van_android_getx/features/other/study_system_vm.dart'; 6 | 7 | class StudySystemPage extends StatelessWidget { 8 | const StudySystemPage({super.key}); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | var vm = Get.put(StudySystemVM()); 13 | var scrollController = ScrollController(); 14 | var showFab = false.obs; // 悬浮按钮是否显示的可观察变量 15 | return Obx(() { 16 | if (vm.studySystemItems.isNotEmpty) { 17 | return Scaffold( 18 | floatingActionButton: Obx(() => showFab.value 19 | ? FloatingActionButton( 20 | onPressed: () { 21 | scrollController.animateTo( 22 | 0, 23 | duration: const Duration(milliseconds: 300), 24 | curve: Curves.easeOut, 25 | ); 26 | }, 27 | child: const Icon(Icons.arrow_upward), 28 | ) 29 | : Container()), 30 | body: RefreshIndicator( 31 | onRefresh: () => vm.fetchStudySystem(), 32 | child: Obx(() { 33 | scrollController.addListener(() { 34 | // 根据滑动距离控制悬浮按钮的显示隐藏 35 | if (scrollController.position.pixels > 200) { 36 | showFab.value = true; 37 | } else if (scrollController.position.pixels <= 200) { 38 | showFab.value = false; 39 | } 40 | }); 41 | return ListView.builder( 42 | controller: scrollController, 43 | itemCount: vm.studySystemItems.length, 44 | itemBuilder: (context, index) { 45 | return _generateNaviItem(vm.studySystemItems[index], context); 46 | }); 47 | }))); 48 | } else { 49 | return Container(); 50 | } 51 | }); 52 | } 53 | 54 | // 生成学习体系列表项 55 | Widget _generateNaviItem(StudySystemInfo info, BuildContext context) { 56 | return GestureDetector( 57 | child: Row(children: [ 58 | Expanded( 59 | child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ 60 | Padding( 61 | padding: const EdgeInsets.only(left: 12, top: 12), 62 | child: Text("${info.name}", 63 | style: 64 | TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: Theme.of(context).primaryColor))), 65 | Padding( 66 | padding: const EdgeInsets.only(left: 12, top: 10, bottom: 10), 67 | child: info.children != null 68 | ? Wrap( 69 | spacing: 5, 70 | runSpacing: 5, 71 | children: info.children! 72 | .map((e) => Text(e.name ?? "", 73 | style: const TextStyle(fontSize: 12, color: Colors.grey, fontStyle: FontStyle.italic))) 74 | .toList()) 75 | : Container()), 76 | const Divider(height: 1, color: Color(0xFFE0E0E0)) 77 | ])), 78 | const Icon(Icons.chevron_right) 79 | ]), 80 | onTap: () { 81 | showToast(msg: "点击了:${info.name}"); 82 | }); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /lib/data/model/navi_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | import 'dart:convert'; 3 | 4 | part 'navi_info.g.dart'; 5 | 6 | @JsonSerializable() 7 | class NaviInfo { 8 | @JsonKey(name: "articles") 9 | List
? articles; 10 | @JsonKey(name: "cid") 11 | int? cid; 12 | @JsonKey(name: "name") 13 | String? name; 14 | 15 | NaviInfo({ 16 | this.articles, 17 | this.cid, 18 | this.name, 19 | }); 20 | 21 | factory NaviInfo.fromJson(Map json) => _$NaviInfoFromJson(json); 22 | 23 | Map toJson() => _$NaviInfoToJson(this); 24 | } 25 | 26 | @JsonSerializable() 27 | class Article { 28 | @JsonKey(name: "adminAdd") 29 | bool? adminAdd; 30 | @JsonKey(name: "apkLink") 31 | String? apkLink; 32 | @JsonKey(name: "audit") 33 | int? audit; 34 | @JsonKey(name: "author") 35 | String? author; 36 | @JsonKey(name: "canEdit") 37 | bool? canEdit; 38 | @JsonKey(name: "chapterId") 39 | int? chapterId; 40 | @JsonKey(name: "chapterName") 41 | String? chapterName; 42 | @JsonKey(name: "collect") 43 | bool? collect; 44 | @JsonKey(name: "courseId") 45 | int? courseId; 46 | @JsonKey(name: "desc") 47 | String? desc; 48 | @JsonKey(name: "descMd") 49 | String? descMd; 50 | @JsonKey(name: "envelopePic") 51 | String? envelopePic; 52 | @JsonKey(name: "fresh") 53 | bool? fresh; 54 | @JsonKey(name: "host") 55 | String? host; 56 | @JsonKey(name: "id") 57 | int? id; 58 | @JsonKey(name: "isAdminAdd") 59 | bool? isAdminAdd; 60 | @JsonKey(name: "link") 61 | String? link; 62 | @JsonKey(name: "niceDate") 63 | String? niceDate; 64 | @JsonKey(name: "niceShareDate") 65 | String? niceShareDate; 66 | @JsonKey(name: "origin") 67 | String? origin; 68 | @JsonKey(name: "prefix") 69 | String? prefix; 70 | @JsonKey(name: "projectLink") 71 | String? projectLink; 72 | @JsonKey(name: "publishTime") 73 | int? publishTime; 74 | @JsonKey(name: "realSuperChapterId") 75 | int? realSuperChapterId; 76 | @JsonKey(name: "selfVisible") 77 | int? selfVisible; 78 | @JsonKey(name: "shareDate") 79 | int? shareDate; 80 | @JsonKey(name: "shareUser") 81 | String? shareUser; 82 | @JsonKey(name: "superChapterId") 83 | int? superChapterId; 84 | @JsonKey(name: "superChapterName") 85 | String? superChapterName; 86 | @JsonKey(name: "tags") 87 | List? tags; 88 | @JsonKey(name: "title") 89 | String? title; 90 | @JsonKey(name: "type") 91 | int? type; 92 | @JsonKey(name: "userId") 93 | int? userId; 94 | @JsonKey(name: "visible") 95 | int? visible; 96 | @JsonKey(name: "zan") 97 | int? zan; 98 | 99 | Article({ 100 | this.adminAdd, 101 | this.apkLink, 102 | this.audit, 103 | this.author, 104 | this.canEdit, 105 | this.chapterId, 106 | this.chapterName, 107 | this.collect, 108 | this.courseId, 109 | this.desc, 110 | this.descMd, 111 | this.envelopePic, 112 | this.fresh, 113 | this.host, 114 | this.id, 115 | this.isAdminAdd, 116 | this.link, 117 | this.niceDate, 118 | this.niceShareDate, 119 | this.origin, 120 | this.prefix, 121 | this.projectLink, 122 | this.publishTime, 123 | this.realSuperChapterId, 124 | this.selfVisible, 125 | this.shareDate, 126 | this.shareUser, 127 | this.superChapterId, 128 | this.superChapterName, 129 | this.tags, 130 | this.title, 131 | this.type, 132 | this.userId, 133 | this.visible, 134 | this.zan, 135 | }); 136 | 137 | factory Article.fromJson(Map json) => _$ArticleFromJson(json); 138 | 139 | Map toJson() => _$ArticleToJson(this); 140 | } 141 | -------------------------------------------------------------------------------- /lib/features/other/navi_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:van_android_getx/core/utils/color_utils.dart'; 4 | import 'package:van_android_getx/data/model/navi_info.dart'; 5 | import 'package:van_android_getx/features/browser/browser_page.dart'; 6 | import 'package:van_android_getx/features/other/navi_vm.dart'; 7 | 8 | class NaviPage extends StatelessWidget { 9 | const NaviPage({super.key}); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | var vm = Get.put(NaviVM()); 14 | var scrollController = ScrollController(); 15 | var showFab = false.obs; // 悬浮按钮是否显示的可观察变量 16 | return Obx(() { 17 | if (vm.naviInfoItems.isNotEmpty) { 18 | return Scaffold( 19 | floatingActionButton: Obx(() => showFab.value 20 | ? FloatingActionButton( 21 | onPressed: () { 22 | scrollController.animateTo( 23 | 0, 24 | duration: const Duration(milliseconds: 300), 25 | curve: Curves.easeOut, 26 | ); 27 | }, 28 | child: const Icon(Icons.arrow_upward), 29 | ) 30 | : Container()), 31 | body: RefreshIndicator( 32 | onRefresh: () => vm.fetchNavi(), 33 | child: Obx(() { 34 | scrollController.addListener(() { 35 | // 根据滑动距离控制悬浮按钮的显示隐藏 36 | if (scrollController.position.pixels > 200) { 37 | showFab.value = true; 38 | } else if (scrollController.position.pixels <= 200) { 39 | showFab.value = false; 40 | } 41 | }); 42 | return ListView.builder( 43 | controller: scrollController, 44 | itemCount: vm.naviInfoItems.length, 45 | itemBuilder: (context, index) { 46 | return _generateNaviItem(vm.naviInfoItems[index]); 47 | }); 48 | }))); 49 | } else { 50 | return Container(); 51 | } 52 | }); 53 | } 54 | 55 | // 生成导航列表项 56 | Widget _generateNaviItem(NaviInfo info) { 57 | return Column( 58 | crossAxisAlignment: CrossAxisAlignment.start, 59 | children: [ 60 | // 导航分类标题 61 | Container( 62 | height: 40, 63 | alignment: Alignment.center, 64 | child: Text("${info.name}", style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold))), 65 | // 判断数据不为空才显示流式标签 66 | info.articles == null 67 | ? Container() 68 | : Wrap( 69 | direction: Axis.horizontal, 70 | spacing: 4.0, // 水平间距 71 | runSpacing: 2.0, // 垂直间距 72 | children: info.articles!.map((e) { 73 | return GestureDetector( 74 | child: Container( 75 | margin: const EdgeInsets.all(5), 76 | padding: const EdgeInsets.all(5), 77 | decoration: BoxDecoration( 78 | border: Border.all(color: Colors.grey), 79 | borderRadius: BorderRadius.circular(5), 80 | ), 81 | // 生成随机颜色的文字 82 | child: Text("${e.title}", style: TextStyle(color: getRandomColor())), 83 | ), 84 | onTap: () { 85 | if (null != e.link) Get.to(BrowserPage(url: e.link!)); 86 | }); 87 | }).toList(), 88 | ) 89 | ], 90 | ); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /lib/data/model/home_article_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'home_article_info.g.dart'; 4 | 5 | 6 | @JsonSerializable() 7 | class HomeArticleInfo { 8 | 9 | @JsonKey(name: 'curPage') 10 | int curPage; 11 | 12 | @JsonKey(name: 'datas') 13 | List datas; 14 | 15 | @JsonKey(name: 'offset') 16 | int offset; 17 | 18 | @JsonKey(name: 'over') 19 | bool over; 20 | 21 | @JsonKey(name: 'pageCount') 22 | int pageCount; 23 | 24 | @JsonKey(name: 'size') 25 | int size; 26 | 27 | @JsonKey(name: 'total') 28 | int total; 29 | 30 | HomeArticleInfo(this.curPage,this.datas,this.offset,this.over,this.pageCount,this.size,this.total,); 31 | 32 | factory HomeArticleInfo.fromJson(Map srcJson) => _$HomeArticleInfoFromJson(srcJson); 33 | 34 | Map toJson() => _$HomeArticleInfoToJson(this); 35 | 36 | } 37 | 38 | 39 | @JsonSerializable() 40 | class ArticleInfo { 41 | 42 | @JsonKey(name: 'adminAdd') 43 | bool adminAdd; 44 | 45 | @JsonKey(name: 'apkLink') 46 | String apkLink; 47 | 48 | @JsonKey(name: 'audit') 49 | int audit; 50 | 51 | @JsonKey(name: 'author') 52 | String author; 53 | 54 | @JsonKey(name: 'canEdit') 55 | bool canEdit; 56 | 57 | @JsonKey(name: 'chapterId') 58 | int chapterId; 59 | 60 | @JsonKey(name: 'chapterName') 61 | String chapterName; 62 | 63 | @JsonKey(name: 'collect') 64 | bool collect; 65 | 66 | @JsonKey(name: 'courseId') 67 | int courseId; 68 | 69 | @JsonKey(name: 'desc') 70 | String desc; 71 | 72 | @JsonKey(name: 'descMd') 73 | String descMd; 74 | 75 | @JsonKey(name: 'envelopePic') 76 | String envelopePic; 77 | 78 | @JsonKey(name: 'fresh') 79 | bool fresh; 80 | 81 | @JsonKey(name: 'host') 82 | String host; 83 | 84 | @JsonKey(name: 'id') 85 | int id; 86 | 87 | @JsonKey(name: 'isAdminAdd') 88 | bool isAdminAdd; 89 | 90 | @JsonKey(name: 'link') 91 | String link; 92 | 93 | @JsonKey(name: 'niceDate') 94 | String niceDate; 95 | 96 | @JsonKey(name: 'niceShareDate') 97 | String niceShareDate; 98 | 99 | @JsonKey(name: 'origin') 100 | String origin; 101 | 102 | @JsonKey(name: 'prefix') 103 | String prefix; 104 | 105 | @JsonKey(name: 'projectLink') 106 | String projectLink; 107 | 108 | @JsonKey(name: 'publishTime') 109 | int publishTime; 110 | 111 | @JsonKey(name: 'realSuperChapterId') 112 | int realSuperChapterId; 113 | 114 | @JsonKey(name: 'selfVisible') 115 | int selfVisible; 116 | 117 | @JsonKey(name: 'shareDate') 118 | int shareDate; 119 | 120 | @JsonKey(name: 'shareUser') 121 | String shareUser; 122 | 123 | @JsonKey(name: 'superChapterId') 124 | int superChapterId; 125 | 126 | @JsonKey(name: 'superChapterName') 127 | String superChapterName; 128 | 129 | @JsonKey(name: 'tags') 130 | List tags; 131 | 132 | @JsonKey(name: 'title') 133 | String title; 134 | 135 | @JsonKey(name: 'type') 136 | int type; 137 | 138 | @JsonKey(name: 'userId') 139 | int userId; 140 | 141 | @JsonKey(name: 'visible') 142 | int visible; 143 | 144 | @JsonKey(name: 'zan') 145 | int zan; 146 | 147 | ArticleInfo(this.adminAdd,this.apkLink,this.audit,this.author,this.canEdit,this.chapterId,this.chapterName,this.collect,this.courseId,this.desc,this.descMd,this.envelopePic,this.fresh,this.host,this.id,this.isAdminAdd,this.link,this.niceDate,this.niceShareDate,this.origin,this.prefix,this.projectLink,this.publishTime,this.realSuperChapterId,this.selfVisible,this.shareDate,this.shareUser,this.superChapterId,this.superChapterName,this.tags,this.title,this.type,this.userId,this.visible,this.zan,); 148 | 149 | factory ArticleInfo.fromJson(Map srcJson) => _$ArticleInfoFromJson(srcJson); 150 | 151 | Map toJson() => _$ArticleInfoToJson(this); 152 | 153 | } 154 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /lib/core/services/api/api_client.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | import 'package:get/get_connect/http/src/request/request.dart'; 3 | import 'package:get_storage/get_storage.dart'; 4 | import 'package:van_android_getx/core/services/api/exceptions.dart'; 5 | import 'package:van_android_getx/core/utils/logger_utils.dart'; 6 | import 'package:van_android_getx/data/model/base_response.dart'; 7 | import 'package:van_android_getx/features/account/account_vm.dart'; 8 | import 'package:van_android_getx/features/account/login_page.dart'; 9 | import 'package:van_android_getx/widgets/custom_dialog.dart'; 10 | 11 | class ApiClient extends GetConnect { 12 | String? cookies; 13 | 14 | bool get isLogin => null != cookies && cookies!.isNotEmpty; 15 | 16 | @override 17 | void onInit() async { 18 | httpClient.baseUrl = "https://www.wanandroid.com/"; 19 | httpClient.timeout = const Duration(seconds: 30); 20 | // 读取本地存储的Cookie 21 | cookies = Get.find().read("Cookie"); 22 | // 添加请求拦截器,设置Cookie 23 | httpClient.addRequestModifier((request) { 24 | if (cookies != null) { 25 | request.headers['Cookie'] = cookies!; 26 | } else { 27 | if(request.headers.containsKey("Cookie")) { 28 | request.headers.remove("Cookie"); 29 | } 30 | } 31 | return request; 32 | }); 33 | // 添加拦截器打印日志 34 | httpClient.addResponseModifier((request, response) { 35 | request.bodyBytes.bytesToString().then((value) => { 36 | LogUtil.d("Request headers: ${request.headers}"), 37 | LogUtil.d("Request Url: ${request.url}"), 38 | LogUtil.d("Request Body: $value"), 39 | LogUtil.d("Response headers: ${response.headers}"), 40 | LogUtil.d("Response Body: ${response.body}") 41 | }); 42 | return response; 43 | }); 44 | super.onInit(); 45 | } 46 | 47 | // 请求响应的通用处理封装 48 | Future _performRequestX(Future Function() requestCall, D Function(dynamic json)? fromJsonT) async { 49 | try { 50 | // 加载对话框 51 | showLoadingDialog(); 52 | // 执行对应的网络请求 53 | Response response = await requestCall(); 54 | // 如果没设置fromJsonT或R是动态类型,直接返回响应数据 55 | if (fromJsonT == null || R == dynamic || response.body is! Map) return response.body; 56 | // 获取响应内容 57 | Map? responseObject = response.body; 58 | // 响应码为200,响应体不为空执行数据解析逻辑 59 | if (response.statusCode == 200 && responseObject != null && responseObject.isNotEmpty) { 60 | switch (responseObject['errorCode']) { 61 | // errorCode为 0 代表请求成功 62 | case 0: 63 | if (R.toString().contains("DataResponse")) { 64 | return (DataResponse.fromJson(responseObject, fromJsonT)..headers = response.headers) as R; 65 | } else if (R.toString().contains("ListResponse")) { 66 | return (ListResponse.fromJson(responseObject, fromJsonT)..headers = response.headers) as R; 67 | } else { 68 | throw ApiException(-1, "未知响应类型:$R"); 69 | } 70 | // 不为 0 代表请求错误,抛异常等下统一处理 71 | default: 72 | // 错误码为-1001说明是访问了需要登录的接口但处于未登录状态,关闭加载弹窗,清空Cookies,跳转登录页 73 | if (responseObject['errorCode'] == -1001) { 74 | if (Get.isDialogOpen == true) Get.back(); 75 | updateCookies(null); 76 | Get.find().accountInfo.value = null; 77 | Get.to(const LoginPage()); 78 | } 79 | throw ApiException(responseObject['errorCode'], responseObject['errorMsg']); 80 | } 81 | } else { 82 | throw ApiException(-1, "错误响应格式"); 83 | } 84 | } catch (e) { 85 | final error = ApiException.from(e); 86 | if (R.toString().contains("DataResponse")) { 87 | // 对DataResponse做下特殊处理,不然会有类型转换异常 88 | if (R.toString() == "DataResponse") { 89 | return DataResponse(data: null, errorCode: -1, errorMsg: error.message ?? "未知异常", error: error) as R; 90 | } 91 | return DataResponse(data: null, errorCode: -1, errorMsg: error.message ?? "未知异常", error: error) as R; 92 | } else if (R.toString().contains("ListResponse")) { 93 | // 对ListResponse做下特殊处理,不然会有类型转换异常 94 | if (R.toString() == "ListResponse") { 95 | return ListResponse(data: null, errorCode: -1, errorMsg: error.message ?? "未知异常", error: error) as R; 96 | } 97 | return ListResponse(data: null, errorCode: -1, errorMsg: error.message ?? "未知异常", error: error) as R; 98 | } else { 99 | // 都没命中抛出异常 100 | rethrow; 101 | } 102 | } finally { 103 | // 判断有对话框打开才关闭 104 | if (Get.isDialogOpen == true) Get.back(); 105 | } 106 | } 107 | 108 | /// 发起Post请求 109 | Future postX(String? url, 110 | {dynamic body, 111 | String? contentType, 112 | Map? headers, 113 | Map? query, 114 | D Function(dynamic json)? fromJsonT}) => 115 | _performRequestX( 116 | () => post(url, body ?? "{}", contentType: contentType, headers: headers, query: query), fromJsonT); 117 | 118 | /// 发起Get请求 119 | Future getX(String url, 120 | {Map? headers, 121 | String? contentType, 122 | Map? query, 123 | D Function(dynamic json)? fromJsonT}) => 124 | _performRequestX(() => get(url, contentType: contentType, headers: headers, query: query), fromJsonT); 125 | 126 | void updateCookies(String? cookies) { 127 | this.cookies = cookies; 128 | Get.find().write("Cookie", cookies); 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 25 | remoteInfo = Runner; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXCopyFilesBuildPhase section */ 30 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 31 | isa = PBXCopyFilesBuildPhase; 32 | buildActionMask = 2147483647; 33 | dstPath = ""; 34 | dstSubfolderSpec = 10; 35 | files = ( 36 | ); 37 | name = "Embed Frameworks"; 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 47 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 48 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 51 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 57 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 78 | ); 79 | name = Flutter; 80 | sourceTree = ""; 81 | }; 82 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 86 | ); 87 | path = RunnerTests; 88 | sourceTree = ""; 89 | }; 90 | 97C146E51CF9000F007C117D = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9740EEB11CF90186004384FC /* Flutter */, 94 | 97C146F01CF9000F007C117D /* Runner */, 95 | 97C146EF1CF9000F007C117D /* Products */, 96 | 331C8082294A63A400263BE5 /* RunnerTests */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | 97C146EF1CF9000F007C117D /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 97C146EE1CF9000F007C117D /* Runner.app */, 104 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | 97C146F01CF9000F007C117D /* Runner */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 113 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 114 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 115 | 97C147021CF9000F007C117D /* Info.plist */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 119 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 120 | ); 121 | path = Runner; 122 | sourceTree = ""; 123 | }; 124 | /* End PBXGroup section */ 125 | 126 | /* Begin PBXNativeTarget section */ 127 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 130 | buildPhases = ( 131 | 331C807D294A63A400263BE5 /* Sources */, 132 | 331C807E294A63A400263BE5 /* Frameworks */, 133 | 331C807F294A63A400263BE5 /* Resources */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 139 | ); 140 | name = RunnerTests; 141 | productName = RunnerTests; 142 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 143 | productType = "com.apple.product-type.bundle.unit-test"; 144 | }; 145 | 97C146ED1CF9000F007C117D /* Runner */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 148 | buildPhases = ( 149 | 9740EEB61CF901F6004384FC /* Run Script */, 150 | 97C146EA1CF9000F007C117D /* Sources */, 151 | 97C146EB1CF9000F007C117D /* Frameworks */, 152 | 97C146EC1CF9000F007C117D /* Resources */, 153 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 154 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 155 | ); 156 | buildRules = ( 157 | ); 158 | dependencies = ( 159 | ); 160 | name = Runner; 161 | productName = Runner; 162 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 163 | productType = "com.apple.product-type.application"; 164 | }; 165 | /* End PBXNativeTarget section */ 166 | 167 | /* Begin PBXProject section */ 168 | 97C146E61CF9000F007C117D /* Project object */ = { 169 | isa = PBXProject; 170 | attributes = { 171 | BuildIndependentTargetsInParallel = YES; 172 | LastUpgradeCheck = 1430; 173 | ORGANIZATIONNAME = ""; 174 | TargetAttributes = { 175 | 331C8080294A63A400263BE5 = { 176 | CreatedOnToolsVersion = 14.0; 177 | TestTargetID = 97C146ED1CF9000F007C117D; 178 | }; 179 | 97C146ED1CF9000F007C117D = { 180 | CreatedOnToolsVersion = 7.3.1; 181 | LastSwiftMigration = 1100; 182 | }; 183 | }; 184 | }; 185 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 186 | compatibilityVersion = "Xcode 9.3"; 187 | developmentRegion = en; 188 | hasScannedForEncodings = 0; 189 | knownRegions = ( 190 | en, 191 | Base, 192 | ); 193 | mainGroup = 97C146E51CF9000F007C117D; 194 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 195 | projectDirPath = ""; 196 | projectRoot = ""; 197 | targets = ( 198 | 97C146ED1CF9000F007C117D /* Runner */, 199 | 331C8080294A63A400263BE5 /* RunnerTests */, 200 | ); 201 | }; 202 | /* End PBXProject section */ 203 | 204 | /* Begin PBXResourcesBuildPhase section */ 205 | 331C807F294A63A400263BE5 /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | 97C146EC1CF9000F007C117D /* Resources */ = { 213 | isa = PBXResourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 217 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 218 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 219 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | }; 223 | /* End PBXResourcesBuildPhase section */ 224 | 225 | /* Begin PBXShellScriptBuildPhase section */ 226 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 227 | isa = PBXShellScriptBuildPhase; 228 | alwaysOutOfDate = 1; 229 | buildActionMask = 2147483647; 230 | files = ( 231 | ); 232 | inputPaths = ( 233 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 234 | ); 235 | name = "Thin Binary"; 236 | outputPaths = ( 237 | ); 238 | runOnlyForDeploymentPostprocessing = 0; 239 | shellPath = /bin/sh; 240 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 241 | }; 242 | 9740EEB61CF901F6004384FC /* Run Script */ = { 243 | isa = PBXShellScriptBuildPhase; 244 | alwaysOutOfDate = 1; 245 | buildActionMask = 2147483647; 246 | files = ( 247 | ); 248 | inputPaths = ( 249 | ); 250 | name = "Run Script"; 251 | outputPaths = ( 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | shellPath = /bin/sh; 255 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 256 | }; 257 | /* End PBXShellScriptBuildPhase section */ 258 | 259 | /* Begin PBXSourcesBuildPhase section */ 260 | 331C807D294A63A400263BE5 /* Sources */ = { 261 | isa = PBXSourcesBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | 97C146EA1CF9000F007C117D /* Sources */ = { 269 | isa = PBXSourcesBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 273 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | }; 277 | /* End PBXSourcesBuildPhase section */ 278 | 279 | /* Begin PBXTargetDependency section */ 280 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 281 | isa = PBXTargetDependency; 282 | target = 97C146ED1CF9000F007C117D /* Runner */; 283 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 284 | }; 285 | /* End PBXTargetDependency section */ 286 | 287 | /* Begin PBXVariantGroup section */ 288 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 289 | isa = PBXVariantGroup; 290 | children = ( 291 | 97C146FB1CF9000F007C117D /* Base */, 292 | ); 293 | name = Main.storyboard; 294 | sourceTree = ""; 295 | }; 296 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 297 | isa = PBXVariantGroup; 298 | children = ( 299 | 97C147001CF9000F007C117D /* Base */, 300 | ); 301 | name = LaunchScreen.storyboard; 302 | sourceTree = ""; 303 | }; 304 | /* End PBXVariantGroup section */ 305 | 306 | /* Begin XCBuildConfiguration section */ 307 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 308 | isa = XCBuildConfiguration; 309 | buildSettings = { 310 | ALWAYS_SEARCH_USER_PATHS = NO; 311 | CLANG_ANALYZER_NONNULL = YES; 312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 313 | CLANG_CXX_LIBRARY = "libc++"; 314 | CLANG_ENABLE_MODULES = YES; 315 | CLANG_ENABLE_OBJC_ARC = YES; 316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 317 | CLANG_WARN_BOOL_CONVERSION = YES; 318 | CLANG_WARN_COMMA = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_EMPTY_BODY = YES; 323 | CLANG_WARN_ENUM_CONVERSION = YES; 324 | CLANG_WARN_INFINITE_RECURSION = YES; 325 | CLANG_WARN_INT_CONVERSION = YES; 326 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 328 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 330 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 331 | CLANG_WARN_STRICT_PROTOTYPES = YES; 332 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 333 | CLANG_WARN_UNREACHABLE_CODE = YES; 334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 336 | COPY_PHASE_STRIP = NO; 337 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 338 | ENABLE_NS_ASSERTIONS = NO; 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | GCC_C_LANGUAGE_STANDARD = gnu99; 341 | GCC_NO_COMMON_BLOCKS = YES; 342 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 343 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 344 | GCC_WARN_UNDECLARED_SELECTOR = YES; 345 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 346 | GCC_WARN_UNUSED_FUNCTION = YES; 347 | GCC_WARN_UNUSED_VARIABLE = YES; 348 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 349 | MTL_ENABLE_DEBUG_INFO = NO; 350 | SDKROOT = iphoneos; 351 | SUPPORTED_PLATFORMS = iphoneos; 352 | TARGETED_DEVICE_FAMILY = "1,2"; 353 | VALIDATE_PRODUCT = YES; 354 | }; 355 | name = Profile; 356 | }; 357 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 358 | isa = XCBuildConfiguration; 359 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 360 | buildSettings = { 361 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 362 | CLANG_ENABLE_MODULES = YES; 363 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 364 | ENABLE_BITCODE = NO; 365 | INFOPLIST_FILE = Runner/Info.plist; 366 | LD_RUNPATH_SEARCH_PATHS = ( 367 | "$(inherited)", 368 | "@executable_path/Frameworks", 369 | ); 370 | PRODUCT_BUNDLE_IDENTIFIER = cn.coderpig.vanAndroidGetx; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 373 | SWIFT_VERSION = 5.0; 374 | VERSIONING_SYSTEM = "apple-generic"; 375 | }; 376 | name = Profile; 377 | }; 378 | 331C8088294A63A400263BE5 /* Debug */ = { 379 | isa = XCBuildConfiguration; 380 | baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */; 381 | buildSettings = { 382 | BUNDLE_LOADER = "$(TEST_HOST)"; 383 | CODE_SIGN_STYLE = Automatic; 384 | CURRENT_PROJECT_VERSION = 1; 385 | GENERATE_INFOPLIST_FILE = YES; 386 | MARKETING_VERSION = 1.0; 387 | PRODUCT_BUNDLE_IDENTIFIER = cn.coderpig.vanAndroidGetx.RunnerTests; 388 | PRODUCT_NAME = "$(TARGET_NAME)"; 389 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 390 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 391 | SWIFT_VERSION = 5.0; 392 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 393 | }; 394 | name = Debug; 395 | }; 396 | 331C8089294A63A400263BE5 /* Release */ = { 397 | isa = XCBuildConfiguration; 398 | baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */; 399 | buildSettings = { 400 | BUNDLE_LOADER = "$(TEST_HOST)"; 401 | CODE_SIGN_STYLE = Automatic; 402 | CURRENT_PROJECT_VERSION = 1; 403 | GENERATE_INFOPLIST_FILE = YES; 404 | MARKETING_VERSION = 1.0; 405 | PRODUCT_BUNDLE_IDENTIFIER = cn.coderpig.vanAndroidGetx.RunnerTests; 406 | PRODUCT_NAME = "$(TARGET_NAME)"; 407 | SWIFT_VERSION = 5.0; 408 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 409 | }; 410 | name = Release; 411 | }; 412 | 331C808A294A63A400263BE5 /* Profile */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */; 415 | buildSettings = { 416 | BUNDLE_LOADER = "$(TEST_HOST)"; 417 | CODE_SIGN_STYLE = Automatic; 418 | CURRENT_PROJECT_VERSION = 1; 419 | GENERATE_INFOPLIST_FILE = YES; 420 | MARKETING_VERSION = 1.0; 421 | PRODUCT_BUNDLE_IDENTIFIER = cn.coderpig.vanAndroidGetx.RunnerTests; 422 | PRODUCT_NAME = "$(TARGET_NAME)"; 423 | SWIFT_VERSION = 5.0; 424 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 425 | }; 426 | name = Profile; 427 | }; 428 | 97C147031CF9000F007C117D /* Debug */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | ALWAYS_SEARCH_USER_PATHS = NO; 432 | CLANG_ANALYZER_NONNULL = YES; 433 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 434 | CLANG_CXX_LIBRARY = "libc++"; 435 | CLANG_ENABLE_MODULES = YES; 436 | CLANG_ENABLE_OBJC_ARC = YES; 437 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 438 | CLANG_WARN_BOOL_CONVERSION = YES; 439 | CLANG_WARN_COMMA = YES; 440 | CLANG_WARN_CONSTANT_CONVERSION = YES; 441 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 442 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 443 | CLANG_WARN_EMPTY_BODY = YES; 444 | CLANG_WARN_ENUM_CONVERSION = YES; 445 | CLANG_WARN_INFINITE_RECURSION = YES; 446 | CLANG_WARN_INT_CONVERSION = YES; 447 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 448 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 449 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 450 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 451 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 452 | CLANG_WARN_STRICT_PROTOTYPES = YES; 453 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 454 | CLANG_WARN_UNREACHABLE_CODE = YES; 455 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 456 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 457 | COPY_PHASE_STRIP = NO; 458 | DEBUG_INFORMATION_FORMAT = dwarf; 459 | ENABLE_STRICT_OBJC_MSGSEND = YES; 460 | ENABLE_TESTABILITY = YES; 461 | GCC_C_LANGUAGE_STANDARD = gnu99; 462 | GCC_DYNAMIC_NO_PIC = NO; 463 | GCC_NO_COMMON_BLOCKS = YES; 464 | GCC_OPTIMIZATION_LEVEL = 0; 465 | GCC_PREPROCESSOR_DEFINITIONS = ( 466 | "DEBUG=1", 467 | "$(inherited)", 468 | ); 469 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 470 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 471 | GCC_WARN_UNDECLARED_SELECTOR = YES; 472 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 473 | GCC_WARN_UNUSED_FUNCTION = YES; 474 | GCC_WARN_UNUSED_VARIABLE = YES; 475 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 476 | MTL_ENABLE_DEBUG_INFO = YES; 477 | ONLY_ACTIVE_ARCH = YES; 478 | SDKROOT = iphoneos; 479 | TARGETED_DEVICE_FAMILY = "1,2"; 480 | }; 481 | name = Debug; 482 | }; 483 | 97C147041CF9000F007C117D /* Release */ = { 484 | isa = XCBuildConfiguration; 485 | buildSettings = { 486 | ALWAYS_SEARCH_USER_PATHS = NO; 487 | CLANG_ANALYZER_NONNULL = YES; 488 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 489 | CLANG_CXX_LIBRARY = "libc++"; 490 | CLANG_ENABLE_MODULES = YES; 491 | CLANG_ENABLE_OBJC_ARC = YES; 492 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 493 | CLANG_WARN_BOOL_CONVERSION = YES; 494 | CLANG_WARN_COMMA = YES; 495 | CLANG_WARN_CONSTANT_CONVERSION = YES; 496 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 497 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 498 | CLANG_WARN_EMPTY_BODY = YES; 499 | CLANG_WARN_ENUM_CONVERSION = YES; 500 | CLANG_WARN_INFINITE_RECURSION = YES; 501 | CLANG_WARN_INT_CONVERSION = YES; 502 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 503 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 504 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 505 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 506 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 507 | CLANG_WARN_STRICT_PROTOTYPES = YES; 508 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 509 | CLANG_WARN_UNREACHABLE_CODE = YES; 510 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 511 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 512 | COPY_PHASE_STRIP = NO; 513 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 514 | ENABLE_NS_ASSERTIONS = NO; 515 | ENABLE_STRICT_OBJC_MSGSEND = YES; 516 | GCC_C_LANGUAGE_STANDARD = gnu99; 517 | GCC_NO_COMMON_BLOCKS = YES; 518 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 519 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 520 | GCC_WARN_UNDECLARED_SELECTOR = YES; 521 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 522 | GCC_WARN_UNUSED_FUNCTION = YES; 523 | GCC_WARN_UNUSED_VARIABLE = YES; 524 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 525 | MTL_ENABLE_DEBUG_INFO = NO; 526 | SDKROOT = iphoneos; 527 | SUPPORTED_PLATFORMS = iphoneos; 528 | SWIFT_COMPILATION_MODE = wholemodule; 529 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 530 | TARGETED_DEVICE_FAMILY = "1,2"; 531 | VALIDATE_PRODUCT = YES; 532 | }; 533 | name = Release; 534 | }; 535 | 97C147061CF9000F007C117D /* Debug */ = { 536 | isa = XCBuildConfiguration; 537 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 538 | buildSettings = { 539 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 540 | CLANG_ENABLE_MODULES = YES; 541 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 542 | ENABLE_BITCODE = NO; 543 | INFOPLIST_FILE = Runner/Info.plist; 544 | LD_RUNPATH_SEARCH_PATHS = ( 545 | "$(inherited)", 546 | "@executable_path/Frameworks", 547 | ); 548 | PRODUCT_BUNDLE_IDENTIFIER = cn.coderpig.vanAndroidGetx; 549 | PRODUCT_NAME = "$(TARGET_NAME)"; 550 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 551 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 552 | SWIFT_VERSION = 5.0; 553 | VERSIONING_SYSTEM = "apple-generic"; 554 | }; 555 | name = Debug; 556 | }; 557 | 97C147071CF9000F007C117D /* Release */ = { 558 | isa = XCBuildConfiguration; 559 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 560 | buildSettings = { 561 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 562 | CLANG_ENABLE_MODULES = YES; 563 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 564 | ENABLE_BITCODE = NO; 565 | INFOPLIST_FILE = Runner/Info.plist; 566 | LD_RUNPATH_SEARCH_PATHS = ( 567 | "$(inherited)", 568 | "@executable_path/Frameworks", 569 | ); 570 | PRODUCT_BUNDLE_IDENTIFIER = cn.coderpig.vanAndroidGetx; 571 | PRODUCT_NAME = "$(TARGET_NAME)"; 572 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 573 | SWIFT_VERSION = 5.0; 574 | VERSIONING_SYSTEM = "apple-generic"; 575 | }; 576 | name = Release; 577 | }; 578 | /* End XCBuildConfiguration section */ 579 | 580 | /* Begin XCConfigurationList section */ 581 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 582 | isa = XCConfigurationList; 583 | buildConfigurations = ( 584 | 331C8088294A63A400263BE5 /* Debug */, 585 | 331C8089294A63A400263BE5 /* Release */, 586 | 331C808A294A63A400263BE5 /* Profile */, 587 | ); 588 | defaultConfigurationIsVisible = 0; 589 | defaultConfigurationName = Release; 590 | }; 591 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 592 | isa = XCConfigurationList; 593 | buildConfigurations = ( 594 | 97C147031CF9000F007C117D /* Debug */, 595 | 97C147041CF9000F007C117D /* Release */, 596 | 249021D3217E4FDB00AE95B9 /* Profile */, 597 | ); 598 | defaultConfigurationIsVisible = 0; 599 | defaultConfigurationName = Release; 600 | }; 601 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 602 | isa = XCConfigurationList; 603 | buildConfigurations = ( 604 | 97C147061CF9000F007C117D /* Debug */, 605 | 97C147071CF9000F007C117D /* Release */, 606 | 249021D4217E4FDB00AE95B9 /* Profile */, 607 | ); 608 | defaultConfigurationIsVisible = 0; 609 | defaultConfigurationName = Release; 610 | }; 611 | /* End XCConfigurationList section */ 612 | }; 613 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 614 | } 615 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "64.0.0" 12 | analyzer: 13 | dependency: transitive 14 | description: 15 | name: analyzer 16 | sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "6.2.0" 20 | ansicolor: 21 | dependency: transitive 22 | description: 23 | name: ansicolor 24 | sha256: "8bf17a8ff6ea17499e40a2d2542c2f481cd7615760c6d34065cb22bfd22e6880" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "2.0.2" 28 | archive: 29 | dependency: transitive 30 | description: 31 | name: archive 32 | sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "3.6.1" 36 | args: 37 | dependency: transitive 38 | description: 39 | name: args 40 | sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "2.5.0" 44 | async: 45 | dependency: transitive 46 | description: 47 | name: async 48 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "2.11.0" 52 | boolean_selector: 53 | dependency: transitive 54 | description: 55 | name: boolean_selector 56 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "2.1.1" 60 | build: 61 | dependency: transitive 62 | description: 63 | name: build 64 | sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "2.4.1" 68 | build_config: 69 | dependency: transitive 70 | description: 71 | name: build_config 72 | sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "1.1.1" 76 | build_daemon: 77 | dependency: transitive 78 | description: 79 | name: build_daemon 80 | sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "4.0.1" 84 | build_resolvers: 85 | dependency: transitive 86 | description: 87 | name: build_resolvers 88 | sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" 89 | url: "https://pub.dev" 90 | source: hosted 91 | version: "2.4.2" 92 | build_runner: 93 | dependency: "direct dev" 94 | description: 95 | name: build_runner 96 | sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22" 97 | url: "https://pub.dev" 98 | source: hosted 99 | version: "2.4.9" 100 | build_runner_core: 101 | dependency: transitive 102 | description: 103 | name: build_runner_core 104 | sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799" 105 | url: "https://pub.dev" 106 | source: hosted 107 | version: "7.3.0" 108 | built_collection: 109 | dependency: transitive 110 | description: 111 | name: built_collection 112 | sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" 113 | url: "https://pub.dev" 114 | source: hosted 115 | version: "5.1.1" 116 | built_value: 117 | dependency: transitive 118 | description: 119 | name: built_value 120 | sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb 121 | url: "https://pub.dev" 122 | source: hosted 123 | version: "8.9.2" 124 | cached_network_image: 125 | dependency: "direct main" 126 | description: 127 | name: cached_network_image 128 | sha256: "28ea9690a8207179c319965c13cd8df184d5ee721ae2ce60f398ced1219cea1f" 129 | url: "https://pub.dev" 130 | source: hosted 131 | version: "3.3.1" 132 | cached_network_image_platform_interface: 133 | dependency: transitive 134 | description: 135 | name: cached_network_image_platform_interface 136 | sha256: "9e90e78ae72caa874a323d78fa6301b3fb8fa7ea76a8f96dc5b5bf79f283bf2f" 137 | url: "https://pub.dev" 138 | source: hosted 139 | version: "4.0.0" 140 | cached_network_image_web: 141 | dependency: transitive 142 | description: 143 | name: cached_network_image_web 144 | sha256: "205d6a9f1862de34b93184f22b9d2d94586b2f05c581d546695e3d8f6a805cd7" 145 | url: "https://pub.dev" 146 | source: hosted 147 | version: "1.2.0" 148 | characters: 149 | dependency: transitive 150 | description: 151 | name: characters 152 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 153 | url: "https://pub.dev" 154 | source: hosted 155 | version: "1.3.0" 156 | checked_yaml: 157 | dependency: transitive 158 | description: 159 | name: checked_yaml 160 | sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff 161 | url: "https://pub.dev" 162 | source: hosted 163 | version: "2.0.3" 164 | cli_util: 165 | dependency: transitive 166 | description: 167 | name: cli_util 168 | sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 169 | url: "https://pub.dev" 170 | source: hosted 171 | version: "0.4.1" 172 | clock: 173 | dependency: transitive 174 | description: 175 | name: clock 176 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 177 | url: "https://pub.dev" 178 | source: hosted 179 | version: "1.1.1" 180 | code_builder: 181 | dependency: transitive 182 | description: 183 | name: code_builder 184 | sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 185 | url: "https://pub.dev" 186 | source: hosted 187 | version: "4.10.0" 188 | collection: 189 | dependency: transitive 190 | description: 191 | name: collection 192 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a 193 | url: "https://pub.dev" 194 | source: hosted 195 | version: "1.18.0" 196 | convert: 197 | dependency: transitive 198 | description: 199 | name: convert 200 | sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" 201 | url: "https://pub.dev" 202 | source: hosted 203 | version: "3.1.1" 204 | crypto: 205 | dependency: transitive 206 | description: 207 | name: crypto 208 | sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab 209 | url: "https://pub.dev" 210 | source: hosted 211 | version: "3.0.3" 212 | csslib: 213 | dependency: transitive 214 | description: 215 | name: csslib 216 | sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" 217 | url: "https://pub.dev" 218 | source: hosted 219 | version: "1.0.0" 220 | cupertino_icons: 221 | dependency: "direct main" 222 | description: 223 | name: cupertino_icons 224 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 225 | url: "https://pub.dev" 226 | source: hosted 227 | version: "1.0.8" 228 | dart_style: 229 | dependency: transitive 230 | description: 231 | name: dart_style 232 | sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9" 233 | url: "https://pub.dev" 234 | source: hosted 235 | version: "2.3.6" 236 | fake_async: 237 | dependency: transitive 238 | description: 239 | name: fake_async 240 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 241 | url: "https://pub.dev" 242 | source: hosted 243 | version: "1.3.1" 244 | ffi: 245 | dependency: transitive 246 | description: 247 | name: ffi 248 | sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" 249 | url: "https://pub.dev" 250 | source: hosted 251 | version: "2.1.0" 252 | file: 253 | dependency: transitive 254 | description: 255 | name: file 256 | sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" 257 | url: "https://pub.dev" 258 | source: hosted 259 | version: "7.0.0" 260 | fixnum: 261 | dependency: transitive 262 | description: 263 | name: fixnum 264 | sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" 265 | url: "https://pub.dev" 266 | source: hosted 267 | version: "1.1.0" 268 | flutter: 269 | dependency: "direct main" 270 | description: flutter 271 | source: sdk 272 | version: "0.0.0" 273 | flutter_cache_manager: 274 | dependency: transitive 275 | description: 276 | name: flutter_cache_manager 277 | sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba" 278 | url: "https://pub.dev" 279 | source: hosted 280 | version: "3.3.1" 281 | flutter_inappwebview: 282 | dependency: "direct main" 283 | description: 284 | name: flutter_inappwebview 285 | sha256: "3e9a443a18ecef966fb930c3a76ca5ab6a7aafc0c7b5e14a4a850cf107b09959" 286 | url: "https://pub.dev" 287 | source: hosted 288 | version: "6.0.0" 289 | flutter_inappwebview_android: 290 | dependency: transitive 291 | description: 292 | name: flutter_inappwebview_android 293 | sha256: d247f6ed417f1f8c364612fa05a2ecba7f775c8d0c044c1d3b9ee33a6515c421 294 | url: "https://pub.dev" 295 | source: hosted 296 | version: "1.0.13" 297 | flutter_inappwebview_internal_annotations: 298 | dependency: transitive 299 | description: 300 | name: flutter_inappwebview_internal_annotations 301 | sha256: "5f80fd30e208ddded7dbbcd0d569e7995f9f63d45ea3f548d8dd4c0b473fb4c8" 302 | url: "https://pub.dev" 303 | source: hosted 304 | version: "1.1.1" 305 | flutter_inappwebview_ios: 306 | dependency: transitive 307 | description: 308 | name: flutter_inappwebview_ios 309 | sha256: f363577208b97b10b319cd0c428555cd8493e88b468019a8c5635a0e4312bd0f 310 | url: "https://pub.dev" 311 | source: hosted 312 | version: "1.0.13" 313 | flutter_inappwebview_macos: 314 | dependency: transitive 315 | description: 316 | name: flutter_inappwebview_macos 317 | sha256: b55b9e506c549ce88e26580351d2c71d54f4825901666bd6cfa4be9415bb2636 318 | url: "https://pub.dev" 319 | source: hosted 320 | version: "1.0.11" 321 | flutter_inappwebview_platform_interface: 322 | dependency: transitive 323 | description: 324 | name: flutter_inappwebview_platform_interface 325 | sha256: "545fd4c25a07d2775f7d5af05a979b2cac4fbf79393b0a7f5d33ba39ba4f6187" 326 | url: "https://pub.dev" 327 | source: hosted 328 | version: "1.0.10" 329 | flutter_inappwebview_web: 330 | dependency: transitive 331 | description: 332 | name: flutter_inappwebview_web 333 | sha256: d8c680abfb6fec71609a700199635d38a744df0febd5544c5a020bd73de8ee07 334 | url: "https://pub.dev" 335 | source: hosted 336 | version: "1.0.8" 337 | flutter_launcher_icons: 338 | dependency: "direct dev" 339 | description: 340 | name: flutter_launcher_icons 341 | sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea" 342 | url: "https://pub.dev" 343 | source: hosted 344 | version: "0.13.1" 345 | flutter_lints: 346 | dependency: "direct dev" 347 | description: 348 | name: flutter_lints 349 | sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 350 | url: "https://pub.dev" 351 | source: hosted 352 | version: "2.0.3" 353 | flutter_native_splash: 354 | dependency: "direct dev" 355 | description: 356 | name: flutter_native_splash 357 | sha256: "558f10070f03ee71f850a78f7136ab239a67636a294a44a06b6b7345178edb1e" 358 | url: "https://pub.dev" 359 | source: hosted 360 | version: "2.3.10" 361 | flutter_test: 362 | dependency: "direct dev" 363 | description: flutter 364 | source: sdk 365 | version: "0.0.0" 366 | flutter_web_plugins: 367 | dependency: transitive 368 | description: flutter 369 | source: sdk 370 | version: "0.0.0" 371 | fluttertoast: 372 | dependency: "direct main" 373 | description: 374 | name: fluttertoast 375 | sha256: "81b68579e23fcbcada2db3d50302813d2371664afe6165bc78148050ab94bf66" 376 | url: "https://pub.dev" 377 | source: hosted 378 | version: "8.2.5" 379 | frontend_server_client: 380 | dependency: transitive 381 | description: 382 | name: frontend_server_client 383 | sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 384 | url: "https://pub.dev" 385 | source: hosted 386 | version: "4.0.0" 387 | get: 388 | dependency: "direct main" 389 | description: 390 | name: get 391 | sha256: e4e7335ede17452b391ed3b2ede016545706c01a02292a6c97619705e7d2a85e 392 | url: "https://pub.dev" 393 | source: hosted 394 | version: "4.6.6" 395 | get_storage: 396 | dependency: "direct main" 397 | description: 398 | name: get_storage 399 | sha256: "39db1fffe779d0c22b3a744376e86febe4ade43bf65e06eab5af707dc84185a2" 400 | url: "https://pub.dev" 401 | source: hosted 402 | version: "2.1.1" 403 | glob: 404 | dependency: transitive 405 | description: 406 | name: glob 407 | sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" 408 | url: "https://pub.dev" 409 | source: hosted 410 | version: "2.1.2" 411 | graphs: 412 | dependency: transitive 413 | description: 414 | name: graphs 415 | sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 416 | url: "https://pub.dev" 417 | source: hosted 418 | version: "2.3.1" 419 | html: 420 | dependency: transitive 421 | description: 422 | name: html 423 | sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" 424 | url: "https://pub.dev" 425 | source: hosted 426 | version: "0.15.4" 427 | http: 428 | dependency: transitive 429 | description: 430 | name: http 431 | sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba 432 | url: "https://pub.dev" 433 | source: hosted 434 | version: "1.2.0" 435 | http_multi_server: 436 | dependency: transitive 437 | description: 438 | name: http_multi_server 439 | sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" 440 | url: "https://pub.dev" 441 | source: hosted 442 | version: "3.2.1" 443 | http_parser: 444 | dependency: transitive 445 | description: 446 | name: http_parser 447 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 448 | url: "https://pub.dev" 449 | source: hosted 450 | version: "4.0.2" 451 | image: 452 | dependency: transitive 453 | description: 454 | name: image 455 | sha256: "2237616a36c0d69aef7549ab439b833fb7f9fb9fc861af2cc9ac3eedddd69ca8" 456 | url: "https://pub.dev" 457 | source: hosted 458 | version: "4.2.0" 459 | io: 460 | dependency: transitive 461 | description: 462 | name: io 463 | sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" 464 | url: "https://pub.dev" 465 | source: hosted 466 | version: "1.0.4" 467 | js: 468 | dependency: transitive 469 | description: 470 | name: js 471 | sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 472 | url: "https://pub.dev" 473 | source: hosted 474 | version: "0.6.7" 475 | json_annotation: 476 | dependency: "direct main" 477 | description: 478 | name: json_annotation 479 | sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" 480 | url: "https://pub.dev" 481 | source: hosted 482 | version: "4.9.0" 483 | json_serializable: 484 | dependency: "direct dev" 485 | description: 486 | name: json_serializable 487 | sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b 488 | url: "https://pub.dev" 489 | source: hosted 490 | version: "6.8.0" 491 | lints: 492 | dependency: transitive 493 | description: 494 | name: lints 495 | sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" 496 | url: "https://pub.dev" 497 | source: hosted 498 | version: "2.1.1" 499 | logger: 500 | dependency: "direct main" 501 | description: 502 | name: logger 503 | sha256: af05cc8714f356fd1f3888fb6741cbe9fbe25cdb6eedbab80e1a6db21047d4a4 504 | url: "https://pub.dev" 505 | source: hosted 506 | version: "2.3.0" 507 | logging: 508 | dependency: transitive 509 | description: 510 | name: logging 511 | sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" 512 | url: "https://pub.dev" 513 | source: hosted 514 | version: "1.2.0" 515 | matcher: 516 | dependency: transitive 517 | description: 518 | name: matcher 519 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" 520 | url: "https://pub.dev" 521 | source: hosted 522 | version: "0.12.16" 523 | material_color_utilities: 524 | dependency: transitive 525 | description: 526 | name: material_color_utilities 527 | sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" 528 | url: "https://pub.dev" 529 | source: hosted 530 | version: "0.5.0" 531 | meta: 532 | dependency: transitive 533 | description: 534 | name: meta 535 | sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e 536 | url: "https://pub.dev" 537 | source: hosted 538 | version: "1.10.0" 539 | mime: 540 | dependency: transitive 541 | description: 542 | name: mime 543 | sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" 544 | url: "https://pub.dev" 545 | source: hosted 546 | version: "1.0.5" 547 | octo_image: 548 | dependency: transitive 549 | description: 550 | name: octo_image 551 | sha256: "45b40f99622f11901238e18d48f5f12ea36426d8eced9f4cbf58479c7aa2430d" 552 | url: "https://pub.dev" 553 | source: hosted 554 | version: "2.0.0" 555 | package_config: 556 | dependency: transitive 557 | description: 558 | name: package_config 559 | sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" 560 | url: "https://pub.dev" 561 | source: hosted 562 | version: "2.1.0" 563 | path: 564 | dependency: transitive 565 | description: 566 | name: path 567 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" 568 | url: "https://pub.dev" 569 | source: hosted 570 | version: "1.8.3" 571 | path_provider: 572 | dependency: transitive 573 | description: 574 | name: path_provider 575 | sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 576 | url: "https://pub.dev" 577 | source: hosted 578 | version: "2.1.3" 579 | path_provider_android: 580 | dependency: transitive 581 | description: 582 | name: path_provider_android 583 | sha256: a248d8146ee5983446bf03ed5ea8f6533129a12b11f12057ad1b4a67a2b3b41d 584 | url: "https://pub.dev" 585 | source: hosted 586 | version: "2.2.4" 587 | path_provider_foundation: 588 | dependency: transitive 589 | description: 590 | name: path_provider_foundation 591 | sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f" 592 | url: "https://pub.dev" 593 | source: hosted 594 | version: "2.3.2" 595 | path_provider_linux: 596 | dependency: transitive 597 | description: 598 | name: path_provider_linux 599 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 600 | url: "https://pub.dev" 601 | source: hosted 602 | version: "2.2.1" 603 | path_provider_platform_interface: 604 | dependency: transitive 605 | description: 606 | name: path_provider_platform_interface 607 | sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" 608 | url: "https://pub.dev" 609 | source: hosted 610 | version: "2.1.2" 611 | path_provider_windows: 612 | dependency: transitive 613 | description: 614 | name: path_provider_windows 615 | sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 616 | url: "https://pub.dev" 617 | source: hosted 618 | version: "2.3.0" 619 | petitparser: 620 | dependency: transitive 621 | description: 622 | name: petitparser 623 | sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 624 | url: "https://pub.dev" 625 | source: hosted 626 | version: "6.0.2" 627 | platform: 628 | dependency: transitive 629 | description: 630 | name: platform 631 | sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" 632 | url: "https://pub.dev" 633 | source: hosted 634 | version: "3.1.5" 635 | plugin_platform_interface: 636 | dependency: transitive 637 | description: 638 | name: plugin_platform_interface 639 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" 640 | url: "https://pub.dev" 641 | source: hosted 642 | version: "2.1.8" 643 | pool: 644 | dependency: transitive 645 | description: 646 | name: pool 647 | sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" 648 | url: "https://pub.dev" 649 | source: hosted 650 | version: "1.5.1" 651 | pub_semver: 652 | dependency: transitive 653 | description: 654 | name: pub_semver 655 | sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" 656 | url: "https://pub.dev" 657 | source: hosted 658 | version: "2.1.4" 659 | pubspec_parse: 660 | dependency: transitive 661 | description: 662 | name: pubspec_parse 663 | sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 664 | url: "https://pub.dev" 665 | source: hosted 666 | version: "1.3.0" 667 | rxdart: 668 | dependency: transitive 669 | description: 670 | name: rxdart 671 | sha256: "0c7c0cedd93788d996e33041ffecda924cc54389199cde4e6a34b440f50044cb" 672 | url: "https://pub.dev" 673 | source: hosted 674 | version: "0.27.7" 675 | shared_preferences: 676 | dependency: "direct main" 677 | description: 678 | name: shared_preferences 679 | sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 680 | url: "https://pub.dev" 681 | source: hosted 682 | version: "2.2.3" 683 | shared_preferences_android: 684 | dependency: transitive 685 | description: 686 | name: shared_preferences_android 687 | sha256: "1ee8bf911094a1b592de7ab29add6f826a7331fb854273d55918693d5364a1f2" 688 | url: "https://pub.dev" 689 | source: hosted 690 | version: "2.2.2" 691 | shared_preferences_foundation: 692 | dependency: transitive 693 | description: 694 | name: shared_preferences_foundation 695 | sha256: "7708d83064f38060c7b39db12aefe449cb8cdc031d6062280087bc4cdb988f5c" 696 | url: "https://pub.dev" 697 | source: hosted 698 | version: "2.3.5" 699 | shared_preferences_linux: 700 | dependency: transitive 701 | description: 702 | name: shared_preferences_linux 703 | sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" 704 | url: "https://pub.dev" 705 | source: hosted 706 | version: "2.3.2" 707 | shared_preferences_platform_interface: 708 | dependency: transitive 709 | description: 710 | name: shared_preferences_platform_interface 711 | sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b" 712 | url: "https://pub.dev" 713 | source: hosted 714 | version: "2.3.2" 715 | shared_preferences_web: 716 | dependency: transitive 717 | description: 718 | name: shared_preferences_web 719 | sha256: "7b15ffb9387ea3e237bb7a66b8a23d2147663d391cafc5c8f37b2e7b4bde5d21" 720 | url: "https://pub.dev" 721 | source: hosted 722 | version: "2.2.2" 723 | shared_preferences_windows: 724 | dependency: transitive 725 | description: 726 | name: shared_preferences_windows 727 | sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" 728 | url: "https://pub.dev" 729 | source: hosted 730 | version: "2.3.2" 731 | shelf: 732 | dependency: transitive 733 | description: 734 | name: shelf 735 | sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 736 | url: "https://pub.dev" 737 | source: hosted 738 | version: "1.4.1" 739 | shelf_web_socket: 740 | dependency: transitive 741 | description: 742 | name: shelf_web_socket 743 | sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" 744 | url: "https://pub.dev" 745 | source: hosted 746 | version: "1.0.4" 747 | sky_engine: 748 | dependency: transitive 749 | description: flutter 750 | source: sdk 751 | version: "0.0.99" 752 | source_gen: 753 | dependency: transitive 754 | description: 755 | name: source_gen 756 | sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" 757 | url: "https://pub.dev" 758 | source: hosted 759 | version: "1.5.0" 760 | source_helper: 761 | dependency: transitive 762 | description: 763 | name: source_helper 764 | sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd" 765 | url: "https://pub.dev" 766 | source: hosted 767 | version: "1.3.4" 768 | source_span: 769 | dependency: transitive 770 | description: 771 | name: source_span 772 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 773 | url: "https://pub.dev" 774 | source: hosted 775 | version: "1.10.0" 776 | sprintf: 777 | dependency: transitive 778 | description: 779 | name: sprintf 780 | sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" 781 | url: "https://pub.dev" 782 | source: hosted 783 | version: "7.0.0" 784 | sqflite: 785 | dependency: transitive 786 | description: 787 | name: sqflite 788 | sha256: a9016f495c927cb90557c909ff26a6d92d9bd54fc42ba92e19d4e79d61e798c6 789 | url: "https://pub.dev" 790 | source: hosted 791 | version: "2.3.2" 792 | sqflite_common: 793 | dependency: transitive 794 | description: 795 | name: sqflite_common 796 | sha256: "28d8c66baee4968519fb8bd6cdbedad982d6e53359091f0b74544a9f32ec72d5" 797 | url: "https://pub.dev" 798 | source: hosted 799 | version: "2.5.3" 800 | stack_trace: 801 | dependency: transitive 802 | description: 803 | name: stack_trace 804 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" 805 | url: "https://pub.dev" 806 | source: hosted 807 | version: "1.11.1" 808 | stream_channel: 809 | dependency: transitive 810 | description: 811 | name: stream_channel 812 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 813 | url: "https://pub.dev" 814 | source: hosted 815 | version: "2.1.2" 816 | stream_transform: 817 | dependency: transitive 818 | description: 819 | name: stream_transform 820 | sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" 821 | url: "https://pub.dev" 822 | source: hosted 823 | version: "2.1.0" 824 | string_scanner: 825 | dependency: transitive 826 | description: 827 | name: string_scanner 828 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 829 | url: "https://pub.dev" 830 | source: hosted 831 | version: "1.2.0" 832 | synchronized: 833 | dependency: transitive 834 | description: 835 | name: synchronized 836 | sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558" 837 | url: "https://pub.dev" 838 | source: hosted 839 | version: "3.1.0+1" 840 | term_glyph: 841 | dependency: transitive 842 | description: 843 | name: term_glyph 844 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 845 | url: "https://pub.dev" 846 | source: hosted 847 | version: "1.2.1" 848 | test_api: 849 | dependency: transitive 850 | description: 851 | name: test_api 852 | sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" 853 | url: "https://pub.dev" 854 | source: hosted 855 | version: "0.6.1" 856 | timing: 857 | dependency: transitive 858 | description: 859 | name: timing 860 | sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" 861 | url: "https://pub.dev" 862 | source: hosted 863 | version: "1.0.1" 864 | typed_data: 865 | dependency: transitive 866 | description: 867 | name: typed_data 868 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c 869 | url: "https://pub.dev" 870 | source: hosted 871 | version: "1.3.2" 872 | universal_io: 873 | dependency: transitive 874 | description: 875 | name: universal_io 876 | sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" 877 | url: "https://pub.dev" 878 | source: hosted 879 | version: "2.2.2" 880 | url_launcher: 881 | dependency: "direct main" 882 | description: 883 | name: url_launcher 884 | sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3" 885 | url: "https://pub.dev" 886 | source: hosted 887 | version: "6.3.0" 888 | url_launcher_android: 889 | dependency: transitive 890 | description: 891 | name: url_launcher_android 892 | sha256: "17cd5e205ea615e2c6ea7a77323a11712dffa0720a8a90540db57a01347f9ad9" 893 | url: "https://pub.dev" 894 | source: hosted 895 | version: "6.3.2" 896 | url_launcher_ios: 897 | dependency: transitive 898 | description: 899 | name: url_launcher_ios 900 | sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03" 901 | url: "https://pub.dev" 902 | source: hosted 903 | version: "6.2.4" 904 | url_launcher_linux: 905 | dependency: transitive 906 | description: 907 | name: url_launcher_linux 908 | sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811 909 | url: "https://pub.dev" 910 | source: hosted 911 | version: "3.1.1" 912 | url_launcher_macos: 913 | dependency: transitive 914 | description: 915 | name: url_launcher_macos 916 | sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de" 917 | url: "https://pub.dev" 918 | source: hosted 919 | version: "3.2.0" 920 | url_launcher_platform_interface: 921 | dependency: transitive 922 | description: 923 | name: url_launcher_platform_interface 924 | sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" 925 | url: "https://pub.dev" 926 | source: hosted 927 | version: "2.3.2" 928 | url_launcher_web: 929 | dependency: transitive 930 | description: 931 | name: url_launcher_web 932 | sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b 933 | url: "https://pub.dev" 934 | source: hosted 935 | version: "2.2.3" 936 | url_launcher_windows: 937 | dependency: transitive 938 | description: 939 | name: url_launcher_windows 940 | sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7 941 | url: "https://pub.dev" 942 | source: hosted 943 | version: "3.1.1" 944 | uuid: 945 | dependency: transitive 946 | description: 947 | name: uuid 948 | sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90" 949 | url: "https://pub.dev" 950 | source: hosted 951 | version: "4.4.2" 952 | vector_math: 953 | dependency: transitive 954 | description: 955 | name: vector_math 956 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 957 | url: "https://pub.dev" 958 | source: hosted 959 | version: "2.1.4" 960 | watcher: 961 | dependency: transitive 962 | description: 963 | name: watcher 964 | sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" 965 | url: "https://pub.dev" 966 | source: hosted 967 | version: "1.1.0" 968 | web: 969 | dependency: transitive 970 | description: 971 | name: web 972 | sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 973 | url: "https://pub.dev" 974 | source: hosted 975 | version: "0.3.0" 976 | web_socket_channel: 977 | dependency: transitive 978 | description: 979 | name: web_socket_channel 980 | sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b 981 | url: "https://pub.dev" 982 | source: hosted 983 | version: "2.4.0" 984 | xdg_directories: 985 | dependency: transitive 986 | description: 987 | name: xdg_directories 988 | sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d 989 | url: "https://pub.dev" 990 | source: hosted 991 | version: "1.0.4" 992 | xml: 993 | dependency: transitive 994 | description: 995 | name: xml 996 | sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 997 | url: "https://pub.dev" 998 | source: hosted 999 | version: "6.5.0" 1000 | yaml: 1001 | dependency: transitive 1002 | description: 1003 | name: yaml 1004 | sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" 1005 | url: "https://pub.dev" 1006 | source: hosted 1007 | version: "3.1.2" 1008 | sdks: 1009 | dart: ">=3.2.1 <4.0.0" 1010 | flutter: ">=3.16.0" 1011 | --------------------------------------------------------------------------------