tray_manager 0.3.1 copy "tray_manager: ^0.3.1" to clipboard
tray_manager: ^0.3.1 copied to clipboard

This plugin allows Flutter desktop apps to defines system tray.

example/lib/main.dart

import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:tray_manager_example/pages/home.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      builder: BotToastInit(),
      navigatorObservers: [BotToastNavigatorObserver()],
      home: const HomePage(),
    );
  }
}
207
likes
160
points
14.7k
downloads

Publisher

verified publisherleanflutter.dev

Weekly Downloads

This plugin allows Flutter desktop apps to defines system tray.

Repository (GitHub)
View/report issues

Topics

#tray #tray-manager #system-tray

Documentation

API reference

License

MIT (license)

Dependencies

flutter, menu_base, path, shortid

More

Packages that depend on tray_manager