Skip to main content

fold_adaptive_nav_platform_interface 1.0.1 copy "fold_adaptive_nav_platform_interface: ^1.0.1" to clipboard
fold_adaptive_nav_platform_interface: ^1.0.1 copied to clipboard

A common platform interface for the fold_adaptive_nav plugin: the FoldState data model, the wire codec and the FoldPlatform base class.

fold_adaptive_nav_platform_interface #

The common platform interface for fold_adaptive_nav: the FoldState data model, the FoldStateCodec wire format and the FoldPlatform base class.

App code should depend on fold_adaptive_nav, not this package.

Writing an implementation #

Extend FoldPlatform (or MethodChannelFold to reuse the channels) and set FoldPlatform.instance from your package's registerWith.

Channels: fold_adaptive_nav/methods (snapshot, setVerticalSystemBarDisabled), fold_adaptive_nav/state (full state maps) and fold_adaptive_nav/angle (doubles, at most one per frame). Every state map carries "v": 1. Decoding ignores unknown keys and maps unknown enum strings to unknown/unspecified.

0
likes
150
points
242
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A common platform interface for the fold_adaptive_nav plugin: the FoldState data model, the wire codec and the FoldPlatform base class.

Repository (GitHub)
View/report issues
Contributing

Topics

#foldable #adaptive #navigation #responsive #layout

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on fold_adaptive_nav_platform_interface