diff --git a/lib/buttons/linearGradientButton b/lib/buttons/linearGradientButton new file mode 100644 index 0000000..1525234 --- /dev/null +++ b/lib/buttons/linearGradientButton @@ -0,0 +1,31 @@ +import 'package:flutter/material.dart'; +class SimpleRoundButton extends StatelessWidget { + + final List backgroundColors; + final Text buttonText; + final Function onTap; + + SimpleRoundButton({ + this.backgroundColors, + this.buttonText, + this.onTap + }); + + @override + Widget build(BuildContext context) { + return InkWell( + onTap: onTap, + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(50.0), + gradient: LinearGradient( + colors: backgroundColors + ) + ), + height: 60.0, + width: MediaQuery.of(context).size.width*0.7, + child: Center(child: buttonText), + ), + ); + } +}