// The normal application composition with an explicit host, for browser // captures of the Cupertino app (the web build is Material by design, see // `prefersCupertino`). // // Build and capture (from app/): // flutter build web --target tool/app_host_probe_entry.dart \ // -o build/probe-app-host // serve it with the runs or pipelines fixture server // (`tool/runs_probe_server.mjs`, `tool/pipelines_wiring_probe_server.mjs`) // and open `/runs?host=cupertino`; without `host=cupertino` it is Material. // // It connects only to the page's own origin, like the web app. import 'package:flutter/widgets.dart'; import 'package:pipelines_app/application/app_url_strategy.dart'; import 'package:pipelines_app/application/pipelines_app.dart'; import 'package:pipelines_app/application/server_endpoint.dart'; void main() { useAppUrlStrategy(); runApp( PipelinesApp( server: ServerEndpoint.resolve(base: Uri.base, web: true), cupertino: Uri.base.queryParameters['host'] == 'cupertino', ), ); }