Fixed wallets load

This commit is contained in:
Stephan D
2026-01-22 18:17:41 +01:00
parent f202acd8ab
commit 71753e09ba
9 changed files with 135 additions and 167 deletions

View File

@@ -0,0 +1,21 @@
import 'package:flutter/foundation.dart';
class CarouselIndexController with ChangeNotifier {
int _index = 0;
int get index => _index;
void setIndex(int value, int max) {
final next = value.clamp(0, max > 0 ? max - 1 : 0);
if (next == _index) return;
_index = next;
notifyListeners();
}
void reset() {
if (_index == 0) return;
_index = 0;
notifyListeners();
}
}