Unverified Commit e8d99d12 authored by xster's avatar xster Committed by GitHub

Fix backdrop demo margin for iPhone X (#17480)

parent e42c50cf
......@@ -315,7 +315,12 @@ class _BackdropDemoState extends State<BackdropDemo> with SingleTickerProviderSt
final double panelTop = panelSize.height - panelTitleHeight;
final Animation<RelativeRect> panelAnimation = new RelativeRectTween(
begin: new RelativeRect.fromLTRB(0.0, panelTop, 0.0, panelTop - panelSize.height),
begin: new RelativeRect.fromLTRB(
0.0,
panelTop - MediaQuery.of(context).padding.bottom,
0.0,
panelTop - panelSize.height,
),
end: const RelativeRect.fromLTRB(0.0, 0.0, 0.0, 0.0),
).animate(
new CurvedAnimation(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment