An open API service indexing awesome lists of open source software.

https://github.com/codersuresh/flutter-basics

Flutter basics, as its name suggests, is a GitHub repo to host basic flutter projects developed as a learning part.
https://github.com/codersuresh/flutter-basics

Last synced: 3 months ago
JSON representation

Flutter basics, as its name suggests, is a GitHub repo to host basic flutter projects developed as a learning part.

Awesome Lists containing this project

README

        

# Flutter Basics
In this repository, you can see all basic apps created as a part of learning. Here is a list:

## [# Image Gallery](#image-gallery)

### Features
- display images using [pexels](https://pexels.com) API
- search images
- one click to set image as wallpaper

### [View Screenshot](#image-gallery-ss)

## [# Random Quote Generator](#random-quote-generator)

### Features
- displays random quote using advice slip api every time a button is pressed

### [View Screenshot](#random-quote-generator-ss)

## [# Calculator](#calculator)

### Features
- Can perform basic arithmatic operations

### [View Screenshot](#calculator-ss)

## [# Best Widgets](#best-widgets)

### Features
- login form with empty check validation
- implemented bottom navigation, drawer, and pop up menu

### [View Screenshot](#best-widgets-ss)

## [# BMI Calculator](#bmi-calculator)

### Features
- can calculate Body Mass Index (BMI) based on the user's input

### [View Screenshot](#bmi-calculator-ss)

## [# Destini - Story App](#destini)

### Features
- display different text (story) based on user's choice

### [View Screenshot](#destini-ss)

## [# Quiz App](#quiz-app)

### Features
- display question along with two possible answers 'true' and 'false'
- shows score in the form of tick or cross icon
- Once the quiz is finished, alert dialog is shown and quiz is restarted.

### [View Screenshot](#quiz-app-ss)

## [# Xylophone](#xylophone)

### Features
- play seven different notes of xylophone when respective button is pressed

### [View Screenshot](#xylophone-ss)

## [# Dice Roller](#dice-roller)

### Features
- display two dice
- change number of both when any of the dice is pressed

### [View Screenshot](#dice-roller-ss)

## [# Don Doggo](#don-doggo)

### Features
- display circular avatar
- display list with text preceeded by icons

### [View Screenshot](#don-doggo-ss)

## [# The Doctor](#the-doctor)

### Features
- Display image from local folder

### [View Screenshot](#the-doctor-ss)

## [# Random Cat](#random-cat)

### Features
- Display random image from [Unsplash](https://unsplash.com)
- Display new image when app is re-opened

### [View Screenshot](#random-cat-ss)

## Image Gallery
Displays images using Pexels API. A user can search images and set it as wallpaper on android. Made for learning purpose only.

### What I learned?
By doing this project, I learned to

- fetch data from api and add authorization header
- use SingleChildScrollView to enable scrolling
- use TextEditingController
- create and use model
- check internet connection using Connectivity and InternetConnectionChecker packages
- set wallpaper on android using FlutterWallpaperManager

#### Image Gallery SS
![](./images/image-gallery.jpg)

## Random Quote Generator
Generates random quote using advice slip API

### What I learned?
By doing this project, I learned to

- fetch data from api using http flutter package

#### Random Quote Generator SS
![](./images/random-quote.png)

## Calculator
Able to perform four basic arithmatic operations

### What I learned?
By doing this project, I learned to

- use SingleChildScrollView to enable scrolling
- work with Table

#### Calculator SS
![](./images/calculator.png)

## Best Widgets
Some useful widgets

### What I learned?
By doing this project, I learned to

- work with form
- use popup menu
- use bottom navigation bar
- use navigation drawer
- display alert dialog using showDialog

#### Best Widgets SS
![](./images/best-widgets.gif)

## BMI Calculator
You can enter height & weight to calculate BMI.

### What I learned?
By doing this project, I learned to

- make custom button using RawMaterialButton
- use constants and final
- customize theme
- customize widgets
- navigate between pages using Navigator
- make custom widgets by combining widgets
- use GestureDetector to detect tap on widget
- use slider widget and customize it
- work with enum
- use conditional operator (ternary operator) to shorten the code

#### BMI Calculator SS
![](./images/bmi-calculator.png)

## Destini
Initially, it displays a text with two choices. Based on that choice, next text is shown.

### What I learned?
By doing this project, I learned to

- implement and re-learn what I learned while making quiz app
- use visibility widget
- add background image using BoxDecoration

#### Destini SS
![](./images/destini.png)

## Quiz App
This is a simple quiz app with around 13 true/false questions.

### What I learned?
By doing this project, I learned to

- make different dart files to make code cleaner
- use all concepts of Object Oriented Programming
- display alert dialog using rflutter_alert package

#### Quiz App SS
![](./images/quizapp.png)

## Xylophone
This app has 7 colorful buttons. When these buttons are clicked, different note (sound) of xylophone is played.

### What I learned?
By doing this project, I learned to

- use packages
- use AudioPlayers to play audio from local file
- shorten code by making function to create identical widgets with slightly different properties

#### Xylophone SS
![](./images/xylophone.png)

## Dice Roller
This app displays dice images from images folder (asset image). Images are wrapped inside of TextButton and displays random dice images everytime it is pressed.

### What I learned?
By doing this project, I learned to

- use Expand Widget
- use stateful widget
- import math library and generate random number
- make and use variables and functions or methods
- detect and handle click event using TextButton

#### Dice Roller SS
![](./images/dice-roller.png)

## Don Doggo
This app displays a circular image of dog, and two lists with phone number and email along with icons.

### What I learned?
By doing this project, I learned to

- add icons and change their properties
- use sized box, row, column, padding
- use card
- use stateless widget
- download and use custom font

#### Don Doggo SS
![](./images/doggo.png)

## The Doctor
This is a simple flutter app to displays a random AssetImage from images folder.

### What I learned?
By doing this project, I learned to

- display AssetImage from local folder
- make image circular using CircleAvatar

#### The Doctor SS
![](./images/the-doctor.png)

## Random Cat
This is a simple flutter app. This app displays a random cat image everytime the app is re-opened.

### What I learned?
By doing this project, I learned to

- setup flutter on Windows OS
- display appbar, change title, align its position, and change color
- change background color
- display NetworkImage (image from internet)

#### Random Cat SS
![](./images/random-cat.png)