Clean up of app code #2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I thought I'd submit a PR to clean up some of the code to address a few issues (note: some may be consider rather opinionated so feel free to edit the changes in the PR as you see fit or close it even)
dynamic
. Especially for theProfile
andLogin
widget whereloginAction
andlogoutAction
expects function types but no type is declared so they're dynamicdouble
andint
literals to widget size props (i.e. height/width)await
I added an
analysis_options.yaml
to match the styling of the existing code (with fixes) as much as possible and make changes to address a few other issues picked up by the linter as well. One of the rules that I've commented out and haven't addressed is that the preference is to have constants in lower camel case.Also removed the widget test as that is from the standard counter app so it's actually failing