flutter web url base_url code example Example: flutter web get url import 'dart:html'; var url = window.location.href;