我遇到了这个错误。
Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/path/path_ref.dart:831:12
isValid
is not true
The relevant error-causing widget was
ClipPath
我使用的依赖是:flutter_custom_clippers: ^1.1.1
每当我重新启动或进行热重载时,UI会正常构建,但几秒钟后我会在调试控制台中收到以下错误。
以下是我的小部件结构。
ClipPath(
clipper: WaveClipperTwo(flip: true, reverse: true),
child: Container(
padding: EdgeInsets.all(10),
width: double.infinity,
height: 350,
color: Colors.black87,
child: ...
)
);
我该如何解决这个错误。