Skip to content

ynug/windows_appcommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

WM_APPCOMMAND message, Flutter for windows plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published