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

fix: Personalize ranking top bar color #1238

Merged
merged 4 commits into from
Mar 18, 2022

Conversation

PrabeshPP
Copy link
Contributor

What

Added dark theme for the top bar in Personalized Page.

Screenshot

Dark Theme:

LightTheme:

Fixes bug(s)

Part of

@PrabeshPP PrabeshPP requested a review from a team as a code owner March 17, 2022 13:21
@PrabeshPP
Copy link
Contributor Author

hi,
If there is any question, do let me know .I would be happy to contribute.
Waiting for the reply!

Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

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

The code looks good @PrabeshPP, just two small comments.

Also the automated tests are failing because of formatting, Please run flutter format . to automatically format the code

CHANGELOG.md Outdated
Comment on lines 3 to 5
## [0.2.0](https://github.com/openfoodfacts/smooth-app/compare/v0.1.0...v0.2.0) (2022-03-16)


Copy link
Member

Choose a reason for hiding this comment

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

Where do all these changes come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These Changes came when I did pull request. However , on VS Code it only showed changes in personalized_ranking_page.dart .

Copy link
Member

Choose a reason for hiding this comment

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

You probably created your branch from the release-please--branches--develop and not from develop itself. Don't worry I just reverted the changes in the changelog.

child: Text(
widget.title,
overflow: TextOverflow.fade,
)),
Copy link
Member

Choose a reason for hiding this comment

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

Another , between those two would be good

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hi @M123-dev I have added , .

@@ -111,7 +113,7 @@ class _PersonalizedRankingPageState extends State<PersonalizedRankingPage> {
(final int index) => Tab(
child: Text(
titles[index],
style: TextStyle(color: colors[index]),
style: index==0?TextStyle(color:themeData.hintColor ):TextStyle(color: colors[index]),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you reformat your code please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hi @g123k
I have now re-format the code.

@teolemon teolemon added personal search darkmode Ensuring we look good in the dark labels Mar 17, 2022
@@ -54,6 +54,8 @@ class _PersonalizedRankingPageState extends State<PersonalizedRankingPage> {
context.watch<ProductPreferences>();
final LocalDatabase localDatabase = context.watch<LocalDatabase>();
final DaoProductList daoProductList = DaoProductList(localDatabase);
final ThemeData themeData = Theme.of(context);
final ColorScheme colorScheme = Theme.of(context).colorScheme;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since you already have the value of Theme.of(context) one line beforr, please re-use it instead of requesting it once again

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hi @g123k thank you for the comment.Now,I have refactor the code.

@g123k
Copy link
Collaborator

g123k commented Mar 18, 2022

LGTM 👍

@M123-dev M123-dev changed the title Personalize ranking top bar fix: Personalize ranking top bar color Mar 18, 2022
Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

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

.

Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

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

Thanks @PrabeshPP everything looks good now

@M123-dev M123-dev merged commit 0cb2fbc into openfoodfacts:develop Mar 18, 2022
@M123-dev
Copy link
Member

Congrats on your first PR here 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
darkmode Ensuring we look good in the dark personal search
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants