cara menambahkan onpressed ke teks flutter

new GestureDetector(
  onTap: () {
    Navigator.pushNamed(context, "myRoute");
  },
  child: new Text("my Title"),
);
Adventurous Anteater