mockWidget method

UikButtonProps mockWidget()

Implementation

UikButtonProps mockWidget() {
  return UikButtonProps.fromJson(
    {
      "id": "checkoutButton",
      "width": "360.0",
      "height": "64.0",
      "leftMargin": "16.0",
      "rightMargin": "16.0",
      "topMargin": "16.0",
      "bottomMargin": "16.0",
      "borderRadius": "6.0",
      "backgroundColor": "0xFFFEE440",
      "text": {
        "id": "text",
        "text": "Checkout",
        "size": "16.0",
        "action": {
          "tap": {
            "type": "UIK_OPEN_WEB",
            "data": {
              "url":
                  "https://sylhetmirror.com/2022/04/03/tesla-delivers-over-1-million-electric-cars-over-past-year/"
            }
          }
        }
      },
      "action": {
        "tap": {
          "type": "OPEN_CHECKOUT",
          "data": {"url": "https://www.tesla.com/"}
        }
      }
    },
  );
}