unnecessary parenthesis (#14533)
This commit is contained in:
committed by
GitHub
parent
a37a8424b3
commit
bd1921ec84
@@ -399,7 +399,7 @@ class _VideoDemoState extends State<VideoDemo>
|
||||
appBar: new AppBar(
|
||||
title: const Text('Videos'),
|
||||
),
|
||||
body: (isSupported)
|
||||
body: isSupported
|
||||
? new ConnectivityOverlay(
|
||||
child: new ListView(
|
||||
children: <Widget>[
|
||||
|
||||
@@ -109,7 +109,7 @@ class GestureDemoState extends State<GestureDemo> {
|
||||
|
||||
void _handleScaleUpdate(ScaleUpdateDetails details) {
|
||||
setState(() {
|
||||
_zoom = (_previousZoom * details.scale);
|
||||
_zoom = _previousZoom * details.scale;
|
||||
|
||||
// Ensure that item under the focal point stays in the same place despite zooming
|
||||
final Offset normalizedOffset = (_startingFocalPoint - _previousOffset) / _previousZoom;
|
||||
|
||||
Reference in New Issue
Block a user