wallet card redesign

This commit is contained in:
Arseni
2026-03-06 17:48:36 +03:00
parent 2b0ada1541
commit 281b3834d3
29 changed files with 927 additions and 287 deletions

View File

@@ -0,0 +1,19 @@
import 'package:flutter/foundation.dart';
class BalanceActionsUiController extends ChangeNotifier {
int? _hoveredButtonIndex;
int? get hoveredButtonIndex => _hoveredButtonIndex;
bool isExpanded(int index) => _hoveredButtonIndex == index;
void onHoverChanged(int index, bool hovered) {
final next = hovered
? index
: (_hoveredButtonIndex == index ? null : _hoveredButtonIndex);
if (next == _hoveredButtonIndex) return;
_hoveredButtonIndex = next;
notifyListeners();
}
}