channel/params library

Constants

creationParamsCodec → const StandardMessageCodec
Shared types and encoding for platform view creation params.

Functions

encodeStyle(BuildContext context, {Color? tint, Color? thumbTint, Color? trackTint, Color? trackBackgroundTint}) Map<String, dynamic>
Creates a unified style map for platform views. Keys (all ARGB ints):
encodeTextStyle(TextStyle? style, BuildContext context) Map<String, dynamic>?
Encodes a TextStyle into a map suitable for platform view method channel calls.
resolveColorToArgb(Color? color, BuildContext context) int?
Resolves a possibly dynamic Cupertino color to a concrete ARGB int for the current BuildContext. Falls back to the raw color if not dynamic.