Skip to content

Instantly share code, notes, and snippets.

@enginebai
Created June 22, 2021 12:49
Show Gist options
  • Save enginebai/234732cd0788bbae834ca7772e27d236 to your computer and use it in GitHub Desktop.
Save enginebai/234732cd0788bbae834ca7772e27d236 to your computer and use it in GitHub Desktop.
Label.text(
{Key? key,
required this.labelText,
this.textColor = Colors.black,
this.textSize = _textSize})
: assert(labelText.isNotEmpty),
this.backgroundColor = Colors.transparent,
this.strokeColor = Colors.transparent,
this.strokeWidth = 0.0,
super(key: key);
Label.stroke(
{Key? key,
required this.labelText,
this.textColor = Colors.black,
this.textSize = _textSize,
this.strokeColor = Colors.black,
this.strokeWidth = _strokeWidth})
: assert(labelText.isNotEmpty),
this.backgroundColor = Colors.transparent,
super(key: key);
Label.filled(
{Key? key,
required this.labelText,
this.backgroundColor = Colors.black,
this.textColor = Colors.white,
this.textSize = _textSize})
: assert(labelText.isNotEmpty),
this.strokeColor = Colors.transparent,
this.strokeWidth = 0.0,
super(key: key);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment