fix: last minute fixes (mainly iOS) #34
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
|
- Make pie chart values more visible by adding the category's corresponding color as background
|
||||||
- Welcome text on Setup view is now centered
|
- Welcome text on Setup view is now centered
|
||||||
- Editing entries is now done by tapping the entry, instead of a dedicated button
|
- 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
|
# 1.0.0-alpha+5
|
||||||
- Add tests
|
- Add tests
|
||||||
|
|
|
@ -11,10 +11,10 @@ abstract class PlatformWidget<A extends Widget, I extends Widget>
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isIOS || Platform.isMacOS) {
|
||||||
return createAndroidWidget(context);
|
|
||||||
} else {
|
|
||||||
return createIosWidget(context);
|
return createIosWidget(context);
|
||||||
|
} else {
|
||||||
|
return createAndroidWidget(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue