Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add planner advert #557

Merged
merged 5 commits into from
Jan 27, 2025
Merged

Add planner advert #557

merged 5 commits into from
Jan 27, 2025

Conversation

mikolaj-jalocha
Copy link
Member

  • whole section is clickable
  • when disabled, nothing is shown
  • I didn't implement adverts in other places (I don't know exactly where and wanted to sort out the most important for now) but if you guys think it belongs to the scope of this task I will do that.
  • I reused technicalMessage widget. Whole operation wasn't intrusive and easy to perform. I decided not to implement separate widget for that, new improvements seems useful afterall.

Copy link
Member

@tomasz-trela tomasz-trela left a comment

Choose a reason for hiding this comment

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

LGTM , but there is 2 small improvements to do.

Copy link
Member

@simon-the-shark simon-the-shark left a comment

Choose a reason for hiding this comment

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

so basically looks good to me, but I'd like you to check how the paddings will behave when the AD is turned off

@@ -35,7 +37,7 @@ class HomeView extends StatelessWidget {
child: ListView.separated(
itemBuilder: (context, index) => sections[index],
separatorBuilder: (context, index) => SizedBox(
height: index == 1 ? 0 : HomeViewConfig.paddingMedium,
height: index == 1 || index == 2 ? 0 : HomeViewConfig.paddingMedium,
Copy link
Member

Choose a reason for hiding this comment

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

did you check how this will behave when the advert is turned off?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I did, imo not bad (please see the pic below). If you like, I will reduce it a bit, but one question arise. Do you have an idea how to do it right? Currently I can't see other options that manually added spacers (besides making HomeScreen Consumer widget, imo wrong way).

Copy link
Member

Choose a reason for hiding this comment

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

no better ideas. If you don't want any ifs in the separator, then u can give padding directly to children, just by wrapping them in Padding, but here this will look bad. Imo the current solution is ok

Copy link
Member

Choose a reason for hiding this comment

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

also the padding seems fine

@simon-the-shark simon-the-shark merged commit 51f75bb into main Jan 27, 2025
2 checks passed
@simon-the-shark simon-the-shark deleted the feat/planner-advert branch January 27, 2025 08:22
@Rei-x
Copy link
Member

Rei-x commented Jan 27, 2025

@mikolaj-jalocha planner -> planer 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants