Did you know?

Your Flutter app should show the licenses for packages in use. This is often a legal requirement, as many open-source licenses require attribution.

To do this, you have two options:

Show the Licenses in your Flutter app

Note that the showLicensePage function displays licenses for all the packages your app depends on, including transitive dependencies. The large number of licenses is expected since even a few direct dependencies can pull in many others.

You can also use a more custom approach and get the raw licenses from the LicenseRegistry class.

For more details, read:

To learn more about how to get your app ready for production, check out my latest course: