Skip to content

Commit 5dc0552

Browse files
committed
[104] Removing an unnecessary widget.
1 parent 1e4431f commit 5dc0552

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

mdc_100_series/lib/backdrop.dart

+10-12
Original file line numberDiff line numberDiff line change
@@ -187,20 +187,18 @@ class _BackdropState extends State<Backdrop>
187187
end: RelativeRect.fromLTRB(0.0, 0.0, 0.0, 0.0),
188188
).animate(_controller.view);
189189

190-
return Container(
190+
return Stack(
191191
key: _backdropKey,
192-
child: Stack(
193-
children: <Widget>[
194-
widget.backPanel,
195-
PositionedTransition(
196-
rect: panelAnimation,
197-
child: _BackdropPanel(
198-
onTap: _toggleBackdropPanelVisibility,
199-
child: widget.frontPanel,
200-
),
192+
children: <Widget>[
193+
widget.backPanel,
194+
PositionedTransition(
195+
rect: panelAnimation,
196+
child: _BackdropPanel(
197+
onTap: _toggleBackdropPanelVisibility,
198+
child: widget.frontPanel,
201199
),
202-
],
203-
),
200+
),
201+
],
204202
);
205203
}
206204

0 commit comments

Comments
 (0)