content: import 'package:flutter/material.dart';
  
  
  class RoundedButton extends StatelessWidget {
    final String text;
    final Function press;
    final Color color, textColor;
    const RoundedButton({
      Key key,
      this.text,
      this.press,
      this.color,
      this.textColor = Colors.white,
    }) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      Size size = MediaQuery.of(context).size;
      return Padding(
        padding: const EdgeInsets.only(bottom: 20),
        child: Container(
          
          width: size.width * 0.9,
          decoration: BoxDecoration(
            color: color,
            borderRadius: BorderRadius.circular(20)
          ),
          child: ClipRRect(
            
            borderRadius: BorderRadius.circular(29),
            // ignore: deprecated_member_use
            child: FlatButton(
              padding: EdgeInsets.symmetric(vertical: 20, horizontal: 40),
              
              onPressed: press,
              
              child: Text(
                text,
                style: TextStyle(color: textColor, fontSize: 20.0),
              ),
            ),
          ),
        ),
      );
    }
  }
  