Giter Club home page Giter Club logo

build_flutter_version's Introduction

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

build_flutter_version's People

Contributors

letsar avatar solido avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.