calc ads
This commit is contained in:
@@ -28,6 +28,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
|
|||||||
final TextEditingController _fromAmountController = TextEditingController();
|
final TextEditingController _fromAmountController = TextEditingController();
|
||||||
final TextEditingController _toAmountController = TextEditingController();
|
final TextEditingController _toAmountController = TextEditingController();
|
||||||
late Future<List<String>> availableCurrencies;
|
late Future<List<String>> availableCurrencies;
|
||||||
|
MihBannerAd _bannerAd = MihBannerAd();
|
||||||
|
|
||||||
Future<void> submitForm() async {
|
Future<void> submitForm() async {
|
||||||
String fromCurrencyCode = _fromCurrencyController.text.split(" - ")[0];
|
String fromCurrencyCode = _fromCurrencyController.text.split(" - ")[0];
|
||||||
@@ -65,6 +66,9 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
|
|||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
windowTitle: "Calculation Results",
|
windowTitle: "Calculation Results",
|
||||||
onWindowTapClose: () {
|
onWindowTapClose: () {
|
||||||
|
setState(() {
|
||||||
|
_bannerAd = MihBannerAd();
|
||||||
|
});
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
windowBody: Column(
|
windowBody: Column(
|
||||||
@@ -154,7 +158,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
MihBannerAd(),
|
SizedBox(child: _bannerAd),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ class _TipCalcState extends State<TipCalc> {
|
|||||||
final ValueNotifier<String> splitValue = ValueNotifier("");
|
final ValueNotifier<String> splitValue = ValueNotifier("");
|
||||||
late bool splitPosition;
|
late bool splitPosition;
|
||||||
final _formKey = GlobalKey<FormState>();
|
final _formKey = GlobalKey<FormState>();
|
||||||
|
MihBannerAd _bannerAd = MihBannerAd();
|
||||||
String tip = "";
|
String tip = "";
|
||||||
String total = "";
|
String total = "";
|
||||||
String amountPerPerson = "";
|
String amountPerPerson = "";
|
||||||
@@ -96,6 +97,9 @@ class _TipCalcState extends State<TipCalc> {
|
|||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
windowTitle: "Calculation Results",
|
windowTitle: "Calculation Results",
|
||||||
onWindowTapClose: () {
|
onWindowTapClose: () {
|
||||||
|
setState(() {
|
||||||
|
_bannerAd = MihBannerAd();
|
||||||
|
});
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
windowBody: Column(
|
windowBody: Column(
|
||||||
@@ -223,7 +227,7 @@ class _TipCalcState extends State<TipCalc> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
MihBannerAd(),
|
SizedBox(child: _bannerAd),
|
||||||
// if (splitBillController.text == "Yes") const Divider(),
|
// if (splitBillController.text == "Yes") const Divider(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class _MihCardsState extends State<MihCards> {
|
|||||||
final FocusNode searchFocusNode = FocusNode();
|
final FocusNode searchFocusNode = FocusNode();
|
||||||
final _formKey = GlobalKey<FormState>();
|
final _formKey = GlobalKey<FormState>();
|
||||||
late Future<List<MIHLoyaltyCard>> cardList;
|
late Future<List<MIHLoyaltyCard>> cardList;
|
||||||
late MihBannerAd _bannerAd;
|
MihBannerAd _bannerAd = MihBannerAd();
|
||||||
List<MIHLoyaltyCard> listOfCards = [];
|
List<MIHLoyaltyCard> listOfCards = [];
|
||||||
//bool showSelectedCardType = false;
|
//bool showSelectedCardType = false;
|
||||||
final ValueNotifier<String> shopName = ValueNotifier("");
|
final ValueNotifier<String> shopName = ValueNotifier("");
|
||||||
@@ -311,7 +311,6 @@ class _MihCardsState extends State<MihCards> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
_bannerAd = MihBannerAd();
|
|
||||||
cardList = MIHMzansiWalletApis.getLoyaltyCards(widget.signedInUser.app_id);
|
cardList = MIHMzansiWalletApis.getLoyaltyCards(widget.signedInUser.app_id);
|
||||||
shopController.addListener(shopSelected);
|
shopController.addListener(shopSelected);
|
||||||
cardSearchController.addListener(searchShop);
|
cardSearchController.addListener(searchShop);
|
||||||
|
|||||||
Reference in New Issue
Block a user