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.

Libraries

liquid_shell_platform_interface
The platform interface of the liquid_shell federated plugin.