floaty_chatheads_platform_interface 1.0.5 copy "floaty_chatheads_platform_interface: ^1.0.5" to clipboard
floaty_chatheads_platform_interface: ^1.0.5 copied to clipboard

Platform interface for floaty_chatheads. Defines the abstract contract, configuration models, and method-channel fallback shared by Android and iOS implementations.

example/example.md

Floaty Chatheads Platform Interface Example #

This package defines the abstract contract for floaty_chatheads. It is not intended for direct use — add floaty_chatheads to your pubspec.yaml instead.

import 'package:floaty_chatheads_platform_interface/floaty_chatheads_platform_interface.dart';

/// Create a configuration for a floating chathead.
final config = ChatHeadConfig(
  entryPoint: 'overlayMain',
  contentWidth: 300,
  contentHeight: 400,
  theme: ChatHeadTheme(
    badgeBackgroundColor: 0xFFFF0000,
    badgeTextColor: 0xFFFFFFFF,
  ),
  snapConfig: SnapConfig(
    edge: SnapEdge.nearest,
    margin: 12,
    persistPosition: true,
  ),
);

See the floaty_chatheads package for full usage examples.

0
likes
160
points
201
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Platform interface for floaty_chatheads. Defines the abstract contract, configuration models, and method-channel fallback shared by Android and iOS implementations.

Homepage
Repository (GitHub)
View/report issues

Topics

#overlay #chathead #floating-window #platform-interface

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on floaty_chatheads_platform_interface