搜索插件、代码仓与 APP 分类

插件详情v0.0.1

proto_google

Dart 和 gRPC 的 Google API 公共接口定义。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
9
喜欢数
0
Pub 分数
140

安装插件

flutter pub add proto_google

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Dart 包,提供 Google API 的公共接口定义,可实现与 gRPC 服务的无缝集成。它提供了符合 Google API 标准的预定义协议缓冲区模式和接口,简化了与 Google 云和开发者服务的通信。专为需要结构化数据交换的跨平台应用程序开发人员设计,支持 Android、iOS、Web、macOS、Windows 和 Linux 上的现代开发工作流程。该包非常适合利用 Google Cloud 服务或在 Dart 项目中需要标准化 API 合同的团队。

适合场景

  • 与 Google Cloud API 集成
  • 在 Dart 中构建 gRPC 客户端
  • 标准化 API 合同
  • 跨平台应用开发
  • 从 proto 文件自动生成代码
  • 与 Google 的 REST 和 gRPC 服务进行交互

主要特点

  • 预定义的 Google API 接口定义
  • 支持 gRPC 通信
  • 跨平台兼容性
  • 协议缓冲区模式集成
  • Easy Flutter pub 依赖管理
  • 与官方 Google API 规范对齐

适合对象

  • 使用 Google Cloud 服务的 Dart 开发人员
  • 在Flutter应用中实现gRPC的团队
  • 需要标准化 API 合同的项目
  • 移动/网页应用中的后端服务集成
  • 使用基于 protobuf 的 API 的开发人员

使用建议

  • 需要熟悉 gRPC 和协议缓冲区
  • 可能需要额外的工具来生成代码
  • 依赖外部 Google API 变化
  • 不是完整的 SDK——仅提供接口定义
  • 最好与 protoc 等代码生成工具配合使用

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Introduction

Public interface definitions of Google APIs for Dart and gRPC.

This package is a fork of the protobuf_google package. The original repository can be found here.

Purpose of the Fork

Was not maintained from the last three years and using old protobuf as the dependency

Getting started

In your pubspec.yaml file add:

dependencies:
  proto_google: any

Usage

import 'package:proto_google/proto_google.dart';
  • If you are using the generated files from the .proto file and using any Google Pre-Defined DataTypes. Update the generated .dart as follows
import 'google/protobuf/any.pb.dart' as $0; // Just an example

with

import 'package:proto_google/proto_google.dart' as $0;

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目

暂无相关数据。