windows_appcommand 0.0.5 copy "windows_appcommand: ^0.0.5" to clipboard
windows_appcommand: ^0.0.5 copied to clipboard

PlatformWindows

A Flutter plugin that adds WM_APPCOMMAND message functionality for windows.

windows_appcommand #

pub version

A Flutter plugin that adds WM_APPCOMMAND message functionality for windows.

https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-appcommand?redirectedfrom=MSDN

Installation #

dependencies:
  windows_appcommand: ^0.0.5

or

$ flutter pub add windows_appcommand

Usage #

import 'package:flutter/material.dart';
import 'package:windows_appcommand/windows_appcommand.dart';

...

class _MyAppState extends State<MyApp> with AppCommand {
  @override
  void initState() {
    super.initState();
    // addListener
    windowsAppCommand.addListener(this);
  }

  @override
  void dispose() {
    // removeListener
    windowsAppCommand.removeListener(this);
    super.dispose();
  }

  ...
  
  
  // Listening events
  
  @override
  void onBassBoost() {
    // APPCOMMAND_BASS_BOOST
  }

}

Please see the example app of this plugin for a full example.

0
likes
160
pub points
37%
popularity

Publisher

verified publisherynug.dev

A Flutter plugin that adds WM_APPCOMMAND message functionality for windows.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on windows_appcommand