Skip to content

Instantly share code, notes, and snippets.

@nhancv
Created January 5, 2021 16:14
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 nhancv/b47239993b1b34393a32e4f888f8cf12 to your computer and use it in GitHub Desktop.
Save nhancv/b47239993b1b34393a32e4f888f8cf12 to your computer and use it in GitHub Desktop.
Flutter divider line
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