From 37ee4b25f50870e3af5c8302485bf65364e9df2e Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 30 Sep 2015 11:22:05 -0700 Subject: [PATCH] Add widgets_next.dart to help folks transition to fn3 Also, fix analyzer warning in fn2. --- packages/flutter/lib/src/widgets/scrollable.dart | 2 +- packages/flutter/lib/widgets_next.dart | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 packages/flutter/lib/widgets_next.dart diff --git a/packages/flutter/lib/src/widgets/scrollable.dart b/packages/flutter/lib/src/widgets/scrollable.dart index 20ef8ac28b..3f4a721ffd 100644 --- a/packages/flutter/lib/src/widgets/scrollable.dart +++ b/packages/flutter/lib/src/widgets/scrollable.dart @@ -125,7 +125,7 @@ abstract class Scrollable extends StatefulComponent { void _startToEndAnimation({ double velocity: 0.0 }) { _stopAnimations(); - Simulation simulation = scrollBehavior.release(scrollOffset, velocity); + Simulation simulation = scrollBehavior.createFlingScrollSimulation(scrollOffset, velocity); if (simulation != null) _toEndAnimation.start(simulation); } diff --git a/packages/flutter/lib/widgets_next.dart b/packages/flutter/lib/widgets_next.dart new file mode 100644 index 0000000000..bf7f11bb9f --- /dev/null +++ b/packages/flutter/lib/widgets_next.dart @@ -0,0 +1,8 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// The Flutter widget framework. +library widgets; + +export 'src/fn3.dart';