Hi, not sure why, but in my flutter app even in --release mode, when i click to open the PaywallView it kind of freezing a little bit…
Demo with --release:
https://drive.google.com/file/d/1RAyQG2awd1Q1bKXJYh3G9GLryo0pcYU8/view?usp=sharing
P.s. with `await RevenueCatUI.presentPaywallIfNeeded` is working awesome and there is no freeze. The single issue there is that i want to not have it in a `showCupertinoSheet`…
Here’s my code:
import 'package:flutter/material.dart';
import 'package:purchases_ui_flutter/purchases_ui_flutter.dart';
class PremiumButtonLime extends StatelessWidget {
const PremiumButtonLime({super.key});
@override
Widget build(BuildContext context) {
return ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFFBFE737),
foregroundColor: Colors.black,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
side: const BorderSide(color: Colors.black, width: 1.5),
),
),
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => Scaffold(
body: SafeArea(
child: PaywallView(onDismiss: () => Navigator.of(context).pop()),
),
),
),
),
child: const Text('PRO', style: TextStyle(fontWeight: FontWeight.w800, fontSize: 20)),
);
}
}
purchases_flutter: ^9.9.10
purchases_ui_flutter: ^9.9.10
