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