Provides runtime support for a Dart implementation of protobufs.
Typically one do not need to import this library–only libraries generated by the protoc plugin import this library directly.
If your library or application uses generated protobuf libraries, add this library as a dependency.
Require at least Dart SDK 1.13.
Removed dependency on
setRange(): Do not assume Iterable has a
Allow constants as field initial values as well as creation thunks to reduce generated code size.
Improve the performance of reading a protobuf buffer.
Fixed truncation error in least significant bits with large Int64 constants.
Add this to your package's pubspec.yaml file:
dependencies: protobuf: "^0.7.2"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.7.2||Apr 9, 2018|
|0.7.1||Feb 22, 2018|
|0.7.0||Jan 12, 2018|
|0.6.0||Oct 25, 2017|
|0.5.5||Aug 14, 2017|
|0.5.4||Apr 20, 2017|
|0.5.3+2||Mar 29, 2017|
|0.5.3+1||Mar 27, 2017|
|0.5.3||Sep 1, 2016|
|0.5.2||Jun 22, 2016|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, web, other
No platform restriction found in primary library
Fix analysis and formatting issues.
Analysis or formatting checks reported 22 hints.
Strong-mode analysis of
lib/protobuf.dartgave the following hint:
line: 9 col: 28
'BASE64' is deprecated and shouldn't be used.
Strong-mode analysis of
lib/src/protobuf/coded_buffer_reader.dartgave the following hint:
line: 115 col: 54
'Endianness' is deprecated and shouldn't be used.
Similar analysis of the following files failed:
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use