Frontend first draft

This commit is contained in:
Arseni
2025-11-13 15:06:15 +03:00
parent e47f343afb
commit ddb54ddfdc
504 changed files with 25498 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
import 'package:pweb/models/currency.dart';
class Wallet {
final String id;
final String walletUserID; // ID or number that we show the user
final String name;
final double balance;
final Currency currency;
final bool isHidden;
Wallet({
required this.id,
required this.walletUserID,
required this.name,
required this.balance,
required this.currency,
this.isHidden = true,
});
Wallet copyWith({
String? id,
String? name,
double? balance,
Currency? currency,
String? walletUserID,
bool? isHidden,
}) {
return Wallet(
id: id ?? this.id,
name: name ?? this.name,
balance: balance ?? this.balance,
currency: currency ?? this.currency,
walletUserID: walletUserID ?? this.walletUserID,
isHidden: isHidden ?? this.isHidden,
);
}
}