-
Notifications
You must be signed in to change notification settings - Fork 14
Refactor/components prefix #382
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
Conversation
lib/main.dart
Outdated
| import 'package:whitenoise/routing/router_provider.dart'; | ||
| import 'package:whitenoise/src/rust/frb_generated.dart'; | ||
| import 'package:whitenoise/ui/core/ui/toast_widget.dart'; | ||
| import 'package:whitenoise/ui/core/ui/wn_toast_wrapper.dart'; |
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.
this was renamed to 'wn_toast_wrapper' from 'toast_widget' can it be 'wn_toast' basically the content (classes) in the file are all widgets but not all wrappers. so lets not call the file with suffix of wrapper
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.
Thanks for the feedback! I'll rename it!
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.
now it's renamed to just WnToast ✅
782cdcc to
8b8bfd3
Compare
…o WnValidationNotification
8b8bfd3 to
888afd6
Compare
Description
We had several widgets in the core/ui folder with inconsistent prefixes: some started with App, others with Custom or Whitenoise, and a few had no prefix at all.
To improve naming consistency, we decided to standardize them using the Wn prefix (short for WhiteNoise — the full name felt too long).
This PR:
w_n_button.dartlooked a bit odd.I ran the app locally and everything seems to be working fine on my end, but I’d appreciate it if in the review you could check it locally as well, just in case I missed something.
Type of Change
Checklist
just precommitto ensure that formatting and linting are correctCHANGELOG.mdfile with your changes