url_launcher

^5.0.0

You can now import 'package:url_launcher/url_launcher.dart'
and launch(someUrl) in the Dart code of hello.

This is no different from how you include packages in
Flutter apps or any other Dart project.

But if hello happens to be a plugin package
whose platform-specific code needs access
to the platform-specific APIs exposed by url_launcher,
you also need to add suitable dependency declarations
to your platform-specific build files, as shown below.

Android

The following example sets a dependency for
url_launcher in hello/android/build.gradle:

android

// lines skipped

dependencies

compileOnly

rootProject

findProject

":url_launcher"