class MSGradientButtonDemo extends StatelessWidget {
const MSGradientButtonDemo({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("GradientButton")),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
GradientButton(
tapCallback: () => print("Button Clicked 1"),
child: Text("Submit 1"),
colors: [Colors.orange, Colors.cyan],
height: 50,
),
GradientButton(
tapCallback: () => print("Button Clicked 2"),
child: Text("Submit 2"),
colors: [Colors.cyan, Colors.green],
height: 50,
),
GradientButton(
tapCallback: () => print("Button Clicked 3"),
child: Text("Submit 3"),
colors: [Colors.yellow, Colors.red, Colors.orange],
height: 50,
),
GradientButton(
tapCallback: () => print("Button Clicked 4"),
child: Text("Submit 4"),
colors: [Colors.orange, Colors.cyan],
height: 50,
width: 200,
borderRadius: BorderRadius.circular(8),
),
GradientButton(
tapCallback: () => print("Button Clicked 5"),
child: Text("enable 5"),
width: 200,
height: 50,
borderRadius: BorderRadius.circular(8),
colors: [Colors.grey, Colors.red],
disable: false,
),
GradientButton(
tapCallback: () => print("Button Clicked 6"),
child: Text("Disable 6"),
width: 200,
height: 50,
borderRadius: BorderRadius.circular(8),
disable: true,
)
],
),
),
);
}
}