File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -330,19 +330,25 @@ class __ToastContainerState extends State<_ToastContainer>
330
330
var mediaQueryData = MediaQueryData .fromWindow (ui.window);
331
331
Widget container = w;
332
332
333
- print ("on change" );
334
-
333
+ var edgeInsets = EdgeInsets .only (bottom: mediaQueryData.viewInsets.bottom);
335
334
if (offset > 0 ) {
335
+ var padding = EdgeInsets .only (top: offset) + edgeInsets;
336
+
336
337
container = AnimatedPadding (
337
338
duration: _opacityDuration,
338
- padding: EdgeInsets .only (top: offset) +
339
- EdgeInsets .only (bottom: mediaQueryData.viewInsets.bottom),
339
+ padding: padding,
340
340
child: container,
341
341
);
342
342
} else if (offset < 0 ) {
343
343
container = AnimatedPadding (
344
344
duration: _opacityDuration,
345
- padding: EdgeInsets .only (bottom: offset.abs ()),
345
+ padding: EdgeInsets .only (bottom: offset.abs ()) + edgeInsets,
346
+ child: container,
347
+ );
348
+ } else {
349
+ container = AnimatedPadding (
350
+ duration: _opacityDuration,
351
+ padding: edgeInsets,
346
352
child: container,
347
353
);
348
354
}
You can’t perform that action at this time.
0 commit comments