mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
30dc8f9238
* init commit * buy card UI * buy card detail page * card filter * dropdown button * user auth flow * create order * denomination option * fix searching * denom option fix UI * simulate payment * Update pr_test_build.yml * Update pr_test_build.yml * Implement order expiration handling [skip ci] * refactor code [skip ci] * remove ionia related code [skip ci] * change auth flow * add currency prefix * grid view UI * fix country filter issue * fix underline color * fix fetching card list [skip ci] * list view * update cake pay title * Optimize API usage by fetching CakePay vendors * handle no cards found case * adjust the flow of purchases * UI fixes * fix btc payment data * link extractor * fix fetch next page issue * UI fixes * fix text size * revert base page changes * Revert "revert base page changes" * UI fixes * fix UI * fix link style + localization * update cake pay title * update cake pay subtitle * Update cake_pay_order.dart * revert inject_app_details update
16 lines
471 B
Dart
16 lines
471 B
Dart
import 'package:cake_wallet/cake_pay/cake_pay_service.dart';
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
part 'cake_features_view_model.g.dart';
|
|
|
|
class CakeFeaturesViewModel = CakeFeaturesViewModelBase with _$CakeFeaturesViewModel;
|
|
|
|
abstract class CakeFeaturesViewModelBase with Store {
|
|
final CakePayService _cakePayService;
|
|
|
|
CakeFeaturesViewModelBase(this._cakePayService);
|
|
|
|
Future<bool> isIoniaUserAuthenticated() async {
|
|
return await _cakePayService.isLogged();
|
|
}
|
|
}
|