Refactor the code to make it consistent and stop terminate any performance issues.
According best practices you should also make sure of the following:
1- use const on Widgets that don't change
2- The Main reason of Flutter v2.0 is Type Safety so please Avoid using var in Type Naming
3- use classes for widgets instead of methods please check the example below
instead of having a method inside the class like : showPopup() { return Popup }
make it like ShowPopup extends StatelessWidget { Widget () { return Popup } }
if you see some mistake put it in the convention section in the CONTRIBUTE.md
Refactor the code to make it consistent and stop terminate any performance issues.
According best practices you should also make sure of the following: 1- use const on Widgets that don't change 2- The Main reason of Flutter v2.0 is Type Safety so please Avoid using var in Type Naming 3- use classes for widgets instead of methods please check the example below
instead of having a method inside the class like : showPopup() { return Popup } make it like ShowPopup extends StatelessWidget { Widget () { return Popup } }
if you see some mistake put it in the convention section in the CONTRIBUTE.md