window_location_href 1.0.0 copy "window_location_href: ^1.0.0" to clipboard
window_location_href: ^1.0.0 copied to clipboard

outdated

Cross-platfrom window.location.href. Supports all platforms and is easy.

window_location_href #

pub package

A cross-platfrom implementation of window.location.href.

Supported platforms #

  • Flutter Android
  • Flutter iOS
  • Flutter Web
  • Flutter Desktop

Getting Started #

In your pubspec.yaml file add:

dependencies:
  window_location_href: any

Then, in your code:

import 'window_location_href/window_location_href.dart';

final href = getHref();

Above code returns current page url on web (window.location.href), and null on other platforms.

6
likes
0
pub points
88%
popularity

Publisher

unverified uploader

Cross-platfrom window.location.href. Supports all platforms and is easy.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on window_location_href