Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get compile/build date on Flutter App?

Tags:

flutter

I know how to get the version using package_info, but how to get the build timestamp on Runtime both on ios and android?

like image 271
Kokizzu Avatar asked Jan 08 '19 10:01

Kokizzu


1 Answers

You can use a build shell script that creates/updates a Dart file in lib/... with constants holding the date before running flutter build ....
You then import that file in your code and use it.

like image 163
Günter Zöchbauer Avatar answered Sep 17 '22 16:09

Günter Zöchbauer