This is a proof of concept and WIP
Feedback and ideas welcome !!
Access your pubspec and git commit information like versions and commit status from auto-generated widgets.
Configure your widgets to display pertinent and always up to date information to your users like the last build version, expose advanced info in production or dev only to help debug specific builds.
Preconfigured widgets
Flutter
In house
- DisplayVersion
- Journal
NB: I wrote this specific Flutter and Git version based on the work of https://github.com/kevmoo/build_version and will try to follow this package evolution on top of our own requirements.
Requirements
- Git command available in the current path
- Working on an existing git dir
Installation
Add this builder under the dev_dependencies
section of the pubspec.yaml
file:
dev_dependencies: build_runner: ^1.0.0 build_flutter_version: git: url: https://github.com/Solido/build_flutter_version
Then
flutter packages pub run build_runner watch
Will generate a dart file at utils/version.dart
Just import this file to access Widgets that fit your needs.
Configuration
DisplayVersion( // Version contains infos about the pubspec and last git commit builder: (context, version) { return Text("${version.name} ${version.version} / ${version.gitInfo.message} : ${version.gitInfo.sha}"); // => MyAppName 1.2 / adding help section : c78d654678iozka8790 }, )
Check required
- Inherited Title
- AboutDialog
- AboutListTile
Download Source Code on GitHub
https://github.com/Solido/build_flutter_version
Provides the list of the opensource Flutter apps collection with GitHub repository.