Skip to content
pubscout

git_stamp

5.10.1, released a year ago by aroncode.com

Embeds Git commit, branch, and build metadata into Flutter apps with optional UI screens.

WASM-ready
$ flutter pub add git_stamp
Source repository

What it does

Generates Dart files containing git information (commit SHA, branch, build date) via a CLI command. Provides await-less access to build information and optional debugging UI screens to inspect commit history and package details.

AI-written summary of version 5.10.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to easily track which Git commit and branch are deployed in a test or production build.
  • You want an in-app debug screen to view build metadata, commit lists, and change history.

Skip it when

  • You are not using Git for version control.
  • You do not want to run a CLI generation step before building your app.

Strengths

  • Provides immediate await-less access to build and git metadata.
  • Includes helpful built-in UI components and pages for debugging and viewing git history.

Weaknesses

  • Requires running a CLI command to generate files during the build process.
  • Tightly couples app code to a Git repository context.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
10

Run `dart run git_stamp --build-type full` to generate the necessary files in your project.

import 'git_stamp/git_stamp.dart';

Text('Version: ${GitStamp.appVersion}');
Text('Branch: ${GitStamp.buildBranch}');
Text('SHA: ${GitStamp.sha}');

Alternatives

Packages that do the same job and could replace git_stamp.

Works with

Packages commonly used together with git_stamp: ones it builds on, ones built on it, and its own family.