-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add planner advert #557
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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 if
s 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
There was a problem hiding this comment.
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
@mikolaj-jalocha planner -> planer 😭 |
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.