Simple application for tracking weight. See Google Play for more details about this app!

Overview

WeightTracker Nevercode build status Build Status Coverage Status

Get it on Google Play

Simple application for tracking weight. See Google Play for more details about this app!

Getting started

To build the app you need to create your own Firebase application according to guidlines on Firebase codelab.

For android you need to provide own google-services.json file. It is explained in codelab and here.

Contributing

Feel free to add issues with bugs or ideas. Any pull requests are very welcome!

Comments
  • Error running Gradle

    Error running Gradle

    Hi,

    I received an error running Gradle: Exit code 1 from: /home/startup/AndroidStudioProjects/weight_tracker/android/gradlew app:properties: Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

    FAILURE: Build failed with an exception.

    • Where: Build file '/home/startup/AndroidStudioProjects/weight_tracker/android/app/build.gradle' line: 20

    • What went wrong: A problem occurred evaluating project ':app'.

    /home/startup/AndroidStudioProjects/weight_tracker/android/key.properties (Нет такого файла или каталога)

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    • Get more help at https://help.gradle.org

    BUILD FAILED in 2m 1s

    Finished with error: Please review your Gradle project setup in the android/ folder.

    question 
    opened by RakhimyanTim 8
  • NestedScrollView

    NestedScrollView

    Hi, Thanks for your article https://marcinszalek.pl/flutter/flutter-tabbar-example-weighttracker-5/ Showing/Hiding App bar title when scrolling content works flawlessly when the content is on the first page, when its in the middle of long content, showing/hiding title seems to be delay.

    Any clue to solve it?

    Here's the screenshoot http://sendvid.com/37jr6ige

    opened by iambudi 4
  • Need help in adding data in firebase db

    Need help in adding data in firebase db

    I am implementing similar app and requirement is to save user's rating and review in firebase database. I am following this project and blog you wrote and it has helped me to make inroads. However, I am a bit confused on how to add new entries for a particular user in the db and looking for your help / input. My current code is blow:

    Model:

    class Review {
      final int rating;
      final String review;
      final String created;
      final String fullName;
      final String city;
      final String state;
      final String profilePicURL;
    
      Review(
          {this.rating,
          this.review,
          this.created,
          this.fullName,
          this.city,
          this.state,
          this.profilePicURL});
    
      factory Review.fromJSON(List list, int index) {
        return Review(
          rating: list[index]['Rating'] as int,
          review: list[index]['Review'] as String,
          created: list[index]['Created'] as String,
          fullName: list[index]['FullName'] as String,
          city: list[index]['City'] as String,
          state: list[index]['State'] as String,
          profilePicURL: list[index]['profile_pic'] as String,
        );
      }
    

    Firebase structure:

    screen shot 2019-02-28 at 1 23 11 pm

    I am able to read the reviews data from db as below:

    @override
      void initState() {
        super.initState();
        final FirebaseDatabase database = new FirebaseDatabase();
         databaseReference = database.reference().child('reviews');
        FirebaseAuth.instance.currentUser().then((user) {
          proId = pro.uid;
          print(proId);
      //    databaseReference.push().set(proId);
        });
    
        databaseReference.orderByChild('rating').once().then((DataSnapshot snapshot) {
          print('${snapshot.value}');
        });
      }
    

    proId is the current user's id which is returned correctly. I want to store the rating that user selects whose code is:

    StarRating(
                            starCount: 5,
                            starSize: 36,
                            color: Colors.yellow,
                            rating: rating,
                            onRatingChanged: (v) {
                              rating = v;
                              setState(() {
                                Review review;
                                if (review != null) {
                                  databaseReference.push().set(rating);
                                }
                              });
                            },
                          )
    

    With above code, however, the data is not being saved correctly in the db:

    screen shot 2019-02-28 at 1 22 41 pm

    Looking for guidance / help on how to correctly store the rating in the db at correct path reviews/{proid}/{rating}

    opened by DK15 1
  • Link is broken

    Link is broken

    It looks like the app was removed from the Playstore

    The link https://play.google.com/store/apps/details?id=com.mszalek.weight_tracker&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1 is not working

    opened by brunocalou 1
  • File key.properties

    File key.properties

    Hi man! Great use case.

    Say me how to get / generate key.properties file? I'm newbie on Firebase.

    Can you help me?

    Error:

    FAILURE: Build failed with an exception.
    
    * Where:
    Build file 'C:\Projetos\weight_tracker\android\app\build.gradle' line: 21
    
    * What went wrong:
    A problem occurred evaluating project ':app'.
    > C:\Projetos\weight_tracker\android\key.properties (O sistema não pode encontrar o arquivo especificado)
    
    
    question 
    opened by ColquePaxi 1
  • Not able to build

    Not able to build

    FAILURE: Build failed with an exception.

    • What went wrong: Execution failed for task ':app:processDebugGoogleServices'.

    File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: ~/Code/flutter_repo/weight_tracker/android/app/src/debug/google-services.json ~/Code/flutter_repo/weight_tracker/android/app/google-services.json

    It seems that the json file is not existing. But if I comment out the google service in the gradle file, the firebase will not be working. Is there any suggestion?

    opened by baoxiehao 1
  • Changing between units.

    Changing between units.

    So, there is error when user change between units:

    1. First case ( starts with unit set to lbs) -user set weight to 1lbs -user set unit to kg -now we get 0.5 kg weight which we can not normally set ( normally when we set weight using kg minimum is 1 kg)
    2. Second case (starts with unit set to kg) -user set weight to 300 kg -user set unit to lbs -now we get 660 lbs weight which we can not normally set (normally when we set weight using lbs maximum is 300lbs).
    bug 
    opened by Asasello 0
  • "Your app isn't using AndroidX" when building the app

    Hello,

    Thank you for the awesome app. I am trying to build the app locally and it would be good to migrate it so it uses "AndroidX" to manage packages bundles.

    I can try migrating it and creating a PR

    opened by georgikoemdzhiev 0
  • Need version upgrade - Gradle build

    Need version upgrade - Gradle build

    Hello,

    Your app seems to be very good. It still works perfectly when downloaded from Google Play. You did an amazing job.

    But when I try to launch it from Android Studio I have several problems:

    -> SOLVED :

    In file android/app/build.gradle, line 1 and line 11(https://github.com/MSzalek-Mobile/weight_tracker/blob/master/android/app/build.gradle) :

    ` def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withInputStream { stream -> localProperties.load(stream) } }

    def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") } `

    Properties() and GradleException (...) say can't resolve when compiling.

    I found the solution following this topic: https://github.com/flutter/flutter/issues/29608 .

    -> NOT SOLVED YET:

    Then, when trying to compile again Ihave this error message :

    _FAILURE: Build failed with an exception.

    • Where: Build file 'C:\Users\33695\AndroidStudioProjects\weight_tracker-master\android\app\build.gradle' line: 23

    • What went wrong: A problem occurred evaluating project ':app'.

    ASCII

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    • Get more help at https://help.gradle.org

    BUILD FAILED in 16s Exception: Gradle task assembleDebug failed with exit code 1_

    I tried the solutions from this topic : https://github.com/flutter/flutter/issues/41492

    So I tried to change android/build.gradle (https://github.com/MSzalek-Mobile/weight_tracker/blob/master/android/build.gradle) and (android/gradle/wrapper/gradle-wrapper.properties https://github.com/MSzalek-Mobile/weight_tracker/blob/master/android/gradle/wrapper/gradle-wrapper.properties ) in order to update Gradle.

    It didn't work :( .

    I also tried to use gradle zip in local instead of downloading (https://stackoverflow.com/questions/22896569/how-to-use-gradle-zip-in-local-system-without-downloading-when-using-gradle-wrap) ... it didn't work :( .

    I don't know where I made a mistake. I'm a beginner so I must have missed something obvious.

    Can you please help me ?

    Thanks a lot.

    opened by davidmatoska 0
  • No implementation found for method getSavedNote on channel

    No implementation found for method getSavedNote on channel

    I am new in flutter and I trying to run this code but getting this error.

    MissingPluginException (MissingPluginException(No implementation found for method getSavedNote on channel app.channel.shared.data))

    opened by magnatestech 1
Releases(v1.4)
Owner
MSzalek mobile apps
Mobile applications projects
MSzalek mobile apps
Movie Database app is a Flutter app project that allows users to search for a movie or tv series, see the detail, season & episode, and save watchlist.

Flutter Movie Database Movie Database app is a Flutter app project that allows users to search for a movie or tv series, see the detail, season & epis

Timeless Existence 14 Dec 24, 2022
Tahseen Quraishi 20 Dec 3, 2022
A flutter app where the user could add their credit cards and see a summary of their expenses

Card Controller ?? Card Controller foi um projeto realizado com o intuito de aprendizagem e prática da linguagem de programação Dart em conjunto com o

null 3 Jul 26, 2022
A flutter app that allows users to search books and display their details

Project find books This repository is the first part of the main project which aims to search books and find libraries containing them. I've decided t

Abdel 3 Jul 11, 2022
Nepal Live Corona Tracking App made using flutter

Nepal Live Corona Tracking App Overview App Snapshot Motivation Tehnical aspect Installation Updation Technologies used Overview This is a mobile appl

Shyam Das Shrestha 1 Nov 22, 2021
Flutter: Integrate Google Maps Tutorial Flutter: Integrate Google Maps Tutorial

Flutter Google Maps APP Show some ❤️ and star the repo to support the project A new Flutter project. Getting Started Flutter Project Add this to your

Pawan Kumar 69 Oct 27, 2022
A simple app to make Flutter development more delightful

Flutter Sidekick Sidekick is an app that provides a simple desktop interface to tools that enhance Flutter development experience to make it even more

Leo Farias 1.1k Jan 9, 2023
Create & Play Quiz with Makemyquiz.web.app made with Flutter

Makemyquiz.web.app Create quiz, play them see detailed results and much more try now visit https://makemyquiz.web.app Features Included ✅ Google Sign

Sanskar Tiwari 45 Oct 27, 2022
Drishti is a simple mobile application created as a project for YIP KDISC and Google Devs Solution Challenge

Drishti is a simple mobile application created as a project for YIP KDISC and Google Devs Solution Challenge. This app aims to make reporting and spreading the news of accidents and dangers easier and effective.

Friendly Neighbourhood Tekys 1 Nov 29, 2022
Flutter Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.

Flutter Music Player First Open Source Flutter based Beautiful Material Design Music Player(Online Radio will be added soon.) Demo App Play Store BETA

Pawan Kumar 1.5k Jan 2, 2023
Flute Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.

Flute Music Player Plugin Only Updated to androidx First Open Source Flutter based material design music player with audio plugin to play local music

Pawan Kumar 316 Nov 23, 2022
Play Tic-Tac-Toe by clicking on the screen to fill the white spaces

tic_tac_toe Tic-Tac-Toe Description: Play Tic-Tac-Toe by clicking on the screen to fill the white spaces with red for X and green for 0. Demo: https:/

null 1 Apr 16, 2022
A smart farming application that makes agriculture more efficient and effective with the help of high-precision algorithms.

Submission by Titans for Bit-by-Bit(IIIT Bhagalpur) Entry of Titans, from SRM Institute of Science and Technology, Kattankulathur, to Bit-by-Bit(IIIT

Abhijeet Gupta 15 Oct 13, 2022
Simple tool to open WhatsApp chat without saving the number, developed using Google's Flutter Framework.

Simple tool to open WhatsApp chat without saving the number, developed using Google's Flutter Framework. for Android/ IOS/ Desktop/ Web

Swarup Bhanja Chowdhury 15 Nov 1, 2022
A Flutter application to demonstrate how to implement Google maps and its advanced options in a flutter app.

google_maps_flutter_example A new Flutter application to demonstrate how to implement flutter google maps in a flutter application and perfoem advance

Hesham Erfan 11.7k Jan 8, 2023
Flutter State Management: Movie App with Provider, Riverpod, flutter_bloc & more

Flutter State Management: Movie App with Provider, Riverpod, flutter_bloc & more This reference project shows how to implement a (Netflix-inspired) mo

Andrea Bizzotto 427 Dec 29, 2022
This app was designed with the idea of making Cryptocurrency a more widely known and a household name using Dart

This app was designed with the idea of making Cryptocurrency a more widely known and a household name using Dart as the main programming language Flutter as the supporting framework and java as the Backend language. UI Done simply to let people buy and sell cryptocurrencies easily

Ankit Kr Ghosh 2 Aug 23, 2022
Travel-Application-Ui-design - A Simple Travel Application Ui design For Flutter

Flutter Simple Travel Application UI Design A part of #flutter100daysofcode. Let

Lutfur Rahman 0 Jan 28, 2022
Shopping App developed using Flutter and Dart making use of Provider, Carousel Library, Google FireStore

Shopping App developed using Flutter and Dart making use of Provider, Carousel Library, Google FireStore. It's featuring standard modern shopping app UI

Atuoha Anthony 7 Jan 3, 2023