getWidget method

dynamic getWidget(
  1. BuildContext context
)

Implementation

getWidget(BuildContext context) {
  if (type == "PLAY_SESSION") {
    return Container(
      padding: EdgeInsets.only(
        top: topPadding,
        right: 40,
      ),
      child: Text(
        '$moveLeft',
        style: TextStyle(
          color: fontColor,
          fontSize: 32,
          fontWeight: FontWeight.w800,
          fontFamily: fontFamily,
        ),
      ),
    );
  } else if (type == "LEVEL_SESSION") {
    return InkResponse(
      onTap: () {
        onTap("SETTING");
      },
      child: Container(
        padding: EdgeInsets.only(
          top: topPadding,
          right: 30,
        ),
        child: Icon(
          Icons.settings,
          color: fontColor,
          size: 42,
        ),
      ),
    );
  } else {
    return Container(
      padding: EdgeInsets.only(
        top: topPadding,
        right: 30,
      ),
      child: Icon(
        Icons.settings,
        color: Colors.transparent,
        size: 42,
      ),
    );
  }
}