chore: version 1.1.0 #36
2 changed files with 22 additions and 4 deletions
|
@ -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<EditCategoriesView> {
|
|||
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;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:currency_picker/currency_picker.dart';
|
||||
import 'package:dynamic_color/dynamic_color.dart';
|
||||
|
@ -156,7 +157,8 @@ class _SetupViewState extends State<SetupView> {
|
|||
name: name,
|
||||
currency: _selectedCurrency,
|
||||
categories: categories,
|
||||
starterBalance: double.parse(_balanceController.text),);
|
||||
starterBalance: double.parse(_balanceController.text),
|
||||
);
|
||||
await WalletManager.saveWallet(wallet);
|
||||
|
||||
if (widget.newWallet && context.mounted) {
|
||||
|
@ -340,6 +342,14 @@ class _SetupViewState extends State<SetupView> {
|
|||
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 =
|
||||
|
|
Loading…
Reference in a new issue