After the Flutter upgrade to 1.20, the DiagnosticableMixin was removed, and the source code of the DatePicker plug-in was wrong, just update it to Diagnosticable

, Since the corresponding class has been abolished in Flutter1.20 and above, DatePicker cannot be packaged and compiled with this dependency package. You need to download the source code yourself and package it locally. Change the implementation class DiagnosticableMixin in the theme file inside to Diagnosticable

Some third-party dependent plug-ins have inherited the DiagnosticableMixin class, and the developer has not updated it. Other plug-ins that inherit the DiagnosticableMixin class, such as: flutter_cupertino_date_picker This also needs to be changed to Diagnosticable

 

Guess you like

Origin blog.csdn.net/qq_25062671/article/details/117530934