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

Unified Diff: sky/sdk/example/demo_launcher/lib/main.dart

Issue 1230053005: We can't use block when we have constrained space anymore. Use Flex instead. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/demo_launcher/lib/main.dart
diff --git a/sky/sdk/example/demo_launcher/lib/main.dart b/sky/sdk/example/demo_launcher/lib/main.dart
index f1d7fa729b6b094e3453b0e7f1c7f8b84da321fa..23aeac766869b8fadfda630d9bdf37510e1094ea 100644
--- a/sky/sdk/example/demo_launcher/lib/main.dart
+++ b/sky/sdk/example/demo_launcher/lib/main.dart
@@ -146,10 +146,14 @@ class DemoList extends Component {
),
new Container(
margin: const EdgeDims.all(24.0),
- child: new Block([
- new Text(demo.name, style: demo.textTheme.title),
- new Text(demo.description, style: demo.textTheme.subhead)
- ])
+ child: new Flex([
+ new Text(demo.name, style: demo.textTheme.title),
+ new Flexible(
+ child: new Text(demo.description, style: demo.textTheme.subhead)
+ )
+ ],
+ direction: FlexDirection.vertical,
+ alignItems: FlexAlignItems.start)
)
])
),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698