Closed xalikoutis closed 1 month ago
Description
When i call showMacosAlertDialog from ToolBarIconButton onPressed works as expected, i see the dialog poping up
showMacosAlertDialog
ToolBarIconButton
onPressed
When i call showMacosAlertDialog from MacosPulldownMenuItem onTap does not call the function
MacosPulldownMenuItem
onTap
Steps To Reproduce
Run the sample app below
Expected behavior
MacosPulldownMenuItem onTap should call the showMacosAlertDialog
Screenshots
Fixed in https://github.com/macosui/macos_ui/pull/520
Description
When i call
showMacosAlertDialog
fromToolBarIconButton
onPressed
works as expected, i see the dialog poping upWhen i call
showMacosAlertDialog
fromMacosPulldownMenuItem
onTap
does not call the functionSteps To Reproduce
Run the sample app below
Code sample
``` import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:macos_ui/macos_ui.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MacosApp( title: 'macos_ui example', theme: MacosThemeData.light(), darkTheme: MacosThemeData.dark(), themeMode: ThemeMode.system, ); } } class Demo extends StatefulWidget { const Demo({super.key}); @override _DemoState createState() => _DemoState(); } class _DemoState extends StateExpected behavior
MacosPulldownMenuItem
onTap
should call theshowMacosAlertDialog
Screenshots