diff --git a/lib/providers/widget.dart b/lib/providers/widget.dart index 72c29fb..77324e0 100644 --- a/lib/providers/widget.dart +++ b/lib/providers/widget.dart @@ -23,14 +23,16 @@ class HomeWidgetProvider { Future updateWidget() async { if (kIsWeb || !(Platform.isAndroid || Platform.isIOS)) return; - const widgets = ["SolarFeaturedPostWidget", "SolarCheckInWidget"]; - for(final widget in widgets) { - await HomeWidget.updateWidget( - name: widget, - iOSName: widget, - androidName: "com.solsynth.solian.$widget", - qualifiedAndroidName: "group.solsynth.solian.$widget", - ); + if (Platform.isIOS) { + const widgets = ["SolarFeaturedPostWidget", "SolarCheckInWidget"]; + for (final widget in widgets) { + await HomeWidget.updateWidget( + name: widget, + iOSName: widget, + androidName: "com.solsynth.solian.$widget", + qualifiedAndroidName: "group.solsynth.solian.$widget", + ); + } } } }