Created
June 22, 2021 12:53
-
-
Save enginebai/89dbc0639f0a55d23376f3865412bd54 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
@override | |
Widget build(BuildContext context) { | |
return Container( | |
height: _labelHeight, | |
decoration: BoxDecoration( | |
border: Border.all( | |
color: this.strokeColor ?? Colors.transparent, | |
width: strokeWidth), | |
borderRadius: BorderRadius.circular(_cornerSize), | |
color: this.backgroundColor ?? Colors.transparent), | |
padding: EdgeInsets.symmetric(horizontal: 8), | |
child: Center( | |
child: Text(this.labelText, | |
style: Theme.of(context) | |
.textTheme | |
.caption | |
?.copyWith(color: this.textColor ?? Colors.black)), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment