Klickbares Container flattern
GestureDetector(
onTap: () {
print("Tapped a Container");
},
child: Container(...),
)
Successful Squirrel
GestureDetector(
onTap: () {
print("Tapped a Container");
},
child: Container(...),
)
Card(
child: new InkWell(
onTap: () {
print("tapped");
},
child: Container(
width: 100.0,
height: 100.0,
),
),
),
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"),
]
),
)
);