The docs mention or suggest using p.toUri('https://flutter.dev/') to change a string URL before calling launchUrl(...). But p.toUri() is meant for file paths, not web ...