Answers for "how to add onpressed to a text flutter"

0

how to add onpressed to a text flutter

new GestureDetector(
  onTap: () {
    Navigator.pushNamed(context, "myRoute");
  },
  child: new Text("my Title"),
);
Posted by: Guest on June-05-2021

Code answers related to "how to add onpressed to a text flutter"

Browse Popular Code Answers by Language