Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.