The Flutter Planets app tutorial with commits per lesson

Overview

flutter planets tutorial

This project contains the steps followed on the tutorial on sergiandreplace.com.

Each lesson will correspond to a single branch with the name of the post where you'll be able to find the result of what is explained in the article

Remember all the graphical assets and the design is created by Vijay Verma

Comments
  • Stuck in Initializing gradle

    Stuck in Initializing gradle

    I am newbie so sorry for any inconvenience .. I just cloned the project to my PC, and opened it with Android Studio .. It showed an error regarding the path for Dart and Flutter SDK .. I provided the path. But every time I try to run the app it's getting stuck in Initializing gradle and nothing happening.

    opened by ykabbara 1
  • Updated Lesson 6 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updated Lesson 6 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updates:

    • Updated .gitignore for ios, android and flutter project.
    • Replaced configuration 'compile' with 'implementation' and updated targetSdkVersion & compileSdkVersion.
    • Updated kotlin version , build gradle plugin version and replaced "maven {url "https://maven.google.com"}" with "mavenCentral()".
    • Updated distributionUrl in gradle-wrapper.properties.

    Fixes:

    • Fixed bottom overflow issue on smaller screens inside planetCard #3 .
    • Added SDK constraint:">=2.15.1 <3.0.0" in pubspec.yaml.
    • Migrated this app to the V2 embedding.
    • Enabled AndroidX support.
    • Fixed #8 .

    Enabled flutter_lints:

    • Added flutter_lints in project.
    • Updated project code according to flutter_lints recommendations.
    opened by chaudharydeepanshu 0
  • Updated Lesson 5 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updated Lesson 5 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updates:

    • Updated .gitignore for ios, android and flutter project.
    • Replaced configuration 'compile' with 'implementation' and updated targetSdkVersion & compileSdkVersion.
    • Updated kotlin version , build gradle plugin version and replaced "maven {url "https://maven.google.com"}" with "mavenCentral()".
    • Updated distributionUrl in gradle-wrapper.properties.

    Fixes:

    • Fixed bottom overflow issue on smaller screens inside planetCard #3 .
    • Added SDK constraint:">=2.15.1 <3.0.0" in pubspec.yaml.
    • Migrated this app to the V2 embedding.
    • Enabled AndroidX support.
    • Fixed #8 .

    Enabled flutter_lints:

    • Added flutter_lints in project.
    • Updated project code according to flutter_lints recommendations.
    opened by chaudharydeepanshu 0
  • Updated Lesson 4 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updated Lesson 4 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updates:

    • Updated .gitignore for ios, android and flutter project.
    • Replaced configuration 'compile' with 'implementation' and updated targetSdkVersion & compileSdkVersion.
    • Updated kotlin version , build gradle plugin version and replaced "maven {url "https://maven.google.com"}" with "mavenCentral()".
    • Updated distributionUrl in gradle-wrapper.properties.

    Fixes:

    • Fixed bottom overflow issue on smaller screens inside planetCard #3 .
    • Added SDK constraint:">=2.15.1 <3.0.0" in pubspec.yaml.
    • Migrated this app to the V2 embedding.
    • Enabled AndroidX support.
    • Fixed #8 .

    Enabled flutter_lints:

    • Added flutter_lints in project.
    • Updated project code according to flutter_lints recommendations.
    opened by chaudharydeepanshu 0
  • Updated Lesson 3 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updated Lesson 3 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updates:

    • Updated .gitignore for ios, android and flutter project.
    • Replaced configuration 'compile' with 'implementation' and updated targetSdkVersion & compileSdkVersion.
    • Updated kotlin version , build gradle plugin version and replaced "maven {url "https://maven.google.com"}" with "mavenCentral()".
    • Updated distributionUrl in gradle-wrapper.properties.

    Fixes:

    • Fixed bottom overflow issue on smaller screens inside planetCard #3 .
    • Added SDK constraint:">=2.15.1 <3.0.0" in pubspec.yaml.
    • Migrated this app to the V2 embedding.
    • Enabled AndroidX support.
    • Fixed #8 .

    Enabled flutter_lints:

    • Added flutter_lints in project.
    • Updated project code according to flutter_lints recommendations.
    opened by chaudharydeepanshu 0
  • Updated Lesson 2 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updated Lesson 2 project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updates:

    • Updated .gitignore for ios, android and flutter project.
    • Replaced configuration 'compile' with 'implementation' and updated targetSdkVersion & compileSdkVersion.
    • Updated kotlin version , build gradle plugin version and replaced "maven {url "https://maven.google.com"}" with "mavenCentral()".
    • Updated distributionUrl in gradle-wrapper.properties.

    Fixes:

    • Fixed bottom overflow issue on smaller screens inside planetCard #3 .
    • Added SDK constraint:">=2.15.1 <3.0.0" in pubspec.yaml.
    • Migrated this app to the V2 embedding.
    • Enabled AndroidX support.
    • Fixed #8 .

    Enabled flutter_lints:

    • Added flutter_lints in project.
    • Updated project code according to flutter_lints recommendations.
    opened by chaudharydeepanshu 0
  • Updated Lesson 1 project , fixed build errors and enabled flutter_lints

    Updated Lesson 1 project , fixed build errors and enabled flutter_lints

    Updates:

    • Updated .gitignore for ios, android and flutter project.
    • Replaced configuration 'compile' with 'implementation' and updated targetSdkVersion & compileSdkVersion.
    • Updated kotlin version , build gradle plugin version and replaced "maven {url "https://maven.google.com"}" with "mavenCentral()".
    • Updated distributionUrl in gradle-wrapper.properties.

    Fixes:

    • Added SDK constraint:">=2.15.1 <3.0.0" in pubspec.yaml.
    • Migrated this app to the V2 embedding.
    • Enabled AndroidX support.
    • Fixed #8 .

    Enabled flutter_lints:

    • Added flutter_lints in project.
    • Updated project code according to flutter_lints recommendations.
    opened by chaudharydeepanshu 0
  • Updated project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updated project , fixed build errors, fixed overflow issues and enabled flutter_lints

    Updates:

    • Updated .gitignore for ios, android and flutter project.
    • Replaced configuration 'compile' with 'implementation' and updated targetSdkVersion & compileSdkVersion.
    • Updated kotlin version , build gradle plugin version and replaced "maven {url "https://maven.google.com"}" with "mavenCentral()".
    • Updated distributionUrl in gradle-wrapper.properties.

    Fixes:

    • Fixed bottom overflow issue on smaller screens inside planetCard #3 .
    • Added SDK constraint:">=2.15.1 <3.0.0" in pubspec.yaml.
    • Migrated this app to the V2 embedding.
    • Enabled AndroidX support.
    • Fixed #8 .

    Enabled flutter_lints:

    • Added flutter_lints in project.
    • Updated project code according to flutter_lints recommendations.
    opened by chaudharydeepanshu 0
  • Confused that The hight of  PlanetRow less than planetCard

    Confused that The hight of PlanetRow less than planetCard

    hi, bro I was confused that the hight of planetRow is 120.0 ,less than the hight of planetCard 124.0, but the planetCard is child of planetRow ,what means here? what hight show in reality ? I provide that 120.0 show in reality, what influence of the hight of planetRow? looking forward your response ,thank u!

    opened by yichaosun 0
  • until update for new version

    until update for new version

    Install new version of Flutter, then:

    git clone https://github.com/sergiandreplace/flutter_planets_tutorial.git flutter_planets_tutorial2

    flutter create flutter_planets_tutorial

    copy ./flutter_planets_tutorial2/lib ./flutter_planets_tutorial/lib

    copy ./flutter_planets_tutorial2/assets ./flutter_planets_tutorial/assets

    cd /flutter_planets_tutorial/

    flutter run

    other way, I did not get gradle to work.

    opened by vdizdarevic 2
  • Bottom overflowed by 2.0 pixels

    Bottom overflowed by 2.0 pixels

    `import 'package:flutter/material.dart'; import 'package:my_flutter_plannets/model/planets.dart';

    class PlanetRow extends StatelessWidget {

    final Planet planet;

    PlanetRow(this.planet);

    @override Widget build(BuildContext context) { final planetThumbnail = new Container( margin: new EdgeInsets.symmetric( vertical: 16.0 ), alignment: FractionalOffset.centerLeft, child: new Image( image: new AssetImage(planet.image), height: 92.0, width: 92.0, ), );

    final baseTextStyle = const TextStyle(
        fontFamily: 'Poppins'
    );
    final regularTextStyle = baseTextStyle.copyWith(
        color: const Color(0xffb6b2df),
        fontSize: 9.0,
        fontWeight: FontWeight.w400
    );
    final subHeaderTextStyle = regularTextStyle.copyWith(
        fontSize: 12.0
    );
    final headerTextStyle = baseTextStyle.copyWith(
        color: Colors.white,
        fontSize: 18.0,
        fontWeight: FontWeight.w600
    );
    
    Widget _planetValue({String value, String image}) {
      return new Row(
          children: <Widget>[
            new Image.asset(image, height: 12.0),
            new Container(width: 8.0),
            new Text(planet.gravity, style: regularTextStyle),
          ]
      );
    }
    
    
    final planetCardContent = new Container(
      margin: new EdgeInsets.fromLTRB(76.0, 16.0, 16.0, 16.0),
      constraints: new BoxConstraints.expand(),
      child: new Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          new Container(height: 4.0),
          new Text(planet.name, style: headerTextStyle),
          new Container(height: 10.0),
          new Text(planet.location, style: subHeaderTextStyle),
          new Container(
              margin: new EdgeInsets.symmetric(vertical: 8.0),
              height: 2.0,
              width: 18.0,
              color: new Color(0xff00c6ff)
          ),
          new Row(
            children: <Widget>[
              new Expanded(
                  child: _planetValue(
                      value: planet.distance,
                      image: 'assets/img/ic_distance.png')
    
              ),
              new Expanded(
                  child: _planetValue(
                      value: planet.gravity,
                      image: 'assets/img/ic_gravity.png')
              )
            ],
          ),
        ],
      ),
    );
    
    
    final planetCard = new Container(
      child: planetCardContent,
      height: 124.0,
      margin: new EdgeInsets.only(left: 46.0),
      decoration: new BoxDecoration(
        color: new Color(0xFF333366),
        shape: BoxShape.rectangle,
        borderRadius: new BorderRadius.circular(8.0),
        boxShadow: <BoxShadow>[
          new BoxShadow(
            color: Colors.black12,
            blurRadius: 10.0,
            offset: new Offset(0.0, 10.0),
          ),
        ],
      ),
    );
    
    
    return new Container(
        height: 120.0,
        margin: const EdgeInsets.symmetric(
          vertical: 16.0,
          horizontal: 24.0,
        ),
        child: new Stack(
          children: <Widget>[
            planetCard,
            planetThumbnail,
          ],
        )
    );
    

    } } screenshot_1521020206 `

    opened by youngGriff 3
Owner
Sergi Martínez
Sergi Martínez
Materiale per il corso PON Programmazione Creativa dell'ITET Marsala - Modulo Mobile Dev

modulomobiledev-ponprogrammazionecreativa-itet Materiale a supporto delle lezioni del modulo Mobile Dev per il corso PON Programmazione Creativa degli

Enrico La Sala 3 Nov 8, 2021
Plaso Connect is an application which acts as a one-stop solution where the people requiring blood plasma/oxygen can directly find and contact the donors and healthcare units as per their requirements

PLASO CONNECT - The Lifeline A one-stop platform for COVID relief resources -- Connecting patients with Plasma donors and oxygen suppliers. Built for

Niloy Sikdar 11 Oct 28, 2022
A tutorial for creating an Ubuntu Linux Flutter app, using the yaru theme

Building a Yaru app with Flutter Summary URL https://github.com/ubuntu/user_manager Category Environment Linux Status Feedback Link Author Frederik Fe

Ubuntu 22 Dec 21, 2022
Berikut ini merupakan code tutorial flutter UI yang didesain oleh Muhammad Najib

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

Sandikha Rahardi 21 Dec 25, 2022
GitHub Desktop tutorial repository

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

Nguyễn Thành Tâm 0 Nov 4, 2021
Flutter classified app - A sample app to showcase classified app using flutter

Flutter Classified App Demo A sample app to showcase classified app using flutter. Demo Android Screen iOS Screen Getting Started This project is a st

FlutterDevs 271 Dec 27, 2022
Flutter Grocery Shopping App (Mobile App, Web App)

Grocery-App (Widle Studio - A Creative Flutter App Development Company) OR Get an Estimate Flutter Grocery Shopping App Fully Working Template with Wo

Widle Studio LLP 811 Dec 29, 2022
Finance App Flutter - Personal Finance app built with Flutter

Finance_App_Flutter Aplicatico de Finanças Pessoais , com o intuito de prover maior controle financeiro para o usuário. Video Demonstrativo Finance Ap

Thiago Dantas 126 Oct 31, 2022
Flutter-task-planner-app - A beautiful task planner app design made in flutter.

Flutter Task Planner App Design Task Planner App is built with flutter. App design is based on Task Planner App designed by Purrweb UI. This app is st

Sourav Kumar Suman 692 Jan 2, 2023
Flutter-Covid-19-App - A flutter Covid-19 Trakcer app with Rest API

covid_tracker I have created this app flutter with Rest API, API is open source.

Asif Taj 14 Jan 4, 2023
Flutter App Developer Roadmap - A complete roadmap to learn Flutter App Development

Flutter App Developer Roadmap - A complete roadmap to learn Flutter App Development. I tried to learn flutter using this roadmap. If you want to add something please contribute to the project. Happy Learning

Md Tarikul Islam 708 Jan 3, 2023
Flutter push notification app - Flutter-Firebase Push Notification App with FCM

A simple Flutter-Firebase "Push_Notification" application.

Ahmer Iqbal 9 Nov 4, 2022
A Flutter app based on the design of the Social Media Integeration App

A Flutter app based on the design of the Social Media Integeration App

Achmad Rizki Nur Fauzie 2 Dec 8, 2021
Starter app for Flutter that includes many different production app features; some not typically included in demo apps.

first_app: Starter app for a Flutter production app Maintainer: Greger Wedel, https://github.com/gregertw Listed on: Latest build and artifacts: ** La

Greger Teigre Wedel 373 Jan 8, 2023
News Headline app is build in Flutter MVVM and REST Apis for News is used in this app.

About The Project Flutter MVVM project for News Headlines. REST Api for News is used in this project. App Demo Api for News Get free api from here : h

Aizaz ahmad 3 Aug 16, 2022
A flutter app for a wordpress websites with clean and elegant design. This app is available in free and pro version. You can choose to use the one you need.

?? Get Flutter for Wordpress Flutter for wordpress is currently available in free and pro version: Flutter for Wordpress Flutter for Wordpress Pro Bea

mcyos118 18 Dec 13, 2022
This is an app created by me while undertaking an android app development in flutter course on Udemy.

Expense Planner App A Flutter project created by Mithilesh Ghadge in a Fluttter Android app development course on Udemy. Create a new Flutter project

Mithilesh Ghadge 2 Oct 14, 2021
A flutter based app using python scripts as backend for a quotes app.

Fluthon APP A new Flutter project which is supported from a python script and lists quotes . Deployment ?? -> /Script - python main.py. -> Run main.d

Yash Joshi 4 Nov 16, 2022