📜  颤振使容器可点击 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:04.430000             🧑  作者: Mango

代码示例3
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"),
              ]
          ),
        )
    );