@@ -187,18 +187,17 @@ class CupertinoModalBottomSheetRoute<T> extends ModalBottomSheetRoute<T> {
187187 (paddingTop + _behind_widget_visible_height) * 0.9 ;
188188 final offsetY = secondaryAnimation.value * (paddingTop - distanceWithScale);
189189 final scale = 1 - secondaryAnimation.value / 10 ;
190- return AnimatedBuilder (
191- builder: (context, child) => Transform .translate (
192- offset: Offset (0 , offsetY),
193- child: Transform .scale (
194- scale: scale,
195- child: child,
196- alignment: Alignment .topCenter,
197- ),
190+ return AnimatedBuilder (
191+ builder: (context, child) => Transform .translate (
192+ offset: Offset (0 , offsetY),
193+ child: Transform .scale (
194+ scale: scale,
195+ child: child,
196+ alignment: Alignment .topCenter,
198197 ),
199- child : child ,
200- animation : secondaryAnimation ,
201-
198+ ) ,
199+ child : child ,
200+ animation : secondaryAnimation,
202201 );
203202 }
204203
@@ -279,7 +278,6 @@ class _CupertinoModalTransition extends StatelessWidget {
279278 }
280279}
281280
282-
283281class _CupertinoScaffold extends InheritedWidget {
284282 final AnimationController animation;
285283
@@ -339,7 +337,7 @@ class CupertinoScaffold extends StatefulWidget {
339337 assert (enableDrag != null );
340338 assert (debugCheckHasMediaQuery (context));
341339 final isCupertinoApp = Theme .of (context, shadowThemeOnly: true ) == null ;
342- String barrierLabel = '' ;
340+ var barrierLabel = '' ;
343341 if (! isCupertinoApp) {
344342 assert (debugCheckHasMaterialLocalizations (context));
345343 barrierLabel = MaterialLocalizations .of (context).modalBarrierDismissLabel;
0 commit comments