Access app version and git informations from auto-generated and configurable widgets

Overview

This is a proof of concept and WIP

Feedback and ideas welcome !!

Access your pubspec and git commit informations like versions and commit status from auto-generated widgets.

Configure your widgets to display pertinent and always up to date informations 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

More to come !

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 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 fits 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
You might also like...

Flutter-FFNavigationBar - Configurable navigation bar for Flutter

Flutter-FFNavigationBar - Configurable navigation bar for Flutter

ff_navigation_bar A highly configurable navigation bar with emphasis for the selected item. Add dependency dependencies: ff_navigation_bar: ^0.1.5

Sep 22, 2022

Configurable file explorer widget for Flutter

Configurable file explorer widget for Flutter

Filex Configurable file explorer widget for Flutter Usage Simple: import 'package:filex/filex.dart'; import 'package:path_provider/path_provider.dart'

Oct 13, 2022

Esizer - A Flutter package provide responsive, dynamic, configurable size for each device screen size

Esizer - A Flutter package provide responsive, dynamic, configurable size for each device screen size

ESizer A Flutter package provide responsive, dynamic, configurable size for each

Feb 15, 2022

Contribute in building the Ultimate GitBook of Developers by creating your git-card.json

Contribute in building the Ultimate GitBook of Developers by creating your git-card.json

Contribute in building the Ultimate GitBook of Developers by creating your git-card.json gitcards The Attractive and Interactive Variant of your GitHu

Apr 8, 2022

A simple Git LFS server implementation in Dart

A simple Git LFS server implementation in Dart Overview Git LFS client (git-lfs or git lfs command) requires a dedicated LFS-content server (not the G

Oct 31, 2022

Demo app with continuous integration setup for auto across android/iOS app stores

demo_flutter_ci A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Dec 25, 2021

A customizable carousel slider widget in Flutter which supports inifinte scrolling, auto scrolling, custom child widget, custom animations and built-in indicators.

A customizable carousel slider widget in Flutter which supports inifinte scrolling, auto scrolling, custom child widget, custom animations and built-in indicators.

flutter_carousel_widget A customizable carousel slider widget in Flutter. Features Infinite Scroll Custom Child Widget Auto Play Horizontal and Vertic

Nov 26, 2022

Asset manager helps you auto-generate the assets code and add it to your pubspec.yaml .

Asset manager helps you auto-generate the assets code and add it to your pubspec.yaml .

Asset Manager Asset manager helps you auto-generate the assets code and add it to your pubspec.yaml . Quick start dart pub global activate asset_manag

Nov 1, 2022

An HTTP file downloader packed with many features - resumable downloads, multiple connections, buffering, auto-retry, etc.

An HTTP file downloader packed with many features - resumable downloads, multiple connections, buffering, auto-retry, etc. Features Resumable downloa

Feb 2, 2022
Comments
  • Error when not under git

    Error when not under git

    If we try to run build_runner with this package on a folder which is not a git repository we have the following error:

    [SEVERE] build_flutter_version on lib/$lib$:
    
    ProcessException: stdout:
    
    stderr:
    fatal: Not a git repository (or any of the parent directories): .git
    

    It would be nice if the build process didn't end with an error and just ignore the git data part (Maybe with a warning instead).

    enhancement 
    opened by letsar 4
Owner
Robert Felker
Solution Architect, JVM, Cloud, Devops & Dart/Flutter, Artist
Robert Felker
A Flutter mobile application built completely using DhiWise and Supabase without coding single line of code. With 100% system generated code

Flutter Expension Getting Started with Flutter ?? Generated with ❤️ from Dhiwise A Flutter mobile application built completely using DhiWise and Supab

DhiWise 11 Oct 23, 2022
Flutter plugin that leverages Storage Access Framework (SAF) API to get access and perform the operations on files and folders.

Flutter plugin that leverages Storage Access Framework (SAF) API to get access and perform the operations on files and folders.

Vehement 8 Nov 26, 2022
Add easily to your app an introduction screen to provide informations to new users

IntroductionScreen Introduction screen allow you to have a screen at launcher for example, where you can explain your app. This Widget is very customi

Jean-Charles Moussé 484 Jan 6, 2023
Flutter plugin for auto resize widgets to get then "responsives".

Responsive Widgets This plugin helps to create responsive widgets, that makes auto-size with the proportion between reference screen size (width, heig

Lucas Henrique Polazzo 45 Nov 3, 2022
Git+ is your ultimate GitLab mobile app that lets you interact with your projects like as if you were using desktop.

Git+ for GitLab Git+ is your ultimate GitLab mobile app that lets you interact with your projects like as if you were using desktop. Git+ lets you see

Marek Gvora 38 Jan 7, 2023
An easy configurable and secure open-source personal password manager.

An easy configurable and secure open-source personal password manager. Anyone can you this project and generate his own personal mobile app. All the passwords will be saved into your own Firebase Firestone database with encryption.

Shudipto Trafder 18 Dec 28, 2022
changelog.dart provides a library and a command-line application to manage in the correct way the git metadata to build the changelog between two release

changelog.dart ?? changelog.dart: a collection of tools to manages in a fashion way a repository as maintainer. ?? Project Homepage Table of Content I

Vincenzo Palazzo 7 Dec 18, 2022
Get git information from within the Flutter application

git_info_plus Get git information from within the Flutter application. Usage Dart final String branchName = await GitInfo.branchName; final DateTime l

Akira Aratani 4 May 17, 2022
Configurable navigation bar for Flutter

ff_navigation_bar A highly configurable navigation bar with emphasis for the selected item. Add dependency dependencies: ff_navigation_bar: ^0.1.5

55 Builds 211 Sep 22, 2022