mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-25 11:03:55 +01:00
* charts (wip) * charts (wip) * wip * add asset grid * split files * logic wip * proper getPrices logic * viewmodel (wip) * charts * remove unused import * remove restricted import...? * fix background gradient when scrolling * add safeguards for broken db * save new pin on removal * add safeguards for concurrency * add haptic feedback * fix haptic feedback * fix fiat ticker * reduce chart padding * add line touch indicator * improve touch target size on range selector * add date/time display when viewing past amount * merge * remove iconSvgPath reference * merge * fix state for date display * merge * auto-reformat * only load charts when page is opened * merge * reformat and apply lints * refactor to use `Money` instead of storing amount in `String` * add slop comment * fix exception on division by zero * ci * workaround toDouble being removed * disable strict parsing and rounding * fix abs() * use new currency picker sheet * safeguard for max flutter-supported decimals * fix amount precision * adjust to new buy/sell * Update lib/new-ui/pages/charts_page.dart Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com> * adjust buy/sell di * replace -> ignore * reformat --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
43 lines
893 B
Dart
43 lines
893 B
Dart
part of 'charts_bloc.dart';
|
|
|
|
@immutable
|
|
sealed class ChartsEvent {
|
|
const ChartsEvent();
|
|
}
|
|
|
|
class RangeChanged extends ChartsEvent {
|
|
const RangeChanged({required this.newRange});
|
|
|
|
final ChartRange newRange;
|
|
}
|
|
|
|
class SortingCriteriumChanged extends ChartsEvent {
|
|
const SortingCriteriumChanged({required this.newCriterium});
|
|
|
|
final PriceDataSortCriterium newCriterium;
|
|
}
|
|
|
|
class CurrencyAdded extends ChartsEvent {
|
|
const CurrencyAdded({required this.currency});
|
|
|
|
final CryptoCurrency currency;
|
|
}
|
|
|
|
class CurrencyRemoved extends ChartsEvent {
|
|
const CurrencyRemoved({required this.currency});
|
|
|
|
final CryptoCurrency currency;
|
|
}
|
|
|
|
class CurrencyPinned extends ChartsEvent {
|
|
const CurrencyPinned({required this.currency});
|
|
|
|
final CryptoCurrency currency;
|
|
}
|
|
|
|
class PageRefreshed extends ChartsEvent {}
|
|
|
|
class PageLoadStarted extends ChartsEvent {}
|
|
|
|
class Init extends ChartsEvent {}
|