'Flutter Raised Button using Focus Node

I'm working with flutter a menu with several icons, and I would like to leave it highlighted or with a Border side for the applications that are currently selected, but I can't transfer this to the other icons, can you help me?

new RaisedButton(
  shape: new CircleBorder(
      side: BorderSide(color: Colors.deepOrange, width: 5)),
  padding: EdgeInsets.fromLTRB(5, 5, 5, 5),
  onPressed: () {
    _openApp();
  },
  child: ClipRRect(
    borderRadius: BorderRadius.circular(40.0),
    child: Image.asset(
      "lib/assets/image/icons/open.png",
      width: 80.0,
      height: 80.0,
    ),
  ),
  elevation: 100.0,
),


Solution 1:[1]

You can use highlightColor property of RaisedButton widget. Here how it is done;

new RaisedButton(
  shape: new CircleBorder(
      side: BorderSide(color: Colors.deepOrange, width: 5)),
  padding: EdgeInsets.fromLTRB(5, 5, 5, 5),
  highlightColor: YOUR_PRESSED_COLOR, //Replace with actual colors
  onPressed: () {
    _openApp();
  },
  child: ClipRRect(
    borderRadius: BorderRadius.circular(40.0),
    child: Image.asset(
      "lib/assets/image/icons/open.png",
      width: 80.0,
      height: 80.0,
    ),
  ),
  elevation: 100.0,
),

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Timur Turbil