@@ -26,8 +26,8 @@ class TrayIconData {
2626 this .rightClickCount = 0 ,
2727 this .doubleClickCount = 0 ,
2828 this .isVisible = true ,
29- this .title = 'Tray Icon ' ,
30- this .tooltip = 'Click me! ' ,
29+ this .title = '' ,
30+ this .tooltip = '' ,
3131 });
3232
3333 void dispose () {
@@ -71,7 +71,7 @@ class _TrayIconExamplePageState extends State<TrayIconExamplePage> {
7171 @override
7272 void initState () {
7373 super .initState ();
74- _addTrayIcon ();
74+ // _addTrayIcon(); // Don't add tray icon on initialization
7575 }
7676
7777 @override
@@ -114,8 +114,7 @@ class _TrayIconExamplePageState extends State<TrayIconExamplePage> {
114114 id: _nextIconId++ ,
115115 trayIcon: trayIcon,
116116 contextMenu: contextMenu,
117- title: 'Tray Icon ${_nextIconId - 1 }' ,
118- tooltip: 'Click me! (${_nextIconId - 1 })' ,
117+ // title and tooltip are empty by default
119118 );
120119
121120 // Create animated icon generator
@@ -147,8 +146,8 @@ class _TrayIconExamplePageState extends State<TrayIconExamplePage> {
147146 });
148147
149148 // Set initial properties
150- trayIcon.title = trayIconData.title;
151- trayIcon.tooltip = trayIconData.tooltip;
149+ // trayIcon.title = trayIconData.title; // Set via UI
150+ // trayIcon.tooltip = trayIconData.tooltip; // Set via UI
152151 trayIcon.isVisible = trayIconData.isVisible;
153152
154153 _trayIcons.add (trayIconData);
0 commit comments