macosui / macos_ui

Flutter widgets and themes implementing the current macOS design language.
https://macosui.github.io/macos_ui/#/
MIT License
1.79k stars 174 forks source link

Allow generic widget class for PushButton on MacosAlertDialog #464

Closed MuhammedKpln closed 9 months ago

MuhammedKpln commented 1 year ago

On latest beta version 2.0.0-beta.7, MacosAlertDialog allows only PushButton class for action buttons, which is understandable. But as im using mobx in my application which depends on a widget to re-render parts of the application. As an example right now i cannot use Observer widget to only re-render button instead i have to re-render all of the MacosAlertDialog widget, or writing a proxy class to do same thing. Which you already now the first choice is not so performant.