diff --git a/lib/views/settings/edit_categories.dart b/lib/views/settings/edit_categories.dart index 1de0cf8..d6cf5ad 100644 --- a/lib/views/settings/edit_categories.dart +++ b/lib/views/settings/edit_categories.dart @@ -1,4 +1,5 @@ import 'dart:async'; +import 'dart:io'; import 'package:dynamic_color/dynamic_color.dart'; import 'package:flex_color_picker/flex_color_picker.dart'; @@ -152,6 +153,13 @@ class _EditCategoriesViewState extends State { onTap: () async { final icon = await showIconPicker( context, + iconPackModes: [ + if (!Platform.isIOS && !Platform.isMacOS) + IconPack.material, + if (Platform.isIOS || Platform.isMacOS) + IconPack.cupertino, + ], + // adaptiveDialog: true, ); if (icon != null) { selectedWallet!.categories[i].icon = icon; diff --git a/lib/views/setup.dart b/lib/views/setup.dart index e97a659..f07a572 100644 --- a/lib/views/setup.dart +++ b/lib/views/setup.dart @@ -1,4 +1,5 @@ import 'dart:async'; +import 'dart:io'; import 'package:currency_picker/currency_picker.dart'; import 'package:dynamic_color/dynamic_color.dart'; @@ -153,10 +154,11 @@ class _SetupViewState extends State { return; } final wallet = Wallet( - name: name, - currency: _selectedCurrency, - categories: categories, - starterBalance: double.parse(_balanceController.text),); + name: name, + currency: _selectedCurrency, + categories: categories, + starterBalance: double.parse(_balanceController.text), + ); await WalletManager.saveWallet(wallet); if (widget.newWallet && context.mounted) { @@ -340,6 +342,14 @@ class _SetupViewState extends State { onTap: () async { final icon = await showIconPicker( context, + iconPackModes: [ + if (!Platform.isIOS && + !Platform.isMacOS) + IconPack.material, + if (Platform.isIOS || Platform.isMacOS) + IconPack.cupertino, + ], + // adaptiveDialog: true, ); if (icon != null) categories[i].icon = icon; final materialEnabled =