1.0.0 release #31

Merged
hernik merged 31 commits from dev into main 2024-02-10 16:27:33 +01:00
Showing only changes of commit dab4448c14 - Show all commits

View file

@ -51,7 +51,7 @@ class _SetupViewState extends State<SetupView> {
);
List<WalletCategory> categories = <WalletCategory>[];
String name = "";
double balance = 0;
final _balanceController = TextEditingController(text: "0.0");
@override
void didChangeDependencies() {
@ -158,7 +158,7 @@ class _SetupViewState extends State<SetupView> {
name: name,
currency: _selectedCurrency,
categories: categories,
);
starterBalance: double.parse(_balanceController.text));
await WalletManager.saveWallet(wallet);
if (widget.newWallet && context.mounted) {
@ -267,7 +267,7 @@ class _SetupViewState extends State<SetupView> {
keyboardType: const TextInputType.numberWithOptions(
decimal: true,
),
controller: TextEditingController(text: "0.0"),
controller: _balanceController,
inputFormatters: [
FilteringTextInputFormatter.allow(
RegExp(r'\d+[\.,]{0,1}\d{0,}'),
@ -277,11 +277,6 @@ class _SetupViewState extends State<SetupView> {
padding: const EdgeInsets.only(right: 4),
child: Text(_selectedCurrency.symbol),
),
onChanged: (t) {
final b = double.tryParse(t);
if (b == null) return;
balance = b;
},
),
),
],