tray_manager 0.2.2 copy "tray_manager: ^0.2.2" to clipboard
tray_manager: ^0.2.2 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(
      theme: ThemeData(
        primaryColor: const Color(0xff416ff4),
        canvasColor: Colors.white,
        scaffoldBackgroundColor: const Color(0xffF7F9FB),
        dividerColor: Colors.grey.withOpacity(0.3),
      ),
      builder: BotToastInit(),
      navigatorObservers: [BotToastNavigatorObserver()],
      home: const HomePage(),
    );
  }
}
200
likes
0
pub points
98%
popularity

Publisher

verified publisherleanflutter.dev

This plugin allows Flutter desktop apps to defines system tray.

Repository (GitHub)
View/report issues

Topics

#tray #tray-manager #system-tray

License

unknown (license)

Dependencies

flutter, menu_base, path, shortid

More

Packages that depend on tray_manager