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 '../fn.dart'; | 5 import '../fn2.dart'; |
6 import '../layout.dart'; | 6 import '../layout2.dart'; |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:sky' as sky; | 8 import 'dart:sky' as sky; |
9 import 'ink_splash.dart'; | 9 import 'ink_splash.dart'; |
10 import 'scrollable.dart'; | 10 import 'scrollable.dart'; |
11 | 11 |
12 class InkWell extends Component implements ScrollClient { | 12 class InkWell extends Component implements ScrollClient { |
13 static final Style _containmentStyleHack = new Style(''' | 13 static final Style _containmentStyleHack = new Style(''' |
14 align-items: center; | 14 align-items: center; |
15 transform: translateX(0);'''); | 15 transform: translateX(0);'''); |
16 | 16 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void _splashDone(SplashController splash) { | 110 void _splashDone(SplashController splash) { |
111 if (_splashes == null) | 111 if (_splashes == null) |
112 return; | 112 return; |
113 setState(() { | 113 setState(() { |
114 _splashes.remove(splash); | 114 _splashes.remove(splash); |
115 if (_splashes.length == 0) | 115 if (_splashes.length == 0) |
116 _splashes = null; | 116 _splashes = null; |
117 }); | 117 }); |
118 } | 118 } |
119 } | 119 } |
OLD | NEW |