Merge pull request #1408 from abarth/widgets_next

Add widgets_next.dart to help folks transition to fn3
This commit is contained in:
Adam Barth 2015-09-30 11:29:09 -07:00
commit 215e6ae25c
2 changed files with 9 additions and 1 deletions

View File

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

View File

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