Code Improvements #226
YukiAttano
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some suggestions to improve the generated code:
First:
can be rewritten to a non null final variable
(because it is (and probably must only be) set at app start
Second:
Not just that the Container surrounding the child can be removed and the child parameter of the Banner should go last, you can improve your code by replacing the "if else" with a visibility.
(Also note: instead of using a function, it is highly recommended to use a Widget class instead)
Beta Was this translation helpful? Give feedback.
All reactions