Question: if I select more than 5 I want that another Html page will pop up like an ads to the user will unselect one of the 5 selected

```
let counter = 0;
    $('.switched').change(function () {

        if ($(this).parent().parent().hasClass('clicked')) {
            $(this).parent().parent().removeClass('clicked');
            $(this).parent().parent().addClass('notClicked');
            counter--;
            console.log(counter);
        }
        else if (counter == 5) {
            $("#htmlTemplate").empty();
            $("#htmlTemplate").load("popUp.html");
            $(".selectedCoins").append(".clicked");
        }
        else if ($(this).parent().parent().hasClass('notClicked')) {
                $(this).parent().parent().removeClass('notClicked');
                $(this).parent().parent().addClass('clicked');
                counter++;
                console.log(counter);
        }
    });

```

Answer: 
There's a couple options, the one you've outlined (subdomain for the app) may be the easiest to implement.

You can embed the Flutter web app in an iframe (may run into iframes limitations depending on what your app is doing)

If you're proficient with Webpack/Vite you may be able to write a configuration to serve your HTML files alongside your Flutter Web files.

If you were wanting to write your HTML/CSS/JS in Dart there's also [Jaspr](https://pub.dev/packages/jaspr) and [Zap](https://simonbinder.eu/zap/) but they're fairly early days.
[webview\_flutter](https://pub.dev/packages/webview_flutter) is a flutter plugin. We can load web pages by using this widget. It supports both android and ios. By specifying the location of HTML file or the webpage link in initialUrl, you can load a web pages.

```
# Loading using webpage link    
Widget build(BuildContext context) {
    return WebView(
      initialUrl: 'https://flutter.dev',
    );
  }

# Loading using HTML File stored in assets folder
Widget build(BuildContext context) {
    return WebView(
      initialUrl: 'assets/new.html',
    );
  }

```

Refer this [example](https://pub.dev/packages/webview_flutter/example) section for different ways of loading web pages