Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: sky/sdk/lib/widgets/drawer.dart

Issue 1223153004: Make the drawer, popup menus, dialogs, and settings page scrollable. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/lib/widgets/drawer.dart
diff --git a/sky/sdk/lib/widgets/drawer.dart b/sky/sdk/lib/widgets/drawer.dart
index ab5239748f9fa4bc1bb56217c3bc0d9894bb9173..db78cf9012f23a80053524b5723b8e8616443a63 100644
--- a/sky/sdk/lib/widgets/drawer.dart
+++ b/sky/sdk/lib/widgets/drawer.dart
@@ -10,6 +10,7 @@ import '../theme/shadows.dart';
import 'animated_component.dart';
import 'animated_container.dart';
import 'basic.dart';
+import 'scrollable_viewport.dart';
import 'theme.dart';
// TODO(eseidel): Draw width should vary based on device size:
@@ -138,7 +139,9 @@ class Drawer extends AnimatedComponent {
backgroundColor: Theme.of(this).canvasColor,
boxShadow: shadows[level]),
width: _kWidth,
- child: new Block(children)
+ child: new ScrollableViewport(
+ child: new Block(children)
+ )
));
return new Listener(

Powered by Google App Engine
This is Rietveld 408576698