unnecessary parenthesis (#14533)

This commit is contained in:
Alexandre Ardhuin
2018-02-16 07:43:19 +01:00
committed by GitHub
parent a37a8424b3
commit bd1921ec84
11 changed files with 38 additions and 38 deletions

View File

@@ -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>[

View File

@@ -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;