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,32 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:pweb/pages/dashboard/buttons/balance/carousel.dart';
import 'package:pweb/providers/wallets.dart';
class BalanceWidget extends StatelessWidget {
const BalanceWidget({super.key});
@override
Widget build(BuildContext context) {
final walletsProvider = context.watch<WalletsProvider>();
if (walletsProvider.isLoading) {
return const Center(child: CircularProgressIndicator());
}
final wallets = walletsProvider.wallets;
if (wallets == null || wallets.isEmpty) {
return const Center(child: Text('No wallets available'));
}
return
WalletCarousel(
wallets: wallets,
onWalletChanged: walletsProvider.selectWallet,
);
}
}