guozhigq / flutter_v2ex

使用flutter开发的v2ex客户端,支持Android和iOS设备。在Android 12+机型上支持Material You取色
MIT License
718 stars 47 forks source link
android dart flutter v2ex


VVEX

GitHub GitHub Version

使用 Flutter 开发的 V2ex 客户端

适配了Material You 样式

去下载


功能

开发计划 / 加入讨论组


环境配置

[!] Flutter (Channel [user-branch], 3.24.4, on macOS 14.6.1 23G93 darwin-arm64,
    locale zh-Hans-CN)
    ! Flutter version 3.24.4 on channel [user-branch] at
      /Users/rr/Documents/sdk/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an
      official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions
      at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss
      this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.95.1)
[✓] Connected device (4 available)
[✓] Network resources

运行

确保相关开发环境及代码编辑器正确配置


打包

执行 flutter build apk/ios

打包前在 lib/http/init.dart 中关闭代理

client.findProxy = (uri) {
    // proxy all request to localhost:8888
    // return 'PROXY 192.168.1.60:7890';
    // return 'PROXY 172.16.32.186:7890';
    // return 'PROXY localhost:7890';
    // return 'PROXY 127.0.0.1:7890';
    // 不设置代理 TODO 打包前关闭代理
    return 'DIRECT';
};


授权@24 版权©️

感谢