From da910ee0be8f73e423f9551469cfe86c1abd83b1 Mon Sep 17 00:00:00 2001 From: OmarHatem28 Date: Mon, 11 Jul 2022 21:33:09 +0200 Subject: [PATCH] Remove unused widgets --- .../auto_renew_settings_page.dart | 77 ------------------- 1 file changed, 77 deletions(-) diff --git a/lib/src/screens/cake_phone/phone_number_service/auto_renew_settings_page.dart b/lib/src/screens/cake_phone/phone_number_service/auto_renew_settings_page.dart index 13eb9bcd8..c029e044b 100644 --- a/lib/src/screens/cake_phone/phone_number_service/auto_renew_settings_page.dart +++ b/lib/src/screens/cake_phone/phone_number_service/auto_renew_settings_page.dart @@ -1,11 +1,6 @@ -import 'package:cake_wallet/buy/buy_amount.dart'; -import 'package:cake_wallet/buy/moonpay/moonpay_buy_provider.dart'; -import 'package:cake_wallet/di.dart'; import 'package:cake_wallet/entities/cake_phone_entities/phone_number_service.dart'; -import 'package:cake_wallet/entities/fiat_currency.dart'; import 'package:cake_wallet/src/screens/cake_phone/widgets/cake_phone_settings_tile.dart'; import 'package:cake_wallet/src/screens/cake_phone/widgets/plan_card.dart'; -import 'package:cake_wallet/store/app_store.dart'; import 'package:cake_wallet/view_model/cake_phone/phone_plan_view_model.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; @@ -162,76 +157,4 @@ class AutoRenewSettingsBodyState extends State { ), ); } - - Widget receiptRow(String title, Widget value) { - return Padding( - padding: const EdgeInsets.only(top: 24), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text( - title, - style: TextStyle( - fontSize: 16, - fontWeight: FontWeight.w500, - color: Theme.of(context).accentTextTheme.subhead.color, - ), - ), - value, - ], - ), - ); - } - - Widget amountText(double amount) { - return Text( - "\$${amount.roundToDouble() == amount ? amount.round() : amount}", - style: TextStyle( - fontSize: 18, - fontWeight: FontWeight.w700, - color: Theme.of(context).primaryTextTheme.title.color, - ), - ); - } - - Widget cryptoAmount(double totalPrice) { - return FutureBuilder( - future: MoonPayBuyProvider(wallet: getIt.get().wallet) - .calculateAmount(totalPrice.toString(), FiatCurrency.usd.title), - builder: (context, AsyncSnapshot snapshot) { - double sourceAmount; - double destAmount; - - if (snapshot.hasData) { - sourceAmount = snapshot.data.sourceAmount; - destAmount = snapshot.data.destAmount; - } else { - sourceAmount = 0.0; - destAmount = 0.0; - } - - return Column( - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - Text( - "${sourceAmount} ${getIt.get().wallet.currency.toString()}", - style: TextStyle( - fontSize: 18, - fontWeight: FontWeight.w700, - color: Theme.of(context).primaryTextTheme.title.color, - ), - ), - Text( - "${destAmount} ${FiatCurrency.usd.title}", - style: TextStyle( - fontSize: 12, - fontWeight: FontWeight.w500, - color: Theme.of(context).accentTextTheme.subhead.color, - ), - ), - ], - ); - }, - ); - } }