bonsoir_linux_dbus 0.2.0 icon indicating copy to clipboard operation
bonsoir_linux_dbus: ^0.2.0 copied to clipboard

PlatformLinux

Linux platform interface for bonsoir package. This package is useful for Linux desktop systems where Avahi is a commonly installed mDNS daemon.

bonsoir_linux_dbus #

This is a Linux specific platform implementation of the Bonsoir plugin using DBus to directly interact with the Avahi daemon to create and discover services. This plugin requires that the Flutter application have access to DBus to be able to communicate with the Avahi daemon (and currently doesn't check exhaustively if the Avahi daemon is working okay).

Getting Started #

To use this plugin right now (as of Flutter 2), you need to manually set the platform interface instance to use (say, on your main function), like this

void main(){
    if(Platform.isLinux){
        BonsoirPlatformInterface.instance = BonsoirLinuxDBus();
    }
    runApp(HomePageWidget());
}

Or when using Flutter v2.1 and beyond, the Flutter tooling is able to generate a main program that sets the platform interfaces (Currently is not documented, but a design document exists and it's unclear when it was added to the beta)[https://docs.google.com/document/d/1G_K5vTMWD6CBD-0DDWhpAwkcCRKqmPH1wxlXu5FfRhk]

2
likes
130
pub points
49%
popularity

Publisher

unverified uploader

Linux platform interface for bonsoir package. This package is useful for Linux desktop systems where Avahi is a commonly installed mDNS daemon.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

bonsoir_platform_interface, dbus, flutter, meta

More

Packages that depend on bonsoir_linux_dbus