Created
April 17, 2017 21:24
-
-
Save LucWollants/023ab8c1ddc47a8548b3135dc818d7aa to your computer and use it in GitHub Desktop.
Simple example to show the invisible divider.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(new MaterialApp( | |
title: 'divider', | |
home: new ExpandedWidget(), | |
)); | |
} | |
class ExpandedWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
appBar: new AppBar( | |
title: new Text('divider'), | |
), | |
body: new Container( | |
child: new Row( | |
children: [ | |
new Column( | |
children: [ | |
new Text('Hello'), | |
new Divider( | |
indent: 10.0, | |
height: 50.0, | |
color: new Color.fromRGBO(255, 255, 255, 1.0) | |
), | |
new Text('World'), | |
] | |
), | |
] | |
), | |
color: new Color.fromRGBO(100, 100, 100, 1.0), | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment