# Day 20: Flutter Packages to Rescue

> Discover the world of Flutter packages and libraries, including how to use existing packages and how to create your own, and learn how to implement them in your Flutter app.

- URL: https://www.appwriters.dev/30days/flutter/day20
- Series: #30DaysMasterFlutter

---

Flutter packages are pre-built code libraries that can be added to a Flutter app to enhance its functionality. They are created by developers and made available for others to use, so that they don't have to reinvent the wheel and can save time and effort in their development work.

Packages can be used to add new features and capabilities to a Flutter app, such as displaying maps, making HTTP requests, handling state management, and more. They can also help developers avoid common mistakes and ensure that their app is using best practices.

> **Project** - Expense Chart
>
> Given expense data from a user, display a bar chart representing expenses in each category. Use the [font_awesome_flutter](https://pub.dev/packages/font_awesome_flutter) package to display icons for each category. Use [fl_chart](https://pub.dev/packages/fl_chart) package to display the bar chart.
> 

By the end of this day, you will know how to use packages in Flutter to enhance your app's functionality and in the process save time and resources.

## Tips

- Use the [pub.dev](https://pub.dev/) website to search for Flutter packages.
- Use the `flutter pub add <package-name>` command to install packages (for example `flutter pub add fl_chart font_awesome_flutter`), or you can manually add the package name to the `pubspec.yaml` file and run `flutter pub get` to install it.
- Always check the package's documentation for instructions on how to use it.
- Use packages that are well maintained and have a large number of users already using them. On pub.dev, check the likes, pub points, downloads and the date of the latest release.

### Resources

- [Packages website](https://pub.dev/)
- [Using packages](https://docs.flutter.dev/packages-and-plugins/using-packages)
- [font_awesome_flutter](https://pub.dev/packages/font_awesome_flutter)
- [fl_chart](https://pub.dev/packages/fl_chart)
