Button constructor

Button(
  1. String text,
  2. {@required VoidCallback onPressed,
  3. bool enable = true,
  4. Icon leading}
)

Implementation

Button(
  String text, {
  @required VoidCallback onPressed,
  bool enable = true,
  Icon leading,
}) : super(text,
          onPressed: onPressed,
          color: AmposColors.tiffanyBlue,
          onPressedColor: AmposColors.teal,
          leading: leading,
          alignment: (leading == null) ? MainAxisAlignment.center : MainAxisAlignment.start);