Add widgets_next.dart to help folks transition to fn3

Also, fix analyzer warning in fn2.
This commit is contained in:
Adam Barth 2015-09-30 11:22:05 -07:00
parent 32558478b1
commit 37ee4b25f5
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';