I want to get access to the pubspec.yaml and read its properties from dart code in my Flutter application, while the application is running. How can I do so?
PS: I want to read the name, description and version properties from the pubspec during the application runtime!
Just as mentioned in the comments above, the package_info_plus can help you achieve that. It helps you access the properties of pubspec.yaml during runtime.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With