Skip to content

Popup UI - “Dont Miss Out” - #319

Open
gselina wants to merge 1 commit into
masterfrom
popup-ui
Open

gselina wants to merge 1 commit into
masterfrom
popup-ui

Conversation

@gselina

@gselina gselina commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary

This pull request implements a reusable pop-up widget that displays an envelope-style notification with configurable text

  • implemented widget that accepts three dynamic parameters:
    • Title text (shown at the top of the popup)
    • Body text (shown inside the envelope graphic)
    • Button label text
  • when the label is “Turn On Notifications”, button opens the app’s settings page on the user’s device

Test Plan

popui.dont.miss.out.mp4

@CLAassistant

CLAassistant commented Apr 27, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@dti-github-bot

dti-github-bot commented Apr 27, 2026 •

Copy link
Copy Markdown
Member

[diff-counting] Significant lines: 259.

@jjasonguo jjasonguo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good check my one comment

// TODO: testing purposes only, remove later
if (kDebugMode) {
WidgetsBinding.instance.addPostFrameCallback((_) async {
if (!mounted) return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great Selina. Last thing would be to determine the frequency we want to show this pop-up, maybe if they don't want notifications we shouldn't bother them every single time they open the app. Additionally, when notifications ARE turned on, the popup still appears. There should be a way to see if they turned them on already.

@ambers7 ambers7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job Selina! Make sure that you're using colors from game/lib/constants/colors.dart instead of hardcoding them. It might also be good to add a quick description of what CTA means in the documentation.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants