Hi,
How i can change the bottom color (gray bar) under "restaurar compras" using Flutter?
Im using the demo flutter code from docs, but don't have option to change that part.
Thanks.

Hi,
How i can change the bottom color (gray bar) under "restaurar compras" using Flutter?
Im using the demo flutter code from docs, but don't have option to change that part.
Thanks.
Olá Paulo! Happy to help here.
What you are seeing is very likely to be related to your SafeArea
widget configuration.
We don’t provide a way to change this on the code because the paywall is meant to be a child widget; the containing Scaffold
is entirely customisable on your end.
In case you haven’t already, could you try changing your Scaffold
background color to see if it solves the issue?
home: Scaffold(
backgroundColor: Colors.white,
body: SafeArea(
// ...
If this doesn’t work, please send me the code where you call the paywall so I can examine what could be missing. Let’s get to the bottom of this!
All the best,
-- Víctor from RevenueCat
Hi,
I tried it, but don't work:
class _SubscriptionViewState extends State<SubscriptionView> {
void _showPaywall() async {
final offerings = await Purchases.getOfferings();
if (offerings.current != null) {
if (!mounted) return;
final navigator = Navigator.of(context);
navigator.push(
MaterialPageRoute(
builder: (context) => Scaffold(
appBar: AppBar(
title: Text("subscription.label".tr()),
backgroundColor: appStore.theme.primarySwatchColor,
),
backgroundColor: Colors.white,
body: SafeArea(
child: PaywallView(
offering: offerings.current,
onRestoreCompleted: (customerInfo) async {
// refresh global subscription status to unlock content immediately
await appStore.refreshSubscriptionStatus();
},
onPurchaseCompleted: (customerInfo, storeTransaction) async {
// refresh global subscription status to unlock content immediately after purchase
await appStore.refreshSubscriptionStatus();
},
onDismiss: () {
if (mounted) {
navigator.pop();
}
},
),
),
),
),
);
}
}
}
Hi,
Can have some relation, because when i set the bgColor to red, it paint in red color. But i think that is apply some effect over the color and because the effect it is not a clear/solid white.
I have removed the SafeArea and it appear works.
Hi Paulo!
That looks perfect, glad you were able to solve the problem. Let me know if you have any other questions, I’ll be happy to help.
All the best,
--Víctor from RevenueCat
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.