孩子有BorderRadius()时如何使用Dismissible()?

时间:2019-11-19 19:12:40

标签: flutter

我正在尝试将DismissibleContainer一起使用BorderRadius,但是onDismissed动画不能正常工作,因为背景不一样形状。

This is a screen shot of the problem.

我已经尝试过了:

 Stack(
     overflow: Overflow.clip,
     children: <Widget>[
         MyBackgroundWidget(), // instead of background
         Dismissible(
             child: MyForegroundWidget(),
             // no background
         )
     ],
 );

and that works if you don't have padding. But don't work in my case, because i have padding in my container. So it will look like this when onDismissed, before the animation its completely done.

0 个答案:

没有答案