git_stamp 1.13.0
git_stamp: ^1.13.0 copied to clipboard
A tool to generate a git history that you can see when you run the application.
Git Stamp 🐡 #
🚀 Build-Time Git History Integration in Your Flutter App MORE #
Have you ever struggled with pushing or merging changes into the automatic build system? Worry no more! Now, effortlessly track the specific commits that shaped the final build.
🏞️ Preview #
Light | Dark |
---|---|
![]() |
![]() |
🛠️ Installation from source #
url_launcher
is required.
dependencies:
url_launcher: ^6.2.3
dev_dependencies:
git_stamp:
git:
url: https://github.com/arononak/git_stamp
ref: main
🏗️ Generating Files #
flutter pub run git_stamp:generate.dart
Caution
Generating requires the use of the git
command-line interface (CLI).
Important
If you use Github Action, you only get a single commit because GitHub Actions by default only retrieves the latest version (single commit) and does not include the full history of the repository. This is normal behavior to optimize the build process and improve performance, especially for large repositories. Try configuring github actions or generating Git Stamp files before git push
.
|-- android/
|-- assets/
|-- build/
|-- ios/
|-- lib/
| |-- git_stamp/
| |-- branch_output.dart
| |-- build_date_time_output.dart
| |-- build_system_info_output.dart
| |-- creation_date_output.dart
| |-- git_stamp_commit.dart
| |-- git_stamp_page.dart
| |-- json_output.dart
| |-- repo_path_output.dart
| |-- main.dart
|-- linux/
|-- macos/
|-- test/
|-- web/
|-- windows/
|-- pubspec.yaml
💻 Usage #
if (isProd == false) ...[
IconButton(
onPressed: () => showGitStampPage(context: context),
icon: const Icon(Icons.book),
),
],