Skip to main content

liquid_shell_platform_interface 0.1.0-dev.11 copy "liquid_shell_platform_interface: ^0.1.0-dev.11" to clipboard
liquid_shell_platform_interface: ^0.1.0-dev.11 copied to clipboard

A common platform interface for the liquid_shell plugin. Glass fallback signals, the native iOS 26 chrome contract and the iPadOS window controls.

liquid_shell_platform_interface #

A common platform interface for the liquid_shell plugin.

It defines LiquidShellPlatform, the stream of LiquidPlatformSignals (reduce transparency, battery saver, system blur disabled) that make liquid_shell glass fall back to a solid fill, and the event-channel implementation shared by the iOS and Android packages. It also defines the native chrome contract (LiquidNativeShellState, LiquidNativeChromeConfig, LiquidNativeEvent), which the iOS package implements on every iOS 26 iPhone and iPad, and LiquidWindowControls for the iPadOS window controls. Every native member has a default, so a platform without native chrome implements only watchSignals.

Usage #

Apps do not use this package directly. Depend on liquid_shell.

To implement a new platform, extend LiquidShellPlatform and set LiquidShellPlatform.instance from your package's registerWith():

class LiquidShellMyOS extends LiquidShellPlatform {
  static void registerWith() {
    LiquidShellPlatform.instance = LiquidShellMyOS();
  }

  @override
  Stream<LiquidPlatformSignals> watchSignals() =>
      Stream.value(LiquidPlatformSignals.none);
}

License #

MIT. See LICENSE.

0
likes
0
points
1.43k
downloads

Publisher

verified publisherlasoai.vn

Weekly Downloads

A common platform interface for the liquid_shell plugin. Glass fallback signals, the native iOS 26 chrome contract and the iPadOS window controls.

Repository (GitHub)
View/report issues

Topics

#navigation #glassmorphism #adaptive-layout #tab-bar #sidebar

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on liquid_shell_platform_interface