Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

peiffer-innovations/websafe_platform

Repository files navigation

This package is no longer maintained as there are better solutions "in the wild".

One recommended replacement is: https://pub.dev/packages/universal_platform

Or... a pure-Dart approach that I prefer now is something like:

// "kIsWeb" must come first to allow the tree shaker to stop and
// prevent "dart:io" from being included in web builds.
if (kIsWeb) {
  // do Web Stuff
} else if (Platform.isAndroid || Platform.isIOS) {
  // do mobile
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published