Created
November 26, 2021 15:59
-
-
Save kasperpeulen/31e88905831186ef512c510252798f98 to your computer and use it in GitHub Desktop.
This file contains 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 MyButton extends StatelessWidget { | |
const MyButton({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return GestureDetector( | |
onTap: () { | |
print('MyButton was tapped!'); | |
}, | |
child: Container( | |
height: 50.0, | |
padding: const EdgeInsets.all(8.0), | |
margin: const EdgeInsets.symmetric(horizontal: 8.0), | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(5.0), | |
color: Colors.lightGreen[500], | |
), | |
child: const Center( | |
child: Text('Engage'), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment