Flutter Tutorial Day 3

Learning Objective: Let’s include some library so it can save our time, Here I would like to include PasswordField() Steps to include libraries are as follow:

Step 1:

I want to include this library, Open:

Now we need to add the dependency:

Open the pubspec.yaml file and add the following line into it

passwordfield: ^0.1.0

 Now click on Pub get Button to download/update the library.

Then go to your main.dart file and include the import statement as follows:

import 'package:passwordfield/passwordfield.dart';

Now you can add the following function to add PasswordField easily.


Now you can explore more packages from