pay method

Widget pay(
  1. double amount
)

Implementation

Widget pay(double amount) {
  return Padding(
    padding: const EdgeInsets.all(8.0),
    child: Center(
      child: Container(
        height: 55.0,
        width: 240.0,
        decoration: BoxDecoration(
            borderRadius: BorderRadius.all(Radius.circular(15.0)),
            color: bgColor),
        child: GestureDetector(
            onTap: () {
              //ADD THE FUNCTIONS OF THIS BUTTON HERE
            },
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text(
                      'Pay Fexr',
                      style: TextStyle(color: titleColor, fontSize: 16.0),
                    ),
                    SizedBox(
                      width: 5.0,
                    ),
                    Text(
                      'Pay $amount from your wallet',
                      style: TextStyle(color: textColor, fontSize: 9.0),
                    ),
                  ],
                ),
                new Image.asset("lib/utils/logo_noname.png",
                    package: 'fexr', height: 50, fit: BoxFit.contain),
              ],
            )),
      ),
    ),
  );
}