fix: return iOS widgets only on iOS/macOS
This commit is contained in:
parent
0a7dbbde78
commit
75913280be
2 changed files with 4 additions and 3 deletions
|
@ -18,6 +18,7 @@
|
|||
- Make pie chart values more visible by adding the category's corresponding color as background
|
||||
- Welcome text on Setup view is now centered
|
||||
- Editing entries is now done by tapping the entry, instead of a dedicated button
|
||||
- return iOS (Cupertino) widgets only on iOS/macOS
|
||||
|
||||
# 1.0.0-alpha+5
|
||||
- Add tests
|
||||
|
|
|
@ -11,10 +11,10 @@ abstract class PlatformWidget<A extends Widget, I extends Widget>
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (Platform.isAndroid) {
|
||||
return createAndroidWidget(context);
|
||||
} else {
|
||||
if (Platform.isIOS || Platform.isMacOS) {
|
||||
return createIosWidget(context);
|
||||
} else {
|
||||
return createAndroidWidget(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue