├── .github
└── workflows
│ └── build.yml
├── .gitignore
├── .metadata
├── .vscode
├── launch.json
└── settings.json
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── ic_launcher-playstore.png
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_v2ex
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ ├── ic_launcher_foreground.png
│ │ │ ├── ic_launcher_round.png
│ │ │ └── ic_stat_name.png
│ │ │ ├── drawable-mdpi
│ │ │ ├── ic_launcher_foreground.png
│ │ │ ├── ic_launcher_round.png
│ │ │ └── ic_stat_name.png
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable-xhdpi
│ │ │ ├── ic_launcher_foreground.png
│ │ │ ├── ic_launcher_round.png
│ │ │ └── ic_stat_name.png
│ │ │ ├── drawable-xxhdpi
│ │ │ ├── ic_launcher_foreground.png
│ │ │ ├── ic_launcher_round.png
│ │ │ └── ic_stat_name.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ ├── ic_launcher_foreground.png
│ │ │ ├── ic_launcher_round.png
│ │ │ └── ic_stat_name.png
│ │ │ ├── drawable
│ │ │ ├── app_icon.png
│ │ │ ├── ic_launcher_background.xml
│ │ │ ├── icon_hot.png
│ │ │ ├── icon_search.png
│ │ │ ├── icon_sign.png
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── raw
│ │ │ ├── keep.xml
│ │ │ └── slow_spring_board.mp3
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ ├── ic_launcher_background.xml
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── fonts
│ └── NotoSansSC
│ │ ├── NotoSansSC-Black.otf
│ │ ├── NotoSansSC-Bold.otf
│ │ ├── NotoSansSC-Light.otf
│ │ ├── NotoSansSC-Medium.otf
│ │ ├── NotoSansSC-Regular.otf
│ │ ├── NotoSansSC-Thin.otf
│ │ └── OFL.txt
├── images
│ ├── avatar.png
│ ├── backtop.png
│ ├── bronze.png
│ ├── gold.png
│ ├── google.png
│ ├── icon
│ │ ├── app_icon.png
│ │ ├── ic_launcher_foreground.png
│ │ ├── icon_android.png
│ │ ├── icon_ios.png
│ │ ├── icon_launcher.png
│ │ └── logo.html
│ ├── silver.png
│ └── social
│ │ ├── About.me.png
│ │ ├── BattleTag.png
│ │ ├── Btc.png
│ │ ├── Coding.net.png
│ │ ├── Duolingo.png
│ │ ├── Geo.png
│ │ ├── Github.png
│ │ ├── Goodreads.png
│ │ ├── Instagram.png
│ │ ├── Last.fm.png
│ │ ├── NOSTR.png
│ │ ├── Ps.png
│ │ ├── Steam.png
│ │ ├── Telegram.png
│ │ ├── Twitch.tv.png
│ │ ├── Twitter.png
│ │ ├── Website.png
│ │ ├── dribbble.png
│ │ └── mario.png
├── preview
│ ├── preview_1.png
│ ├── preview_2.png
│ ├── preview_3.png
│ └── preview_4.png
└── sound
│ └── slow_spring_board.mp3
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ ├── Contents.json
│ ├── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── icon_hot.imageset
│ │ ├── Contents.json
│ │ └── icon_hot.png
│ ├── icon_search.imageset
│ │ ├── Contents.json
│ │ └── icon_search.png
│ └── icon_sign.imageset
│ │ ├── Contents.json
│ │ └── icon_sign.png
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ ├── Runner-Bridging-Header.h
│ ├── Runner.entitlements
│ └── RunnerRelease.entitlements
├── lib
├── components
│ ├── adaptive
│ │ ├── destinations.dart
│ │ ├── main.dart
│ │ ├── resize_layout.dart
│ │ ├── second_body.dart
│ │ ├── slide.dart
│ │ └── trailing.dart
│ ├── common
│ │ ├── appbar.dart
│ │ ├── avatar.dart
│ │ ├── custom_loading.dart
│ │ ├── footer.dart
│ │ ├── image_loading.dart
│ │ ├── network_error.dart
│ │ ├── node_tag.dart
│ │ ├── pull_refresh.dart
│ │ ├── skeleton.dart
│ │ ├── skeleton_topic.dart
│ │ └── skeleton_topic_recent.dart
│ ├── extended_text
│ │ ├── at_text.dart
│ │ ├── emoji_text.dart
│ │ ├── image_text.dart
│ │ ├── selection_controls.dart
│ │ └── text_span_builder.dart
│ ├── home
│ │ ├── left_drawer.dart
│ │ ├── list_item.dart
│ │ ├── search_bar.dart
│ │ ├── search_bar_adaptive.dart
│ │ ├── sticky_bar.dart
│ │ └── tabBar_list.dart
│ ├── member
│ │ ├── reply_item.dart
│ │ ├── reply_item_blank.dart
│ │ ├── topic_item.dart
│ │ └── topic_item_blank.dart
│ ├── message
│ │ └── notice_item.dart
│ ├── search
│ │ ├── history.dart
│ │ └── menu.dart
│ └── topic
│ │ ├── bottom_bar.dart
│ │ ├── html_render.dart
│ │ ├── main.dart
│ │ ├── member_list.dart
│ │ ├── reply_item.dart
│ │ ├── reply_new.dart
│ │ ├── reply_sheet.dart
│ │ └── skeleton_main.dart
├── http
│ ├── dio_network.dart
│ ├── dio_web.dart
│ ├── github.dart
│ ├── init.dart
│ ├── interceptor.dart
│ ├── node.dart
│ ├── soV2ex.dart
│ ├── topic.dart
│ └── user.dart
├── main.dart
├── models
│ ├── change_log.dart
│ ├── network
│ │ ├── item_node.dart
│ │ ├── item_node_topic.dart
│ │ └── item_topic.dart
│ ├── tabs.dart
│ ├── version.dart
│ └── web
│ │ ├── item_member_avatar.dart
│ │ ├── item_member_notice.dart
│ │ ├── item_member_reply.dart
│ │ ├── item_member_social.dart
│ │ ├── item_member_topic.dart
│ │ ├── item_node_list.dart
│ │ ├── item_tab_topic.dart
│ │ ├── item_tab_topic.g.dart
│ │ ├── item_topic_reply.dart
│ │ ├── item_topic_reply.g.dart
│ │ ├── item_topic_subtle.dart
│ │ ├── item_topic_subtle.g.dart
│ │ ├── model_login_detail.dart
│ │ ├── model_member_notice.dart
│ │ ├── model_member_profile.dart
│ │ ├── model_member_reply.dart
│ │ ├── model_member_topic.dart
│ │ ├── model_node_fav.dart
│ │ ├── model_node_list.dart
│ │ ├── model_topic_detail.dart
│ │ ├── model_topic_detail.g.dart
│ │ ├── model_topic_fav.dart
│ │ └── model_topic_follow.dart
├── package
│ ├── markdown_editable_textinput
│ │ ├── format_markdown.dart
│ │ └── markdown_text_input.dart
│ └── xpath
│ │ ├── pubspec.lock
│ │ ├── pubspec.yaml
│ │ ├── src
│ │ └── xpath_base.dart
│ │ └── xpath.dart
├── pages
│ ├── go
│ │ └── :nodeId.dart
│ ├── help
│ │ ├── change_log
│ │ │ ├── controller.dart
│ │ │ ├── index.dart
│ │ │ └── view.dart
│ │ └── network.dart
│ ├── home
│ │ └── controller.dart
│ ├── hot
│ │ ├── controller.dart
│ │ ├── index.dart
│ │ └── view.dart
│ ├── member
│ │ ├── :memberId.dart
│ │ ├── :memberId
│ │ │ ├── replies.dart
│ │ │ └── topics.dart
│ │ └── controller.dart
│ ├── my
│ │ ├── follow.dart
│ │ └── topics.dart
│ ├── page_agreement.dart
│ ├── page_help.dart
│ ├── page_history.dart
│ ├── page_history_hot.dart
│ ├── page_home.dart
│ ├── page_login.dart
│ ├── page_message.dart
│ ├── page_nodes.dart
│ ├── page_nodes_topic.dart
│ ├── page_preview.dart
│ ├── page_setting.dart
│ ├── page_webView.dart
│ ├── page_write.dart
│ ├── search
│ │ ├── controller.dart
│ │ ├── index.dart
│ │ ├── view.dart
│ │ └── widgets
│ │ │ └── appbar.dart
│ ├── setting
│ │ ├── page_display_mode.dart
│ │ ├── page_font.dart
│ │ └── page_nodes_sort.dart
│ └── t
│ │ ├── :topicId.dart
│ │ └── controller.dart
├── router
│ └── app_pages.dart
├── service
│ ├── i18n_keyword.dart
│ ├── local_notice.dart
│ ├── read.dart
│ ├── search.dart
│ └── translation.dart
└── utils
│ ├── app_scheme.dart
│ ├── cache.dart
│ ├── cookie.dart
│ ├── event_bus.dart
│ ├── global.dart
│ ├── hive.dart
│ ├── login.dart
│ ├── proxy.dart
│ ├── storage.dart
│ ├── string.dart
│ ├── upload.dart
│ └── utils.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── index.html
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | name: build_apk
2 |
3 | # action事件触发
4 | on:
5 | # push main时触发
6 | push:
7 | # branches: [main]
8 | # push tag时触发
9 | tags:
10 | - v*
11 | # push_request:
12 | # branches: [main]
13 |
14 | # 可以有多个jobs
15 | jobs:
16 | build_apk:
17 | # 运行环境 ubuntu-latest window-latest mac-latest
18 | runs-on: ubuntu-latest
19 |
20 | # 每个jobs中可以有多个steps
21 | steps:
22 | - name: 代码迁出
23 | uses: actions/checkout@v3
24 |
25 | - name: 构建Java环境
26 | uses: actions/setup-java@v3
27 | with:
28 | distribution: "zulu"
29 | java-version: "17"
30 | token: ${{secrets.GIT_TOKEN}}
31 |
32 | # - name: 检查缓存
33 | # uses: actions/cache@v2
34 | # id: cache-flutter
35 | # with:
36 | # path: /root/flutter-sdk # Flutter SDK 的路径
37 | # key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.lock') }}
38 |
39 | - name: 安装Flutter
40 | # if: steps.cache-flutter.outputs.cache-hit != 'true'
41 | uses: subosito/flutter-action@v2
42 | with:
43 | flutter-version: '3.24.4'
44 | channel: 'any'
45 | - run: flutter --version
46 |
47 | # 签名文件
48 | # - name: Decode keystore
49 | # run: |
50 | # echo $KEYSTORE_BASE64 | base64 -di > android/app/vvex.jks
51 | # env:
52 | # KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
53 |
54 | # 下载项目依赖
55 | - name: flutter pub get
56 | run: flutter pub get
57 |
58 | - name: 解码生成 jks
59 | run: echo $KEYSTORE_BASE64 | base64 -di > android/app/vvex.jks
60 | env:
61 | KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
62 |
63 | - name: flutter build apk
64 | # 对应 android/app/build.gradle signingConfigs中的配置项
65 | run: flutter build apk --release --split-per-abi
66 | env:
67 | KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
68 | KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
69 | KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
70 |
71 | - name: 发布
72 | uses: ncipollo/release-action@v1
73 | with:
74 | artifacts: "build/app/outputs/flutter-apk/vvex-*.apk"
75 | token: ${{ secrets.GIT_TOKEN }}
76 | allowUpdates: true
77 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .build/
9 | .buildlog/
10 | .history
11 | .svn/
12 | .swiftpm/
13 | migrate_working_dir/
14 |
15 | # IntelliJ related
16 | *.iml
17 | *.ipr
18 | *.iws
19 | .idea/
20 |
21 | # The .vscode folder contains launch configuration and tasks you configure in
22 | # VS Code which you may wish to be included in version control, so this line
23 | # is commented out by default.
24 | #.vscode/
25 |
26 | # Flutter/Dart/Pub related
27 | **/doc/api/
28 | **/ios/Flutter/.last_build_id
29 | .dart_tool/
30 | .flutter-plugins
31 | .flutter-plugins-dependencies
32 | .packages
33 | .pub-cache/
34 | .pub/
35 | /build/
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/.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.
5 |
6 | version:
7 | revision: 135454af32477f815a7525073027a3ff9eff1bfd
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: 135454af32477f815a7525073027a3ff9eff1bfd
17 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
18 | - platform: android
19 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
20 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
21 | - platform: ios
22 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
23 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
24 | - platform: linux
25 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
26 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
27 | - platform: macos
28 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
29 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
30 | - platform: web
31 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
32 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
33 | - platform: windows
34 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
35 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // 使用 IntelliSense 了解相关属性。
3 | // 悬停以查看现有属性的描述。
4 | // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "flutter_v2ex",
9 | "request": "launch",
10 | "type": "dart"
11 | },
12 | {
13 | "name": "flutter_v2ex (profile mode)",
14 | "request": "launch",
15 | "type": "dart",
16 | "flutterMode": "profile"
17 | },
18 | {
19 | "name": "flutter_v2ex (release mode)",
20 | "request": "launch",
21 | "type": "dart",
22 | "flutterMode": "release"
23 | },
24 | {
25 | "name": "xpath",
26 | "cwd": "lib/package/xpath",
27 | "request": "launch",
28 | "type": "dart"
29 | }
30 | ]
31 | }
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.formatOnSave": true,
3 | "[dart]": {
4 | "editor.formatOnType": true
5 | }
6 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Infinite
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/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
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_v2ex/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.guozhigq.vvex
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/ic_stat_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-hdpi/ic_stat_name.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/ic_stat_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-mdpi/ic_stat_name.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/ic_stat_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xhdpi/ic_stat_name.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/ic_stat_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xxhdpi/ic_stat_name.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/ic_stat_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable-xxxhdpi/ic_stat_name.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable/app_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/icon_hot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable/icon_hot.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/icon_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable/icon_search.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/icon_sign.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/drawable/icon_sign.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/raw/keep.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/android/app/src/main/res/raw/slow_spring_board.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/android/app/src/main/res/raw/slow_spring_board.mp3
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '2.0.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | configurations.all {
9 | resolutionStrategy {
10 | force 'androidx.core:core-ktx:1.6.0'
11 | }
12 | }
13 |
14 |
15 | dependencies {
16 | classpath 'com.android.tools.build:gradle:7.2.2'
17 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
18 | }
19 |
20 | // android {
21 | // defaultConfig {
22 | // multiDexEnabled true
23 | // }
24 | // }
25 | }
26 |
27 | allprojects {
28 | repositories {
29 | google()
30 | mavenCentral()
31 | }
32 | }
33 |
34 |
35 |
36 | rootProject.buildDir = '../build'
37 | subprojects {
38 | project.buildDir = "${rootProject.buildDir}/${project.name}"
39 | }
40 | subprojects {
41 | afterEvaluate { project ->
42 | if (project.plugins.hasPlugin("com.android.application") ||
43 | project.plugins.hasPlugin("com.android.library")) {
44 | project.android {
45 | compileSdkVersion 34
46 | buildToolsVersion "34.0.0"
47 | }
48 | }
49 | }
50 | }
51 | subprojects {
52 | project.evaluationDependsOn(':app')
53 | }
54 |
55 | tasks.register("clean", Delete) {
56 | delete rootProject.buildDir
57 | }
58 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/fonts/NotoSansSC/NotoSansSC-Black.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/fonts/NotoSansSC/NotoSansSC-Black.otf
--------------------------------------------------------------------------------
/assets/fonts/NotoSansSC/NotoSansSC-Bold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/fonts/NotoSansSC/NotoSansSC-Bold.otf
--------------------------------------------------------------------------------
/assets/fonts/NotoSansSC/NotoSansSC-Light.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/fonts/NotoSansSC/NotoSansSC-Light.otf
--------------------------------------------------------------------------------
/assets/fonts/NotoSansSC/NotoSansSC-Medium.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/fonts/NotoSansSC/NotoSansSC-Medium.otf
--------------------------------------------------------------------------------
/assets/fonts/NotoSansSC/NotoSansSC-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/fonts/NotoSansSC/NotoSansSC-Regular.otf
--------------------------------------------------------------------------------
/assets/fonts/NotoSansSC/NotoSansSC-Thin.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/fonts/NotoSansSC/NotoSansSC-Thin.otf
--------------------------------------------------------------------------------
/assets/images/avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/avatar.png
--------------------------------------------------------------------------------
/assets/images/backtop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/backtop.png
--------------------------------------------------------------------------------
/assets/images/bronze.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/bronze.png
--------------------------------------------------------------------------------
/assets/images/gold.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/gold.png
--------------------------------------------------------------------------------
/assets/images/google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/google.png
--------------------------------------------------------------------------------
/assets/images/icon/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/icon/app_icon.png
--------------------------------------------------------------------------------
/assets/images/icon/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/icon/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/assets/images/icon/icon_android.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/icon/icon_android.png
--------------------------------------------------------------------------------
/assets/images/icon/icon_ios.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/icon/icon_ios.png
--------------------------------------------------------------------------------
/assets/images/icon/icon_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/icon/icon_launcher.png
--------------------------------------------------------------------------------
/assets/images/icon/logo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
11 |
17 |
18 |
19 |
65 |
66 |
--------------------------------------------------------------------------------
/assets/images/silver.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/silver.png
--------------------------------------------------------------------------------
/assets/images/social/About.me.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/About.me.png
--------------------------------------------------------------------------------
/assets/images/social/BattleTag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/BattleTag.png
--------------------------------------------------------------------------------
/assets/images/social/Btc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Btc.png
--------------------------------------------------------------------------------
/assets/images/social/Coding.net.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Coding.net.png
--------------------------------------------------------------------------------
/assets/images/social/Duolingo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Duolingo.png
--------------------------------------------------------------------------------
/assets/images/social/Geo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Geo.png
--------------------------------------------------------------------------------
/assets/images/social/Github.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Github.png
--------------------------------------------------------------------------------
/assets/images/social/Goodreads.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Goodreads.png
--------------------------------------------------------------------------------
/assets/images/social/Instagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Instagram.png
--------------------------------------------------------------------------------
/assets/images/social/Last.fm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Last.fm.png
--------------------------------------------------------------------------------
/assets/images/social/NOSTR.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/NOSTR.png
--------------------------------------------------------------------------------
/assets/images/social/Ps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Ps.png
--------------------------------------------------------------------------------
/assets/images/social/Steam.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Steam.png
--------------------------------------------------------------------------------
/assets/images/social/Telegram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Telegram.png
--------------------------------------------------------------------------------
/assets/images/social/Twitch.tv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Twitch.tv.png
--------------------------------------------------------------------------------
/assets/images/social/Twitter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Twitter.png
--------------------------------------------------------------------------------
/assets/images/social/Website.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/Website.png
--------------------------------------------------------------------------------
/assets/images/social/dribbble.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/dribbble.png
--------------------------------------------------------------------------------
/assets/images/social/mario.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/images/social/mario.png
--------------------------------------------------------------------------------
/assets/preview/preview_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/preview/preview_1.png
--------------------------------------------------------------------------------
/assets/preview/preview_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/preview/preview_2.png
--------------------------------------------------------------------------------
/assets/preview/preview_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/preview/preview_3.png
--------------------------------------------------------------------------------
/assets/preview/preview_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/preview/preview_4.png
--------------------------------------------------------------------------------
/assets/sound/slow_spring_board.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/assets/sound/slow_spring_board.mp3
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 | 12.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 | import flutter_local_notifications
4 |
5 | @main
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | // This is required to make any communication available in the action isolate.
12 | FlutterLocalNotificationsPlugin.setPluginRegistrantCallback { (registry) in
13 | GeneratedPluginRegistrant.register(with: registry)
14 | }
15 |
16 | if #available(iOS 10.0, *) {
17 | UNUserNotificationCenter.current().delegate = self as UNUserNotificationCenterDelegate
18 | }
19 | GeneratedPluginRegistrant.register(with: self)
20 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/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/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/icon_hot.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "icon_hot.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/Assets.xcassets/icon_hot.imageset/icon_hot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/icon_hot.imageset/icon_hot.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/icon_search.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "icon_search.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/Assets.xcassets/icon_search.imageset/icon_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/icon_search.imageset/icon_search.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/icon_sign.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "icon_sign.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/Assets.xcassets/icon_sign.imageset/icon_sign.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/guozhigq/flutter_v2ex/170417910fbb496783d3681a83e08d2467ba4eba/ios/Runner/Assets.xcassets/icon_sign.imageset/icon_sign.png
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | VVEX
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | VVEX
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 | NSPhotoLibraryAddUsageDescription
38 | 请允许APP保存图片到相册
39 | NSCameraUsageDescription
40 | App需要您的同意,才能访问相册
41 | NSPhotoLibraryUsageDescription
42 | App需要您的同意,才能访问相机
43 | NSMicrophoneUsageDescription
44 | App需要您的同意,才能访问麦克风
45 | NSContactsUsageDescription
46 | App需要您的同意,才能访问通信录
47 | NSLocationUsageDescription
48 | App需要您的同意,才能访问位置
49 | NSLocationWhenInUseUsageDescription
50 | App需要您的同意,才能在使用期间访问位置
51 | NSLocationAlwaysUsageDescription
52 | App需要您的同意,才能始终访问位置
53 | NSCalendarsUsageDescription
54 | App需要您的同意,才能访问日历
55 | NSRemindersUsageDescription
56 | App需要您的同意,才能访问提醒事项
57 | NSMotionUsageDescription
58 | App需要您的同意,才能访问运动与健身
59 | NSHealthUpdateUsageDescription
60 | App需要您的同意,才能访问健康更新
61 | NSHealthShareUsageDescription
62 | App需要您的同意,才能访问健康分享
63 | NSBluetoothPeripheralUsageDescription
64 | App需要您的同意,才能访问蓝牙
65 | NSAppleMusicUsageDescription
66 | App需要您的同意,才能访问媒体资料库
67 | UISupportedInterfaceOrientations~ipad
68 |
69 | UIInterfaceOrientationPortrait
70 | UIInterfaceOrientationPortraitUpsideDown
71 | UIInterfaceOrientationLandscapeLeft
72 | UIInterfaceOrientationLandscapeRight
73 |
74 | UIViewControllerBasedStatusBarAppearance
75 |
76 | CADisableMinimumFrameDurationOnPhone
77 |
78 | UIApplicationSupportsIndirectInputEvents
79 |
80 | LSApplicationQueriesSchemes
81 |
82 | https
83 | http
84 |
85 | NSAppTransportSecurity
86 |
87 | NSAllowsArbitraryLoads
88 |
89 |
90 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | aps-environment
6 | development
7 | com.apple.developer.networking.vpn.api
8 |
9 | allow-vpn
10 |
11 | com.apple.developer.networking.wifi-info
12 |
13 | com.apple.developer.user-fonts
14 |
15 | app-usage
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/ios/Runner/RunnerRelease.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | aps-environment
6 | development
7 | com.apple.developer.networking.vpn.api
8 |
9 | allow-vpn
10 |
11 | com.apple.developer.networking.wifi-info
12 |
13 | com.apple.developer.user-fonts
14 |
15 | app-usage
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/lib/components/adaptive/destinations.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | // These are the destinations used within the AdaptiveScaffold navigation
4 | // builders.
5 | const List destinationsLarge = [
6 | NavigationDestination(
7 | label: '主题列表',
8 | icon: Icon(Icons.home_outlined),
9 | ),
10 | NavigationDestination(
11 | label: '全部节点',
12 | icon: Icon(Icons.window_outlined),
13 | ),
14 | NavigationDestination(
15 | label: '今日热议',
16 | icon: Icon(Icons.whatshot_outlined),
17 | ),
18 | NavigationDestination(
19 | label: '最近浏览',
20 | icon: Icon(Icons.history_outlined),
21 | ),
22 | NavigationDestination(
23 | label: '我的关注',
24 | icon: Icon(Icons.favorite_outline),
25 | ),
26 | NavigationDestination(
27 | label: '我的收藏',
28 | icon: Icon(Icons.star_border_rounded),
29 | ),
30 | ];
31 |
32 |
33 | NavigationRailDestination slideInNavigationItem({
34 | required double begin,
35 | required AnimationController controller,
36 | required IconData icon,
37 | required String label,
38 | }) {
39 | return NavigationRailDestination(
40 | icon: SlideTransition(
41 | position: Tween(
42 | begin: Offset(begin, 0),
43 | end: Offset.zero,
44 | ).animate(
45 | CurvedAnimation(parent: controller, curve: Curves.easeInOut),
46 | ),
47 | child: Icon(icon),
48 | ),
49 | label: Text(label),
50 | );
51 | }
--------------------------------------------------------------------------------
/lib/components/common/appbar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class AppBarWidget extends StatelessWidget implements PreferredSizeWidget {
4 | const AppBarWidget({
5 | required this.child,
6 | required this.controller,
7 | required this.visible,
8 | Key? key,
9 | }) : super(key: key);
10 |
11 | final PreferredSizeWidget child;
12 | final AnimationController controller;
13 | final bool visible;
14 |
15 | @override
16 | // TODO: implement preferredSize
17 | Size get preferredSize => child.preferredSize;
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | visible ? controller.reverse() : controller.forward();
22 | return SlideTransition(
23 | position: Tween(
24 | begin: Offset.zero,
25 | end: const Offset(0, -1),
26 | ).animate(
27 | CurvedAnimation(
28 | parent: controller,
29 | curve: Curves.easeInOutBack,
30 | )
31 | ),
32 | child: child,
33 | );
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/lib/components/common/avatar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_v2ex/utils/utils.dart';
3 | import 'package:cached_network_image/cached_network_image.dart';
4 |
5 | class CAvatar extends StatelessWidget {
6 | final String url;
7 | final double size;
8 | final int radius = 50;
9 | final Duration? fadeOutDuration;
10 | final Duration? fadeInDuration;
11 | final String? quality;
12 |
13 | const CAvatar({
14 | Key? key,
15 | required this.url,
16 | required this.size,
17 | this.fadeOutDuration,
18 | this.fadeInDuration,
19 | this.quality,
20 | }) : super(key: key);
21 |
22 | @override
23 | Widget build(BuildContext context) {
24 | return url != '' ? ClipOval(
25 | child: CachedNetworkImage(
26 | imageUrl: quality == 'origin' ? Utils().avatarLarge(url) : url,
27 | height: size,
28 | width: size,
29 | fit: BoxFit.cover,
30 | fadeOutDuration: fadeOutDuration ?? const Duration(milliseconds: 800),
31 | fadeInDuration: fadeInDuration ?? const Duration(milliseconds: 300),
32 | // progressIndicatorBuilder: (context, url, downloadProgress) =>
33 | // CircularProgressIndicator(
34 | // value: downloadProgress.progress,
35 | // strokeWidth: 3,
36 | // ),
37 | errorWidget: (context, url, error) => errAvatar(context),
38 | placeholder: (context, url) => placeholder(context),
39 | ),
40 | ) : errAvatar(context);
41 | }
42 |
43 | Widget placeholder(context) {
44 | return
45 | Container(
46 | width: size,
47 | height: size,
48 | decoration: BoxDecoration(
49 | color: Theme.of(context).colorScheme.onInverseSurface,
50 | ),
51 | clipBehavior: Clip.antiAlias,
52 | child: CircleAvatar(
53 | backgroundColor: Theme.of(context).colorScheme.onInverseSurface,
54 | backgroundImage: const AssetImage('assets/images/avatar.png')),
55 | );
56 | }
57 | Widget errAvatar(context) {
58 | return Container(
59 | decoration: BoxDecoration(
60 | color: Theme.of(context).colorScheme.surfaceVariant,
61 | borderRadius: BorderRadius.circular(50),
62 | ),
63 | clipBehavior: Clip.antiAlias,
64 | width: size,
65 | height: size,
66 | child: Center(
67 | child: Icon(
68 | Icons.person_rounded,
69 | size: size - 10,
70 | color: Theme.of(context).colorScheme.primary,
71 | ),
72 | ),
73 | );
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/lib/components/common/custom_loading.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | // ignore: must_be_immutable
4 | class CustomLoading extends StatelessWidget {
5 | String msg = '加载中';
6 | CustomLoading({required this.msg, super.key});
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Container(
11 | width: 120,
12 | height: 120,
13 | padding: const EdgeInsets.only(bottom: 15),
14 | decoration: BoxDecoration(
15 | color: Theme.of(context).dialogBackgroundColor,
16 | borderRadius: BorderRadius.circular(20)),
17 | child: Column(
18 | mainAxisSize: MainAxisSize.min,
19 | mainAxisAlignment: MainAxisAlignment.end,
20 | crossAxisAlignment: CrossAxisAlignment.center,
21 | children: [
22 | const CircularProgressIndicator(
23 | strokeWidth: 3,
24 | ),
25 | const SizedBox(height: 15),
26 | Text(
27 | msg,
28 | style: Theme.of(context).textTheme.titleSmall,
29 | ),
30 | ],
31 | ),
32 | );
33 | }
34 | }
35 |
36 | class CustomToast extends StatelessWidget {
37 | final String msg;
38 | const CustomToast({Key? key, required this.msg}) : super(key: key);
39 |
40 | @override
41 | Widget build(BuildContext context) {
42 | return Container(
43 | margin: const EdgeInsets.symmetric(horizontal: 30, vertical: 50),
44 | padding: const EdgeInsets.symmetric(horizontal: 25, vertical: 10),
45 | decoration: BoxDecoration(
46 | color: Theme.of(context).colorScheme.background,
47 | borderRadius: BorderRadius.circular(20),
48 | border: Border.all(color: Theme.of(context).colorScheme.outline.withOpacity(0.1)),
49 | boxShadow: [
50 | BoxShadow(
51 | color: Theme.of(context).colorScheme.background.withOpacity(0.05),
52 | blurRadius: 20,
53 | spreadRadius: 2,
54 | offset: const Offset(0, 0)
55 | ),
56 | ],
57 | ),
58 | child: Text(msg,
59 | style: Theme.of(context)
60 | .textTheme
61 | .titleSmall!
62 | .copyWith(color: Theme.of(context).colorScheme.primary)),
63 | );
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/lib/components/common/footer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FooterTips extends StatelessWidget {
4 | final String? type;
5 | const FooterTips({Key? key, this.type = 'noMore'}) : super(key: key);
6 |
7 | @override
8 | Widget build(BuildContext context) {
9 | return Container(
10 | width: double.infinity,
11 | height: 100 + MediaQuery.of(context).padding.bottom,
12 | padding: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom),
13 | child: Center(
14 | child: Row(
15 | mainAxisAlignment: MainAxisAlignment.center,
16 | children: [
17 | if(type == 'noMore')
18 | const Icon(Icons.auto_awesome),
19 | if(type == 'loading')
20 | SizedBox(
21 | width: 20,
22 | height: 20,
23 | child: CircularProgressIndicator(
24 | color: Theme.of(context)
25 | .colorScheme
26 | .onBackground,
27 | strokeWidth: 2.0)),
28 | const SizedBox(width: 16),
29 | Column(
30 | mainAxisSize: MainAxisSize.min,
31 | mainAxisAlignment: MainAxisAlignment.start,
32 | crossAxisAlignment: CrossAxisAlignment.start,
33 | children: [
34 | Text(type == 'noMore' ? '加载完成' : '加载中...'),
35 | const SizedBox(
36 | height: 4,
37 | ),
38 | Text('最后更新于刚刚', style: Theme.of(context).textTheme.bodySmall)
39 | ],
40 | )
41 | ],
42 | ),
43 | ),
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/components/common/network_error.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class NetworkErrorPage extends StatelessWidget {
4 | final String? message;
5 | final VoidCallback? onRetry;
6 | const NetworkErrorPage({super.key, this.message, this.onRetry});
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Center(
11 | child: Column(
12 | mainAxisAlignment: MainAxisAlignment.center,
13 | crossAxisAlignment: CrossAxisAlignment.center,
14 | children: [
15 | Icon(
16 | Icons.mood_bad,
17 | size: 80.0,
18 | color: Theme.of(context).colorScheme.primary,
19 | ),
20 | const SizedBox(height: 10.0),
21 | const Text(
22 | '网络请求失败',
23 | style: TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
24 | ),
25 | const SizedBox(height: 2.0),
26 | Text(
27 | message ?? '请检查您的网络连接,然后重试',
28 | textAlign: TextAlign.center,
29 | style: const TextStyle(fontSize: 14.0),
30 | ),
31 | const SizedBox(height: 20.0),
32 | ElevatedButton(
33 | onPressed: onRetry,
34 | child: const Text('重试'),
35 | ),
36 | ],
37 | ),
38 | );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/components/common/node_tag.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 |
4 | class NodeTag extends StatelessWidget {
5 | final String? nodeId;
6 | final String? nodeName;
7 | final String? route;
8 |
9 | const NodeTag({
10 | this.nodeId,
11 | this.nodeName,
12 | this.route,
13 | super.key,
14 | });
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | var bgColor = route == 'detail'
19 | ? Theme.of(context).colorScheme.onInverseSurface
20 | : Theme.of(context).colorScheme.surfaceVariant;
21 | return Material(
22 | borderRadius: BorderRadius.circular(50),
23 | color: bgColor,
24 | child: InkWell(
25 | onTap: () => Get.toNamed('/go/$nodeId'),
26 | borderRadius: BorderRadius.circular(50),
27 | child: Ink(
28 | padding: const EdgeInsets.symmetric(vertical: 3.5, horizontal: 10),
29 | child: Row(
30 | mainAxisSize: MainAxisSize.min,
31 | crossAxisAlignment: CrossAxisAlignment.center,
32 | children: [
33 | Text(
34 | nodeName!.contains('WATCH')? 'iWatch' : nodeName!,
35 | style: const TextStyle(
36 | fontSize: 11.0,
37 | textBaseline: TextBaseline.ideographic,
38 | ),
39 | )
40 | ],
41 | ),
42 | ),
43 | ),
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/components/common/skeleton_topic_recent.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_v2ex/utils/global.dart';
3 |
4 | class TopicItemSkeleton extends StatelessWidget {
5 | const TopicItemSkeleton({Key? key}) : super(key: key);
6 |
7 | @override
8 | Widget build(BuildContext context) {
9 | var commonColor = Theme.of(context).colorScheme.surfaceVariant;
10 | return Container(
11 | decoration: BoxDecoration(
12 | borderRadius: BorderRadius.circular(10),
13 | color: getBackground(context, 'listItem'),
14 | // color: Theme.of(context).colorScheme.onInverseSurface,
15 | ),
16 | margin: const EdgeInsets.only(top: 8, right: 12, bottom: 0, left: 12),
17 | padding: const EdgeInsets.fromLTRB(15, 18, 15, 15),
18 | child: Column(
19 | crossAxisAlignment: CrossAxisAlignment.start,
20 | children: [
21 | Container(
22 | width: 300,
23 | height: 16,
24 | margin: const EdgeInsets.only(top: 0, bottom: 12),
25 | color: commonColor,
26 | ),
27 | Row(
28 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
29 | children: [
30 | Row(
31 | children: [
32 | Container(
33 | width: 135,
34 | height: 14,
35 | color: commonColor,
36 | ),
37 | const SizedBox(width: 4),
38 | Container(
39 | width: 30,
40 | height: 14,
41 | color: commonColor,
42 | ),
43 | ],
44 | ),
45 | Container(
46 | width: 55,
47 | height: 21,
48 | decoration: BoxDecoration(
49 | borderRadius: BorderRadius.circular(50),
50 | color: commonColor,
51 | ),
52 | ),
53 | ],
54 | ),
55 | ],
56 | ),
57 | );
58 | }
59 | }
60 |
61 |
--------------------------------------------------------------------------------
/lib/components/extended_text/at_text.dart:
--------------------------------------------------------------------------------
1 | import 'package:extended_text_library/extended_text_library.dart';
2 | import 'package:flutter/gestures.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:get/get.dart';
5 |
6 | class AtText extends SpecialText {
7 | AtText(TextStyle? textStyle, SpecialTextGestureTapCallback? onTap,
8 | {this.showAtBackground = false, this.start, this.controller})
9 | : super(flag, ' ', textStyle, onTap: onTap);
10 | static const String flag = '@';
11 | final int? start;
12 | final TextEditingController? controller;
13 |
14 | /// whether show background for @somebody
15 | final bool showAtBackground;
16 |
17 | @override
18 | InlineSpan finishText() {
19 | final TextStyle? textStyle = this.textStyle?.copyWith(
20 | color: Theme.of(Get.context!).colorScheme.primary, fontSize: 16.0);
21 |
22 | final String atText = toString();
23 |
24 | return showAtBackground
25 | ? BackgroundTextSpan(
26 | background: Paint()
27 | ..color =
28 | Theme.of(Get.context!).colorScheme.primary.withOpacity(0.15),
29 | text: atText,
30 | actualText: atText,
31 | start: start!,
32 |
33 | ///caret can move into special text
34 | deleteAll: true,
35 | style: textStyle,
36 | recognizer: (TapGestureRecognizer()
37 | ..onTap = () {
38 | if (onTap != null) {
39 | onTap!(atText);
40 | }
41 | }))
42 |
43 | /// 点击@userName可直接删除 Text.rich与普通文本内容高度不一致
44 | // : ExtendedWidgetSpan(
45 | // actualText: atText,
46 | // start: start!,
47 | // style: textStyle,
48 | // child: GestureDetector(
49 | // child: Text.rich(TextSpan(
50 | // style: textStyle,
51 | // children: [
52 | // TextSpan(
53 | // text: '@',
54 | // style: TextStyle(
55 | // color:
56 | // Theme.of(Get.context!).colorScheme.onBackground)),
57 | // TextSpan(text: atText.split('@')[1]),
58 | // ],
59 | // )),
60 | // onTap: () {
61 | // controller!.value = controller!.value.copyWith(
62 | // text: controller!.text
63 | // .replaceRange(start!, start! + atText.length, ''),
64 | // selection: TextSelection.fromPosition(
65 | // TextPosition(offset: start!),
66 | // ),
67 | // );
68 | // },
69 | // ),
70 | // deleteAll: true,
71 | // );
72 | : SpecialTextSpan(
73 | text: atText,
74 | actualText: atText,
75 | start: start!,
76 | style: textStyle,
77 | recognizer: (TapGestureRecognizer()
78 | ..onTap = () {
79 | if (onTap != null) {
80 | onTap!(atText);
81 | }
82 | }),
83 | );
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/lib/components/extended_text/emoji_text.dart:
--------------------------------------------------------------------------------
1 | import 'package:extended_text_library/extended_text_library.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_v2ex/utils/string.dart';
4 |
5 | ///emoji/image text
6 | class EmojiText extends SpecialText {
7 | EmojiText(TextStyle? textStyle, {this.start})
8 | : super(EmojiText.flag, ']', textStyle);
9 | static const String flag = '[';
10 | final int? start;
11 | @override
12 | InlineSpan finishText() {
13 | final String key = toString();
14 |
15 | if (EmojiUitl.instance.emojiMap.containsKey(key)) {
16 | double size = 22;
17 |
18 | // final TextStyle ts = textStyle!;
19 | // if (ts.fontSize != null) {
20 | // size = ts.fontSize! * 1.15;
21 | // }
22 |
23 | return ImageSpan(
24 | NetworkImage(
25 | EmojiUitl.instance.emojiMap[key]!,
26 | ),
27 | actualText: key,
28 | imageWidth: size,
29 | imageHeight: size,
30 | start: start!,
31 | //fit: BoxFit.fill,
32 | margin: const EdgeInsets.all(1));
33 | }
34 |
35 | return TextSpan(text: toString(), style: textStyle);
36 | }
37 | }
38 |
39 | class EmojiUitl {
40 | final coolapkEmoticon = Strings.coolapkEmoticon;
41 | EmojiUitl._() {
42 | for (int i = 0; i < coolapkEmoticon.values.toList().length; i++) {
43 | _emojiMap['[${coolapkEmoticon.keys.toList()[i]}]'] =
44 | coolapkEmoticon.values.toList()[i];
45 | }
46 | }
47 |
48 | final Map _emojiMap = {};
49 |
50 | Map get emojiMap => _emojiMap;
51 |
52 | // final String _emojiFilePath = 'https://i.imgur.com/';
53 |
54 | static EmojiUitl? _instance;
55 | static EmojiUitl get instance => _instance ??= EmojiUitl._();
56 | }
57 |
--------------------------------------------------------------------------------
/lib/components/extended_text/image_text.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math';
2 |
3 | import 'package:extended_text_field/extended_text_field.dart';
4 | import 'package:flutter/material.dart' hide Element;
5 | import 'package:html/dom.dart' hide Text;
6 | import 'package:html/parser.dart';
7 |
8 | class ImageText extends SpecialText {
9 | ImageText(TextStyle? textStyle,
10 | {this.start, SpecialTextGestureTapCallback? onTap})
11 | : super(
12 | ImageText.flag,
13 | '/>',
14 | textStyle,
15 | onTap: onTap,
16 | );
17 |
18 | static const String flag = '
_imageUrl;
22 | @override
23 | InlineSpan finishText() {
24 | ///content already has endflag '/'
25 | final String text = toString();
26 |
27 | ///'
'
28 | // var index1 = text.indexOf(''') + 1;
29 | // var index2 = text.indexOf(''', index1);
30 | //
31 | // var url = text.substring(index1, index2);
32 | //
33 | ////'
'
34 | final Document html = parse(text);
35 |
36 | final Element img = html.getElementsByTagName('img').first;
37 | final String url = img.attributes['src']!;
38 | _imageUrl = url;
39 |
40 | //fontsize id define image height
41 | //size = 30.0/26.0 * fontSize
42 | double? width = 60.0;
43 | double? height = 60.0;
44 | const BoxFit fit = BoxFit.cover;
45 | const double num300 = 60.0;
46 | const double num400 = 80.0;
47 |
48 | height = num300;
49 | width = num400;
50 | const bool knowImageSize = true;
51 | if (knowImageSize) {
52 | height = double.tryParse(img.attributes['height']!);
53 | width = double.tryParse(img.attributes['width']!);
54 | final double n = height! / width!;
55 | if (n >= 4 / 3) {
56 | width = num300;
57 | height = num400;
58 | } else if (4 / 3 > n && n > 3 / 4) {
59 | final double maxValue = max(width, height);
60 | height = num400 * height / maxValue;
61 | width = num400 * width / maxValue;
62 | } else if (n <= 3 / 4) {
63 | width = num400;
64 | height = num300;
65 | }
66 | }
67 |
68 | ///fontSize 26 and text height =30.0
69 | //final double fontSize = 26.0;
70 |
71 | return ExtendedWidgetSpan(
72 | start: start!,
73 | actualText: text,
74 | child: GestureDetector(
75 | onTap: () {
76 | onTap?.call(url);
77 | },
78 | child: Image.network(
79 | url,
80 | width: width,
81 | height: height,
82 | fit: fit,
83 | ),
84 | ),
85 | );
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/lib/components/extended_text/text_span_builder.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_v2ex/components/extended_text/at_text.dart';
2 | import 'package:flutter_v2ex/components/extended_text/emoji_text.dart';
3 | import 'package:flutter_v2ex/components/extended_text/image_text.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:extended_text_library/extended_text_library.dart';
6 |
7 | class MySpecialTextSpanBuilder extends SpecialTextSpanBuilder {
8 | MySpecialTextSpanBuilder({
9 | this.showAtBackground = false,
10 | this.controller,
11 | });
12 |
13 | /// whether show background for @somebody
14 | final bool showAtBackground;
15 | final TextEditingController? controller;
16 |
17 | @override
18 | SpecialText? createSpecialText(String flag,
19 | {TextStyle? textStyle,
20 | SpecialTextGestureTapCallback? onTap,
21 | int? index}) {
22 | if (flag == '') {
23 | return null;
24 | }
25 |
26 | ///index is end index of start flag, so text start index should be index-(flag.length-1)
27 | if (isStart(flag, AtText.flag)) {
28 | return AtText(textStyle, onTap,
29 | start: index! - (AtText.flag.length - 1),
30 | showAtBackground: showAtBackground,
31 | controller: controller);
32 | }
33 |
34 | if (isStart(flag, EmojiText.flag)) {
35 | return EmojiText(textStyle, start: index! - (EmojiText.flag.length - 1));
36 | } else if (isStart(flag, ImageText.flag)) {
37 | return ImageText(textStyle,
38 | start: index! - (ImageText.flag.length - 1), onTap: onTap);
39 | } else if (isStart(flag, AtText.flag)) {
40 | return AtText(
41 | textStyle,
42 | onTap,
43 | start: index! - (AtText.flag.length - 1),
44 | showAtBackground: showAtBackground,
45 | );
46 | } else if (isStart(flag, EmojiText.flag)) {
47 | return EmojiText(textStyle, start: index! - (EmojiText.flag.length - 1));
48 | }
49 | // else if (isStart(flag, DollarText.flag)) {
50 | // return DollarText(textStyle, onTap,
51 | // start: index! - (DollarText.flag.length - 1));
52 | // }
53 |
54 | return null;
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/lib/components/home/sticky_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_adaptive_scaffold/flutter_adaptive_scaffold.dart';
3 | import 'package:flutter_v2ex/models/tabs.dart';
4 | import 'package:container_tab_indicator/container_tab_indicator.dart';
5 | import 'package:flutter_v2ex/pages/home/controller.dart';
6 | import 'package:get/get.dart';
7 |
8 | class HomeStickyBar extends StatelessWidget {
9 | const HomeStickyBar({super.key, required this.tabs, required this.ctr});
10 |
11 | final List tabs;
12 | final TabController ctr;
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | final TabStateController tabStateController = Get.put(TabStateController());
17 | return SizedBox(
18 | width: double.infinity,
19 | height: 40,
20 | child: Row(
21 | children: [
22 | Expanded(
23 | child: AdpatTabBar(
24 | controller: ctr,
25 | tabs: tabs,
26 | onTap: (index) {
27 | if (!ctr.indexIsChanging) {
28 | // tap(index);
29 | tabStateController.setTabIndex(index);
30 | }
31 | },
32 | ),
33 | ),
34 | // const SizedBox(width: 5),
35 | if (!Breakpoints.mediumAndUp.isActive(context))
36 | SizedBox(
37 | height: 50,
38 | child: Center(
39 | child: IconButton(
40 | onPressed: () => {Navigator.pushNamed(context, '/nodes')},
41 | icon: const Icon(Icons.segment_rounded, size: 19),
42 | ),
43 | ),
44 | ),
45 | ],
46 | ),
47 | );
48 | }
49 | }
50 |
51 | class AdpatTabBar extends StatelessWidget {
52 | final List tabs;
53 | final TabController? controller;
54 | final Function? onTap;
55 |
56 | const AdpatTabBar({
57 | Key? key,
58 | required this.tabs,
59 | this.controller,
60 | this.onTap,
61 | }) : super(key: key);
62 |
63 | @override
64 | Widget build(BuildContext context) {
65 | bool isiPad = Breakpoints.mediumAndUp.isActive(context);
66 | return TabBar(
67 | controller: controller,
68 | dividerColor: Colors.transparent,
69 | tabAlignment: tabs.length > 4 ? TabAlignment.start : TabAlignment.center,
70 | onTap: (index) => onTap?.call(index),
71 | isScrollable: true,
72 | enableFeedback: true,
73 | splashBorderRadius: BorderRadius.circular(6),
74 | padding: EdgeInsets.symmetric(horizontal: isiPad ? 10 : 5),
75 | tabs: tabs.map((item) {
76 | return Tab(text: item.name);
77 | }).toList(),
78 | // iPad
79 | labelColor: isiPad
80 | ? Theme.of(context).colorScheme.onBackground
81 | : Theme.of(context).colorScheme.primary,
82 | indicator: isiPad
83 | ? ContainerTabIndicator(
84 | width: 60,
85 | height: 36,
86 | radius: BorderRadius.circular(8.0),
87 | color: Theme.of(context).colorScheme.surfaceVariant,
88 | )
89 | : null,
90 | );
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/lib/components/member/reply_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 | import 'package:flutter_v2ex/models/web/item_member_reply.dart';
4 | import 'package:flutter_v2ex/components/topic/html_render.dart';
5 |
6 | class ReplyItem extends StatelessWidget {
7 | final MemberReplyItem replyItem;
8 |
9 | const ReplyItem({required this.replyItem, Key? key}) : super(key: key);
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return GestureDetector(
14 | child: Container(
15 | margin: const EdgeInsets.only(top: 8, right: 12, bottom: 0, left: 12),
16 | child: Material(
17 | color: Theme.of(context).colorScheme.onInverseSurface,
18 | borderRadius: BorderRadius.circular(10),
19 | child: InkWell(
20 | onTap: () => Get.toNamed('/t/${replyItem.topicId}'),
21 | borderRadius: BorderRadius.circular(10),
22 | child: Ink(
23 | padding: const EdgeInsets.fromLTRB(7, 15, 7, 0),
24 | child: content(context),
25 | ),
26 | ),
27 | ),
28 | ),
29 | );
30 | }
31 |
32 | Widget content(context) {
33 | return Column(
34 | crossAxisAlignment: CrossAxisAlignment.start,
35 | children: [
36 | Container(
37 | padding: const EdgeInsets.symmetric(horizontal: 2),
38 | margin: const EdgeInsets.only(top: 0, bottom: 4),
39 | child: HtmlRender(htmlContent: replyItem.replyContent),
40 | ),
41 | Container(
42 | alignment: Alignment.centerRight,
43 | padding: const EdgeInsets.symmetric(horizontal: 2),
44 | margin: const EdgeInsets.only(top: 0, bottom: 8),
45 | child: Text(replyItem.time,
46 | style: Theme.of(context)
47 | .textTheme
48 | .labelMedium!
49 | .copyWith(color: Theme.of(context).colorScheme.outline))),
50 | Container(
51 | padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 10),
52 | margin: const EdgeInsets.only(bottom: 7),
53 | decoration: BoxDecoration(
54 | color: Theme.of(context).colorScheme.background.withOpacity(0.8),
55 | borderRadius: BorderRadius.circular(6),
56 | ),
57 | child: Column(
58 | crossAxisAlignment: CrossAxisAlignment.start,
59 | children: [
60 | Row(
61 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
62 | children: [
63 | Text(
64 | replyItem.memberId,
65 | style: Theme.of(context).textTheme.titleSmall,
66 | ),
67 | Text(
68 | replyItem.nodeName,
69 | style: Theme.of(context)
70 | .textTheme
71 | .labelMedium!
72 | .copyWith(color: Theme.of(context).colorScheme.outline),
73 | )
74 | ],
75 | ),
76 | Divider(
77 | color: Theme.of(context).dividerColor.withOpacity(0.2),
78 | ),
79 | Text(replyItem.topicTitle)
80 | ],
81 | ),
82 | ),
83 | ],
84 | );
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/lib/components/member/reply_item_blank.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ReplyItemBlank extends StatelessWidget {
4 | const ReplyItemBlank({Key? key}) : super(key: key);
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return const Placeholder();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/lib/components/member/topic_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 | import 'package:flutter_v2ex/models/web/item_member_topic.dart';
4 | import 'package:flutter_v2ex/components/common/node_tag.dart';
5 |
6 | class TopicItem extends StatelessWidget {
7 | final MemberTopicItem topicItem;
8 |
9 | const TopicItem({required this.topicItem, Key? key}) : super(key: key);
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Container(
14 | margin: const EdgeInsets.only(top: 8, right: 12, bottom: 0, left: 12),
15 | child: Material(
16 | color: Theme.of(context).colorScheme.onInverseSurface,
17 | borderRadius: BorderRadius.circular(10),
18 | child: InkWell(
19 | onTap: () {
20 | var topicDetail = topicItem;
21 | // topicDetail.lastReplyTime = topicItem.time;
22 | var arguments = {
23 | "topic": topicDetail,
24 | "heroTag": ''
25 | };
26 | Get.toNamed('/t/${topicItem.topicId}', arguments: arguments);
27 | },
28 | borderRadius: BorderRadius.circular(10),
29 | child: Ink(
30 | padding: const EdgeInsets.fromLTRB(15, 18, 15, 15),
31 | child: content(context),
32 | ),
33 | ),
34 | ),
35 | );
36 | }
37 |
38 | Widget content(context) {
39 | return Column(
40 | crossAxisAlignment: CrossAxisAlignment.start,
41 | children: [
42 | Container(
43 | alignment: Alignment.centerLeft,
44 | margin: const EdgeInsets.only(bottom: 8),
45 | child: Text(
46 | topicItem.topicTitle,
47 | overflow: TextOverflow.ellipsis,
48 | maxLines: 2,
49 | style: Theme.of(context)
50 | .textTheme
51 | .titleSmall!
52 | .copyWith(height: 1.6, fontWeight: FontWeight.w500),
53 | ),
54 | ),
55 | Row(
56 | // 两端对齐
57 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
58 | children: [
59 | Row(
60 | children: [
61 | Text(
62 | topicItem.time,
63 | style: Theme.of(context)
64 | .textTheme
65 | .labelMedium!
66 | .copyWith(color: Theme.of(context).colorScheme.outline),
67 | ),
68 | const SizedBox(width: 10),
69 | Text(
70 | '${topicItem.replyCount}回复',
71 | style: Theme.of(context)
72 | .textTheme
73 | .labelMedium!
74 | .copyWith(color: Theme.of(context).colorScheme.outline),
75 | ),
76 | ],
77 | ),
78 | if (topicItem.nodeName.isNotEmpty) ...[
79 | NodeTag(
80 | nodeId: topicItem.nodeId,
81 | nodeName: topicItem.nodeName,
82 | route: 'home')
83 | ]
84 | ],
85 | ),
86 | // title
87 | ],
88 | );
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/lib/components/member/topic_item_blank.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class TopicItemBlank extends StatelessWidget {
4 | const TopicItemBlank({Key? key}) : super(key: key);
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return const Placeholder();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/lib/components/topic/skeleton_main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_v2ex/utils/storage.dart';
3 | import 'package:flutter_v2ex/components/common/skeleton.dart';
4 |
5 | class TopicDetailSkeleton extends StatelessWidget {
6 | const TopicDetailSkeleton({Key? key}) : super(key: key);
7 |
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Skeleton(
12 | child: Column(
13 | children: const [
14 | TopicItemSkeleton(),
15 | TopicItemSkeleton(),
16 | TopicItemSkeleton()
17 | ],
18 | ),
19 | );
20 | }
21 |
22 | }
23 |
24 | class TopicItemSkeleton extends StatelessWidget {
25 | const TopicItemSkeleton({Key? key}) : super(key: key);
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | var commonColor = Theme.of(context).colorScheme.onInverseSurface;
30 | double height = GStorage().getHtmlFs() + 2;
31 | return Container(
32 | margin: const EdgeInsets.fromLTRB(20, 8, 20, 0),
33 | child: Column(
34 | mainAxisAlignment: MainAxisAlignment.start,
35 | crossAxisAlignment: CrossAxisAlignment.start,
36 | children: [
37 | Container(
38 | width: double.infinity,
39 | height: height,
40 | margin: const EdgeInsets.only(top: 0, bottom: 8),
41 | color: commonColor,
42 | ),
43 | Container(
44 | width: double.infinity,
45 | height: height,
46 | margin: const EdgeInsets.only(top: 0, bottom: 8, right: 40),
47 | color: commonColor,
48 | ),
49 | Container(
50 | width: double.infinity,
51 | height: height,
52 | margin: const EdgeInsets.only(top: 0, bottom: 8, right: 80),
53 | color: commonColor,
54 | ),
55 | Container(
56 | width: double.infinity,
57 | height: height,
58 | margin: const EdgeInsets.only(top: 0, bottom: 12, right: 200),
59 | color: commonColor,
60 | ),
61 | ],
62 | ),
63 | );
64 | }
65 | }
66 |
67 |
--------------------------------------------------------------------------------
/lib/http/dio_network.dart:
--------------------------------------------------------------------------------
1 | import 'package:dio/dio.dart';
2 | import 'package:flutter_v2ex/http/init.dart';
3 | // import 'package:dio_http_cache/dio_http_cache.dart';
4 | import 'package:flutter_v2ex/models/network/item_node.dart';
5 | import 'package:flutter_v2ex/models/network/item_topic.dart';
6 | import 'package:flutter_v2ex/models/network/item_node_topic.dart';
7 |
8 | class DioRequestNet {
9 | // 所有节点
10 | final String allNodes = '/api/nodes/all.json';
11 |
12 | // 所有节点 topic
13 | final String allNodesT =
14 | '/api/nodes/list.json';
15 |
16 | // 热议
17 | final String hotTopics = '/api/topics/hot.json';
18 |
19 | // var cacheOptions = buildCacheOptions(
20 | // const Duration(days: 4),
21 | // forceRefresh: false,
22 | // );
23 |
24 | // 所有节点
25 | static Future> getAllNodes() async {
26 | Response response = await Request().get(
27 | DioRequestNet().allNodes,
28 | // cacheOptions: DioRequestNet().cacheOptions,
29 | );
30 | List list = response.data;
31 | return list.map((e) => NodeItem.fromJson(e)).toList();
32 | }
33 |
34 | // 热议
35 | static Future> getHotTopic() async {
36 | Response response = await Request().get(
37 | DioRequestNet().hotTopics,
38 | );
39 | List list = response.data;
40 | return list.map((e) => TopicItem.fromJson(e)).toList();
41 | }
42 |
43 | // 所有节点 topic
44 | static Future> getAllNodesT() async {
45 | Response response = await Request().get(
46 | DioRequestNet().allNodesT,
47 | data: {
48 | 'fields': 'name,title,topics,aliases',
49 | 'sort_by': 'topics',
50 | 'reverse': 1
51 | },
52 | // cacheOptions: DioRequestNet().cacheOptions,
53 | );
54 | List list = response.data;
55 | return list.map((e) => TopicNodeItem.fromJson(e)).toList();
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/lib/http/github.dart:
--------------------------------------------------------------------------------
1 | import 'package:dio/dio.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
4 | import 'package:flutter_v2ex/http/init.dart';
5 | import 'package:flutter_v2ex/models/version.dart';
6 | import 'package:flutter_v2ex/utils/string.dart';
7 | import 'package:flutter_v2ex/utils/utils.dart';
8 |
9 | class GithubApi {
10 | static Future