How to install and use permission_handler with Flutter 3.10.5

A popular Flutter package with 4065 likes that support Flutter version 3.10.5 and above. Last version of the package was published on Aug 01, 2023.

Installing permission_handler

You can either add the package directly using the flutter command line.

$ flutter pub add permission_handler

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  permission_handler: ^10.4.3

In either case, make sure to refresh your packages by running the following command:

$ flutter pub get

Using permission_handler

Once you have installed the package, you can use it in your Flutter application by importing it.
import 'package:permission_handler/permission_handler.dart';