Skip to content

Latest commit

History

History
29 lines (15 loc) 路 945 Bytes

File metadata and controls

29 lines (15 loc) 路 945 Bytes

Flutter web: redirect to an external URL

Did you know?

With Flutter web, you can redirect the user to an external page by changing the window href property.

Very handy for checkout pages (e.g. Stripe).


Note that dart:html can't be imported if you're targeting mobile or desktop.

To work around that, you can use conditional imports.

More info here: 馃憞

Found this useful? Show some love and share the original tweet 馃檹


Previous Next
VSCode Quick Fix: Create constructor for final fields, required named Fetching vs Mutating data with Riverpod