Coder Social home page Coder Social logo

steellow / fuel_consumption_tracker Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 717 KB

Simple app to track you car fuel consumption.

Home Page: https://play.google.com/store/apps/details?id=labs.ankia.fuel_consumption_tracker

Kotlin 0.30% Swift 0.88% Objective-C 0.08% Dart 98.74%
flutter android mobile frugal money

fuel_consumption_tracker's Introduction

fuel_consumption_tracker

Simple app to track average fuel consumption. Free, minimal, and open source. No bullshit features. Available on gPlay.

Main screen New log/edit log View logs Settings
Main screen New log History view Settings screen

Ideas (a.k.a. todo)

  • finnish translation
  • prettify code
  • export excel
    • save to gDrive
  • history view should be chronological order (currently sorts by added)
  • break history_list_view.dart to multiple files
  • use Get theme changes instead of ThemeConsumer

TEST

  • test what whappens if you don't log in order
  • date format picker on smaller screens
  • test on smaller screens
  • test on tablets!

BUGS

  • unit_tile doesn't rebuild when resetting everything
  • consumption is sometimes negative when only one log, maybe prefs get messed up when editing logs?
  • Minus consumption when you have 2 logs and delete logs (doesnt recalulcate if you later add new logs)

HIFI

  • indigo to indigogradient?
  • history screen transition
  • titlebar bottom shadow
  • change submit button text when editing log
  • calendar view when tank'd

stuff

  • prefs hive box
    • 'minOdo', 'maxOdo' are smallest and biggest odos recorded
    • 'imperialEnabled' is in prefs instead of settings, because it's more relevant there

things I've learned

  • Using valuableListenableBuilder for everything is a mess (if the app grows), easier to just implement proper state management
  • Hive is way easier and better than shared_preferences
  • Always make helper class for shared_prefs etc. which automatically returns default values
  • abstract class = can't make instance of that class
    • static method = called directly from class, not instance
  • making quick n' dirty (frontend) prototype of the app really helps get the ball rolling
  • popup menu (especially showMenu method) sucks and shouldn't be used

fuel_consumption_tracker's People

Contributors

steellow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tmalik22

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.