Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

olutter/window_location_href

Open more actions menu

Repository files navigation

pub package

A cross-platfrom implementation of window.location.href & window.navigator.userAgent.

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 location = href;

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

About

window.location.href, similar to js, for flutter (all platforms)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.