How to install and use qr_code_scanner with Flutter 3.10.5

A popular Flutter package with 1743 likes that support Flutter version 3.10.5 and above. Last version of the package was published on Jul 27, 2023.

Installing qr_code_scanner

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

$ flutter pub add qr_code_scanner

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  qr_code_scanner: ^1.0.1

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

$ flutter pub get

Using qr_code_scanner

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