Flutter 使用protobuf 尤小红 2022-01-26 619 阅读1分钟 安装(mac) 1. brew install protobuf 2. brew tap dart-lang/dart 3. brew install dart 4. pub global activate protoc_plugin 配置.bash_profile export PATH="$PATH":"$HOME/.pub-cache/bin" 生成 protoc --dart_out=. xx.proto 项目添加: protobuf: ^2.0.0