Open liukexina opened 4 years ago
解决:UnconstrainedBox:消除父级约束 type: MaterialType.card代替type: MaterialType.transparency
UnconstrainedBox( alignment: Alignment.center, child: Material( child: Center( child: Container( width: width, alignment: Alignment.center, child:child ), type: MaterialType.card, ), );
解决:UnconstrainedBox:消除父级约束 type: MaterialType.card代替type: MaterialType.transparency
UnconstrainedBox( alignment: Alignment.center, child: Material( child: Center( child: Container( width: width, alignment: Alignment.center, child:child ), type: MaterialType.card, ), );