Create a custom UI widget with custom constructors – Flutter
Looking to create a custom button in flutter that is based on the CupertioButton. the end result should be looking like this: MainCustomButton.success(label: 'ok', onPressed: (){}); MainCustomButton.danger(label: 'delete', onPressed: (){}); with each of the 'clones' have it's custom styles applied.…