Created
October 11, 2019 11:41
-
-
Save av/4e52b0cb51eb717d0981ffcb9b75225b to your computer and use it in GitHub Desktop.
Flutter: tough_bikes BikeButton with CustomPaint
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
class BikeButton extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
height: 50.0, | |
child: CustomPaint( | |
painter: BikeButtonPainter(), | |
child: Center( | |
child: Text('Buy Tough Bike'.toUpperCase()), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment