widgets

Flutter: Override widgets/components to get access to events

As a brief “note to self,” when you need to get access to Flutter widget events that you normally can’t access, override the widget to access lifecycle-related events like initState() and dispose() so you can access them. For example, this image (that comes from this URL) shows how to gain access to those lifecycle methods for a Flutter Drawer. You can do this with any component/widget — and you can also make the code more generic by passing in child widgets — and you can also mix in WidgetsBindingObserver and then use didChangeAppLifecycleState to gain access to more events.

How to delete Mac dashboard widgets

Mac dashboard widgets deleting FAQ: Help, how do I delete Mac dashboard widgets?

As I was investigating the process of how to create a custom Mac dashboard widget from a web page using Safari, I remembered that the process of how to delete a Mac dashboard widget is not obvious at all. So, here's a quick look at how to delete Mac dashboard widgets.

How to delete Mac dashboard widgets

The process of deleting Mac dashboard widgets goes like this:

Run Dashboard widgets from your desktop

If you've ever wanted to see your Dashboard widgets outside of the normal Dashboard environment, Amnesty Widgets lets you run your widgets directly on your desktop. It's not free, but if it's something you always wanted, you can download a free trial.

 

Mac OS X Dashboard Widgets (intro)

I've been having a blast these last few days with Mac OS X Dashboard Widgets. Apple has assembled a nice collection of them, and they're all easy to install. Just download them (they seem to all be zip files), double-click the zip file to extract the contents, and then double-click the installer. Best of all, the widgets are free, fun to play with, and in some cases, they may even help your productivity.