Created
June 6, 2018 15:23
-
-
Save ajaybeniwal/6c831fbe661289ed9dadc7437502c2d1 to your computer and use it in GitHub Desktop.
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'; | |
class Bar extends StatelessWidget { | |
final double height; | |
final Color color; | |
const Bar({this.height,this.color}) : super(); | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
width: 4.0, | |
height: this.height, | |
margin: new EdgeInsets.only(left: 3.0, right: 3.0), | |
decoration: new BoxDecoration( | |
color: color, | |
borderRadius: new BorderRadius.circular(10.0), | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment