Wanna make Container clickable ? or Icon widget, Flutter has a special widget for you, called GestureDetector.
Wrap any widget with GestureDetector and have a onTap(){ } or longPress () { } event. You can use the widget as follows
GestureDetector( onTap: () { }, child: Container( color: Colors.blueAccent, padding: EdgeInsets.only(top: 10), child: Column( children: [] )) )
Don’t hesitate to look at other posts like this
- How to load content into div using jQuery
- How to add web/desktop support for existing flutter app in OpenSUSE
- How to add web/desktop support for existing flutter app in Ubuntu
- How to enable Flutter Web support in Ubuntu Linux
- How to enable Flutter Desktop support in Ubuntu Linux
- How to install Flutter on Ubuntu Linux
- How to fix flutter windows app exception plugins requires symlink support ?
- How to add web/desktop support for existing flutter app
- How to enable Flutter Web support in openSUSE Linux
- Enable Flutter Web support on Windows