I work with this api https://api.jikan.moe/v4/anime , what I don't know is how to show it inside my app.
as it appears in the api ("url": "https://www.youtube.com/watch?v=bJVyIXeUznY",) at first I tried to show it inside a text widget, then I realized that it didn't make sense.
Text(
widget.recibirdatos.urlyoutube ?? 'no hay url',
style: const TextStyle(
fontSize: 20, color: Colors.black),
Text),
If what you are trying to do is redirect the user to the link that is in the api, you could help yourself with the url_launcher package , once you have it installed in the dependencies of the
Widget Text
one you currently use, you could enclose it in anInkWell
orGestureDetector
. You would have something like this:There is another way where you could call a
webView
to play the video within the app, but I think that's not what you're looking for.