mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
feat(desktop): close button for minimize notification
This commit is contained in:
parent
1cc62c40a0
commit
1688f99096
@ -9,11 +9,17 @@ import 'dart:math';
|
||||
import 'package:flutter/foundation.dart' show kIsWeb;
|
||||
import 'dart:io' show Platform;
|
||||
import 'package:flutter_desktop_tools/flutter_desktop_tools.dart';
|
||||
import 'package:local_notifier/local_notifier.dart';
|
||||
|
||||
final closeNotification = DesktopTools.createNotification(
|
||||
title: 'Spotube',
|
||||
message: 'Running in background. Minimized to System Tray',
|
||||
);
|
||||
actions: [
|
||||
LocalNotificationAction(text: 'Close The App'),
|
||||
],
|
||||
)?..onClickAction = (value) {
|
||||
windowManager.close();
|
||||
};
|
||||
|
||||
class PageWindowTitleBar extends StatefulHookWidget
|
||||
implements PreferredSizeWidget {
|
||||
|
Loading…
Reference in New Issue
Block a user