Merge pull request #1408 from abarth/widgets_next
Add widgets_next.dart to help folks transition to fn3
This commit is contained in:
commit
215e6ae25c
@ -125,7 +125,7 @@ abstract class Scrollable extends StatefulComponent {
|
|||||||
|
|
||||||
void _startToEndAnimation({ double velocity: 0.0 }) {
|
void _startToEndAnimation({ double velocity: 0.0 }) {
|
||||||
_stopAnimations();
|
_stopAnimations();
|
||||||
Simulation simulation = scrollBehavior.release(scrollOffset, velocity);
|
Simulation simulation = scrollBehavior.createFlingScrollSimulation(scrollOffset, velocity);
|
||||||
if (simulation != null)
|
if (simulation != null)
|
||||||
_toEndAnimation.start(simulation);
|
_toEndAnimation.start(simulation);
|
||||||
}
|
}
|
||||||
|
8
packages/flutter/lib/widgets_next.dart
Normal file
8
packages/flutter/lib/widgets_next.dart
Normal 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';
|
Loading…
x
Reference in New Issue
Block a user