buildOutlinedButton method

  1. @protected
Widget buildOutlinedButton(
  1. BuildParameters params
)

Implementation

@protected
Widget buildOutlinedButton(BuildParameters params) {
  Widget child;
  if (params.widgets["child"] != null) {
    child = builder.buildWidget(params.context, params.widgets["child"],
        params.state, params.parentContext);
  } else if (params.props["text"] != null) {
    child = Text(properties.getText(params.props["text"], "button"));
  } else {
    child = Container();
  }

  return OutlinedButton(
    key: properties.getKey(params.id),
    style: params.buildProp("style"),
    onPressed: events.getFunction(params.context, params.actions["onPressed"],
        params.state, params.parentContext),
    child: child,
  );
}