Example: Using the url_launcher package to launch the browser

The url_launcher plugin package enables opening
the default browser on the mobile platform to display
a given URL, and is supported on Android, iOS, web,
Windows, Linux, and macos.
This package is a special Dart package called a
plugin package (or plugin),
which includes platform-specific code.

To use this plugin:

Create a new project called launchdemo.

Open pubspec.yaml, and add the url_launcher dependency:

    
dependencies:
  flutter:
    sdk: flutter
  url_launcher: ^5.4.0

Run flutter pub get in the terminal,
or click Get Packages get in VS Code.

Open lib/main.dart and replace its full contents with the
following: