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'; /// Browser acceptance entrypoint for the registered Templates destination. /// /// It is the real application composition (the same router, shell, Settings and /// Pipelines destinations); only the host style is selectable so both Material /// and Cupertino can be exercised on the web. `?host=material|cupertino` picks /// the host. Every request is answered by the isolated loopback fixture in /// `tool/templates_wiring_probe.mjs`; no production server is contacted. void main() { useAppUrlStrategy(); final host = Uri.base.queryParameters['host']; runApp( PipelinesApp( server: ServerEndpoint.resolve(base: Uri.base, web: true), cupertino: switch (host) { 'cupertino' => true, 'material' => false, _ => null, }, ), ); }