All Projects → lesnitsky → native_context_menu

lesnitsky / native_context_menu

Licence: MIT license
Native context menu for Flutter apps

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
dart
5743 projects
swift
15916 projects
c
50402 projects - #5 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to native context menu

anyinspect app
AnyInspect desktop app.
Stars: ✭ 40 (-71.43%)
Mutual labels:  flutter-desktop
hover.el
Flutter tool to run hover on emacs
Stars: ✭ 38 (-72.86%)
Mutual labels:  flutter-desktop
flutter getx the moviedb
The Movie DB App with Flutter GetX State Management
Stars: ✭ 79 (-43.57%)
Mutual labels:  flutter-desktop
pedax
Reversi Board with edax, which is the strongest reversi engine.
Stars: ✭ 18 (-87.14%)
Mutual labels:  flutter-desktop
dart vlc
🎞 Flutter audio / video playback, broadcast & recording library for Windows & Linux.
Stars: ✭ 439 (+213.57%)
Mutual labels:  flutter-desktop
flutter audio desktop
[WIP] An 🎵 audio playback library for Flutter Desktop. Supports Windows & Linux. Based on miniaudio.
Stars: ✭ 42 (-70%)
Mutual labels:  flutter-desktop
window manager
This plugin allows Flutter desktop apps to resizing and repositioning the window.
Stars: ✭ 112 (-20%)
Mutual labels:  flutter-desktop
find aik
Find Aik game for #FlutterCreate
Stars: ✭ 18 (-87.14%)
Mutual labels:  flutter-desktop
editable
This library allows you to create editable tables and spreadsheets with ease, either by providing initial row and column count to display an empty table or use it with predefined rows and column data sets.
Stars: ✭ 85 (-39.29%)
Mutual labels:  flutter-desktop
invmovieconcept1
True Cross platform UI design featuring complex scroll based animations powered by flutter
Stars: ✭ 55 (-60.71%)
Mutual labels:  flutter-desktop
spotube
A lightweight free Spotify 🎧 desktop-client 🖥 which handles playback manually, streams music using Youtube & no Spotify premium account is needed 😱
Stars: ✭ 361 (+157.86%)
Mutual labels:  flutter-desktop
DroidKaigi2019Presentation
The Flutter presentation that I made at the DroidKaigi conference
Stars: ✭ 23 (-83.57%)
Mutual labels:  flutter-desktop
go-flutter-plugin-sqlite
try implement go version sqlite channel for flutter sqflite plugin[desktop only]
Stars: ✭ 16 (-88.57%)
Mutual labels:  flutter-desktop

native_context_menu

Native context menu for flutter apps

lesnitsky.dev GitHub stars Twitter Follow

Preview

Installation

flutter pub add native_context_menu

Usage

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

void main() {
  runApp(App());
}

class App extends StatefulWidget {
  const App({Key? key}) : super(key: key);

  @override
  State<App> createState() => _AppState();
}

class _AppState extends State<App> {
  String? action;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: ContextMenuRegion(
          onDismissed: () => setState(() => action = 'Menu was dismissed'),
          onItemSelected: (item) => setState(() {
            action = '${item.title} was selected';
          }),
          menuItems: [
            MenuItem(title: 'First item'),
            MenuItem(title: 'Second item'),
            MenuItem(
              title: 'Third item with submenu',
              items: [
                MenuItem(title: 'First subitem'),
                MenuItem(title: 'Second subitem'),
                MenuItem(title: 'Third subitem'),
              ],
            ),
            MenuItem(title: 'Fourth item'),
          ],
          child: Card(
            child: Center(
              child: Text(action ?? 'Right click me'),
            ),
          ),
        ),
      ),
    );
  }
}

Platform support

Platform Supported
MacOS
Linux
Windows

License

MIT


lesnitsky.dev GitHub stars Twitter Follow

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].