Get version from pubspec for web in Flutter app

Viewed 1333

There's the package_info package to get the version of your application from pubspec.yaml file on mobiles (Android/iOS). I'm looking for a similar package for web. All the solutions I've found so far are not applicable for web.

Is there a way to obtain version from pubspec.yaml in Flutter app for web?

My pubspec.yaml. I wanted to display 1.0.4 as a Widget.

name: web
description: client's webpage
version: 1.0.4
...
0 Answers
Related