System Share on Android

This commit is contained in:
LittleSheep 2024-12-15 13:34:32 +08:00
parent 89c912a35b
commit f92418ea4b

View File

@ -23,14 +23,16 @@ class HomeWidgetProvider {
Future<void> 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",
);
}
}
}
}