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