Skip to content

Instantly share code, notes, and snippets.

@kasperpeulen
Created November 26, 2021 15:59
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 kasperpeulen/31e88905831186ef512c510252798f98 to your computer and use it in GitHub Desktop.
Save kasperpeulen/31e88905831186ef512c510252798f98 to your computer and use it in GitHub Desktop.
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