OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 import '../fn2.dart'; | 5 import '../fn2.dart'; |
6 import '../layout2.dart'; | |
7 import 'dart:collection'; | 6 import 'dart:collection'; |
8 import 'dart:sky' as sky; | 7 import 'dart:sky' as sky; |
9 import 'ink_splash.dart'; | 8 import 'ink_splash.dart'; |
10 import 'scrollable.dart'; | 9 import 'scrollable.dart'; |
11 | 10 |
12 class InkWell extends Component implements ScrollClient { | 11 class InkWell extends Component implements ScrollClient { |
13 static final Style _containmentStyleHack = new Style(''' | 12 static final Style _containmentStyleHack = new Style(''' |
14 align-items: center; | 13 align-items: center; |
15 transform: translateX(0);'''); | 14 transform: translateX(0);'''); |
16 | 15 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void _splashDone(SplashController splash) { | 109 void _splashDone(SplashController splash) { |
111 if (_splashes == null) | 110 if (_splashes == null) |
112 return; | 111 return; |
113 setState(() { | 112 setState(() { |
114 _splashes.remove(splash); | 113 _splashes.remove(splash); |
115 if (_splashes.length == 0) | 114 if (_splashes.length == 0) |
116 _splashes = null; | 115 _splashes = null; |
117 }); | 116 }); |
118 } | 117 } |
119 } | 118 } |
OLD | NEW |