bytedance/flutter_ume

UMEWidget的构造方法使用const修饰后enable属性无法传入动态值以修改,麻烦去掉构造方法前的const修饰符。

Opened this issue · 0 comments

const UMEWidget({
Key? key,
required this.child,
this.enable = true,
this.supportedLocales,
this.localizationsDelegates = defaultLocalizationsDelegates,
}) : super(key: key);

此Widget的构造方法 使用const修饰后,enable的值不能动态传入。