Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created September 13, 2018 16:42
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 MarcinusX/02d5aa08b26165d7a0b018ce04d1bd13 to your computer and use it in GitHub Desktop.
Save MarcinusX/02d5aa08b26165d7a0b018ce04d1bd13 to your computer and use it in GitHub Desktop.
class SliderLabel extends StatelessWidget {
final int height;
const SliderLabel({Key key, this.height}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.only(
left: screenAwareSize(4.0, context),
bottom: screenAwareSize(2.0, context),
),
child: Text(
"$height",
style: TextStyle(
fontSize: selectedLabelFontSize,
color: Theme.of(context).primaryColor,
fontWeight: FontWeight.w600,
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment