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

Unified Diff: sky/framework/components/scaffold.dart

Issue 1132113007: [Effen] remove more CSS (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: base is now checked in Created 5 years, 7 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 | « sky/framework/components/radio.dart ('k') | sky/framework/layout.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/scaffold.dart
diff --git a/sky/framework/components/scaffold.dart b/sky/framework/components/scaffold.dart
index 43ee0a3cb15628c57517794b5a5450283a0a22c1..d66e5e00b060881941e40f2ed18396e11cdd3ea4 100644
--- a/sky/framework/components/scaffold.dart
+++ b/sky/framework/components/scaffold.dart
@@ -3,6 +3,7 @@
// found in the LICENSE file.
import '../fn.dart';
+import '../layout.dart';
import 'drawer.dart';
import 'floating_action_button.dart';
import 'package:sky/framework/theme/typography.dart' as typography;
@@ -13,12 +14,9 @@ class Scaffold extends Component {
${typography.black.body1};''');
static final Style _mainStyle = new Style('''
- display: flex;
- flex-direction: column;
height: -webkit-fill-available;''');
- static final Style _contentStyle = new Style('''
- flex: 1;''');
+ static final FlexBoxParentData _contentParentData = new FlexBoxParentData()..flex = 1;
static final Style _fabStyle = new Style('''
position: absolute;
@@ -49,10 +47,11 @@ class Scaffold extends Component {
UINode build() {
List<UINode> children = [
- new Container(
+ new FlexContainer(
key: 'Main',
+ direction: FlexDirection.Column,
style: _mainStyle,
- children: [header, new StyleNode(content, _contentStyle)])
+ children: [header, new ParentDataNode(content, _contentParentData)])
];
if (fab != null)
« no previous file with comments | « sky/framework/components/radio.dart ('k') | sky/framework/layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698