You can just use the built-in
showAboutDialog({BuildContext context});
This shows all the license information automatically, and even the underlying plugins.