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

WM_APPCOMMAND message, Flutter for windows plugin.

windows_appcommand #

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.1

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
0
pub points
37%
popularity

Publisher

verified publisherynug.dev

WM_APPCOMMAND message, Flutter for windows plugin.

Homepage

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on windows_appcommand