Created
April 21, 2023 11:43
-
-
Save faizan1947/1e6a17f4cfbf854a22fd1c4b26ae15f1 to your computer and use it in GitHub Desktop.
Flutter Inkwell Button
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
Material( | |
type: MaterialType.transparency, | |
child: InkWell( | |
onTap: () { | |
print('tapped'); | |
}, | |
child: Ink( | |
height: 60, | |
width: 200, | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(30), | |
gradient: LinearGradient(colors: [Colors.black, Colors.red])), | |
child: Center(child: Text('Press Me')), | |
), | |
), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment