1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] url_launcher on flutter web not working after deployment

Discussão em 'Mobile' iniciado por Stack, Outubro 5, 2024 às 10:32.

  1. Stack

    Stack Membro Participativo

    plase assist

    on the emulator the url_launcher working very well, but after deploy not working at all,


    // Function to launch URLs
    void _launchUrl(Uri url) async {
    print('Attempting to launch URL: $url');
    try {
    if (await canLaunchUrl(url)) {
    print('Launching...');
    await launchUrl(url);
    print('Launched successfully');
    } else {
    print('Could not launch $url');
    }
    } catch (e) {
    print('Error launching URL: $e');
    }
    }


    ///////////////////////kava/////////////////////
    final String kfacebookUrl = 'https://www.example.com/companyname/';
    final String kInstaUrl = 'https://www.example.com/companyname/';
    final String kWhatsappUrl = 'https://example.me/123456789';
    final String kEmailAddress = 'sales@example.com';
    final String kPhoneNumber = '123456789';
    final String kMap = 'https://example.com/xcvg9ccQFdXexNHn6';
    final String kWeb =
    'https://example.web.app/'; // Ensure to include 'https://'


    want the url working please

    Continue reading...

Compartilhe esta Página