buildTitleBar method

Widget buildTitleBar()

Implementation

Widget buildTitleBar() {
  double iconMargin = 25;
  return Container(
    height: titleBarHeight,
    width: window.physicalSize.width / window.devicePixelRatio,
    color: Color(0xff2b2b2b),
    child: Row(
      children: [
        GestureDetector(
          onTap: widget.onFoldClicked,
          child: Container(
            margin: EdgeInsets.all(4.0),
            width: iconMargin,
            // color: Colors.red,
            child: Icon(
              Icons.close_fullscreen_sharp,
              color: Colors.white,
            ),
          ),
        ),
        Container(
          margin: EdgeInsets.all(4.0),
          width: iconMargin,
          // color: Colors.red,
          child: Icon(
            Icons.format_line_spacing_sharp,
            color: Colors.white,
          ),
        ),
        Spacer(),
        Text(
          'Console',
          style: TextStyle(
              color: Colors.white,
              fontSize: 14,
              decoration: TextDecoration.none),
        ),
        Spacer(),
        GestureDetector(
          onTap: () {
            setState(() {
              _autoToBottom = true;
              _logList.clear();
            });
          },
          child: Container(
            margin: EdgeInsets.all(4.0),
            width: iconMargin,
            child: Icon(
              Icons.cleaning_services_sharp,
              color: Colors.white,
              size: 20,
            ),
          ),
        ),
        GestureDetector(
          onTap: widget.onCloseClicked,
          child: Container(
            margin: EdgeInsets.all(4.0),
            width: iconMargin,
            // color: Colors.red,
            child: Icon(
              Icons.close,
              color: Colors.white,
            ),
          ),
        )
      ],
    ),
  );
}