Conditional logic based on notifications enabled or disabled

Hi!

I'm a complete newbie to FlutterFlow but I'm making good progress toward writing my very first app.

I have created a page with some text and a button that enables notification permissions. This works fine.

However I only want the page with the button to display if the notifications permissions is NOT enabled. If notifications permissions are already enabled then the page should be skipped.

This is not working. When the page loads and the notifications permission is not enabled, then it immediately displays the prompt to enable notifications permission. But I want the page with the button to be displayed first, so the user has the opportunity to read the text first before pressing the button.

This is the action code on page load:

This is the page:

And the button action: