Answers for "how to make container clickable in flutter"

2

clickable container flutter

GestureDetector(
    onTap: () { 
        print("Tapped a Container"); 
    },
    child: Container(...),
)
Posted by: Guest on September-13-2020
1

flutter make a container clickable

Card(
  child: new InkWell(
    onTap: () {
      print("tapped");
    },
    child: Container(
      width: 100.0,
      height: 100.0,
    ),
  ),
),
Posted by: Guest on April-16-2020
1

flutter make container clickable

new GestureDetector(
        onTap: (){
          print("Container clicked");
        },
        child: new Container(
          width: 500.0,
          padding: new EdgeInsets.fromLTRB(20.0, 40.0, 20.0, 40.0),
          color: Colors.green,
          child: new Column(
              children: [
                new Text("Ableitungen"),
              ]
          ),
        )
    );
Posted by: Guest on March-28-2020

Code answers related to "how to make container clickable in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language