Created
January 5, 2021 16:14
-
-
Save nhancv/b47239993b1b34393a32e4f888f8cf12 to your computer and use it in GitHub Desktop.
Flutter divider line
This file contains 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 WDividerLine extends StatelessWidget { | |
const WDividerLine({Key key, this.width, this.height, this.color}) | |
: super(key: key); | |
final double width; | |
final double height; | |
final Color color; | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
width: width ?? MediaQuery.of(context).size.width, | |
height: height ?? 0.5, | |
color: color ?? const Color(0xFF979797), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment