Answers for "how to put an info button in flutter app"

0

flutter info button

//_tooltipKey is defined as final _tooltipKey = GlobalKey();
Tooltip(
          key: _tooltipKey,
          message: S.of(context).dishSpicinessRatingExplanation,
          textStyle: regularTextStyle.copyWith(color: Colors.white),
          preferBelow: false,
          child: IconButton(
            icon: FaIcon(FontAwesomeIcons.infoCircle, color: Colors.black45),
            onPressed: (){
              final dynamic tooltip = _tooltipKey.currentState;
              tooltip.ensureTooltipVisible();
            },
          )
        )
Posted by: Guest on March-22-2021

Code answers related to "how to put an info button in flutter app"

Code answers related to "Dart"

Browse Popular Code Answers by Language