skip to Main Content

'setup' is deprecated and shouldn't be used. Use PurchasesConfiguration – Flutter

How can i fix this and make it not deprecated import 'package:purchases_flutter/purchases_flutter.dart'; class PurchaseApi{ static const _apiKey = ''; static Future init() async{ await Purchases.setDebugLogsEnabled(true); await Purchases.setup(_apiKey); } static Future<List<Offering>> fetchOffers() async { try{ final offerings = await Purchases.getOfferings(); final…

VIEW QUESTION
Back To Top
Search