highLimitToolTip function

Widget highLimitToolTip(
  1. String tooltipname,
  2. dynamic tooltipvalue
)

Implementation

Widget highLimitToolTip(
  String tooltipname,
  tooltipvalue,
) {
  return Container(
    width: 600,
    height: 600,
    child: Center(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.stretch,
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Expanded(
              child: Container(
            decoration: BoxDecoration(
                color: tooltipname == "1"
                    ? Color.fromRGBO(246, 147, 47, 1)
                    : Color.fromARGB(255, 187, 207, 58),
                border: Border(
                    left: BorderSide(color: Colors.blue, width: 10),
                    right: BorderSide(color: Colors.blue, width: 10),
                    top: BorderSide(color: Colors.blue, width: 10))),
            child: Center(
              child: Text(
                tooltipname,
                style: TextStyle(
                    color: Colors.white,
                    fontSize: 160,
                    fontWeight: FontWeight.bold),
              ),
            ),
          )),
          Expanded(
              child: Container(
            decoration: BoxDecoration(
                border: Border(
                    left: BorderSide(color: Colors.blue, width: 10),
                    right: BorderSide(color: Colors.blue, width: 10),
                    bottom: BorderSide(color: Colors.blue, width: 10))),
            child: Text(
              tooltipvalue,
              textAlign: TextAlign.center,
              style: TextStyle(
                  color: tooltipname == "1"
                      ? Color.fromRGBO(246, 147, 47, 1)
                      : Color.fromARGB(255, 187, 207, 58),
                  fontSize: 160,
                  fontWeight: FontWeight.bold),
            ),
          ))
        ],
      ),
    ),
  );
}