fix: last minute fixes (mainly iOS) #34

Merged
hernik merged 5 commits from dev into main 2024-02-12 19:19:01 +01:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 75913280be - Show all commits

View file

@ -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

View file

@ -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);
} }
} }