How to install and use flutter_native_splash with Flutter 3.7.0

A popular Flutter package with 5226 likes that support Flutter version 3.7.0 and above. Last version of the package was published on Jan 30, 2023.

Installing flutter_native_splash

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

$ flutter pub add flutter_native_splash

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  flutter_native_splash: ^2.2.17

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

$ flutter pub get

Using flutter_native_splash

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