Skip to content

Instantly share code, notes, and snippets.

@faizan1947
Created April 21, 2023 11:43
Show Gist options
  • Save faizan1947/1e6a17f4cfbf854a22fd1c4b26ae15f1 to your computer and use it in GitHub Desktop.
Save faizan1947/1e6a17f4cfbf854a22fd1c4b26ae15f1 to your computer and use it in GitHub Desktop.
Flutter Inkwell Button
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