Skip to content

Instantly share code, notes, and snippets.

@LucWollants
Created April 17, 2017 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LucWollants/023ab8c1ddc47a8548b3135dc818d7aa to your computer and use it in GitHub Desktop.
Save LucWollants/023ab8c1ddc47a8548b3135dc818d7aa to your computer and use it in GitHub Desktop.
Simple example to show the invisible divider.
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