commonBtn function

Widget commonBtn(
  1. dynamic onprsd(),
  2. Color bgColor,
  3. Widget btnView
)

Implementation

Widget commonBtn(Function() onprsd, Color bgColor, Widget btnView) {
  return ElevatedButton(
      style: ElevatedButton.styleFrom(
        padding: EdgeInsets.symmetric(horizontal: 50.0, vertical: 12.0),
        backgroundColor: bgColor,
        shape: const StadiumBorder(),
      ),
      onPressed: onprsd,
      child: Row(
        children: [btnView],
      ));
}