1. The question is:

Using JSON_serialIZABLE parse Json to create an object generates an xxx.g. art error

  These outputs must be removed manually or the build can be run with `--delete-conflicting-outputs`
Copy the code

Solution:

The project root directory runs flutter packages pub run build_runner clean flutter packages pub run build_runner build --delete-conflicting-outputsCopy the code

2. Question:

Flutter Incorrect use of ParentDataWidget

Solution:

Retain: Expanded and Flexible only apply to components such as Row and Column, but not other components.

3. Question:

Using PopupRoute, PopupRoute pops up dialog boxes based on the position of the control. In the application, the contents of PopupRoute need to be refreshed based on the State. Since PopuRoute is not a subclass of State, calling setState() will not reload the entire layout

Solution: Here we can return an external StatefulWidget layout object in buildPage, where setState() is found to refresh the entire layout. This is just a trick, if there is a way to refresh buildPage or get PopupRoute rebuilt please let me know.

Problem 4.

There are multiple texts in a Row, and each Text has an inconsistent font size, resulting in the middle line of the font, and sometimes the bottom line of the font, similar to the following

Add height() to style in Text

/ / — — — — — — — — — — — — — — — — — — — — — — — — — – to be updated