A basic flutter app used to accompany a walkthrough

Overview

FLUTTER WALKTHROUGH

  • Install Flutter SDK
  • Dart SDK comes with the Flutter SDK
  • Android Studio or XCode or VS Code

Android Studio

  • Install Flutter plugin from marketplace

Project structure

  • android - native android project, build gradle, etc
  • ios - native iOS project,
  • lib - dart and flutter code
  • test - test files
  • pubspec.yaml

lib

  • Where your dart files live
  • main.dart

pubspec.yaml

  • dependency management
  • app version
    • buildName: 1.0.0
    • buildNumber: 1
  • Flutter sdk version
  • dependencies
  • pub dev

Flutter build commands

  • flutter doctor - clean
  • flutter pub get - fetch dependencies
  • flutter pub upgrade - update dependencies to latest version

Widgets

  • Stateful

    • Has state object

    • setState(() {})

      • build method is run every time setState is called
      • like render in Reactjs
    • initState

      • initialises state prior to building the widget
  • Stateless

    • No state
    • All fields are final
    • Just used to render a view
  • Layout widgets

    • Have one child
      • Center - positions child in center of parent
      • SizedBox - Specify the size of the widget
      • Padding - Can wrap any widget in Padding
    • Have children
      • Column - Vertical and takes a list of any type of widget
      • Row - Same but horizontal
      • Stack - Almost like a relative layout, place things on top of each other
  • mainAxisAlignment

    • Columns are VERTICAL so main axis will be VERTICAL
    • Rows are HORIZONTAL so main axis is HORIZONTAL
  • crossAxisAligment


Routing

  • Your App widget takes a routes field
  • Define the routes/widgets/screens for your app
  • Navigator.of(context).pushNamed("routeName")
  • Navigator.pop()

Http requests


Code style

https://dart.dev/guides/language/effective-dart/style

  • UpperCamelCase (Classes, Extensions)
  • lowerCamelCase (consts, variables, method names)
  • lowercase_with_underscores (Dart files)

Assets

  • image assets
    • assets folder on root
    • pubspec.yaml: assets: - assets/bdcs-logo.png
    • ImageAsset("assets/bdcs-logo.png")

Tests

You might also like...

This app is used to download whatsapp status photo and videos

This app is used to download whatsapp status photo and videos

This app is used to download whatsapp status photo and videos. you can upload this app in playstore as well. there are lot's of application available like WhatsApp Story Saver, Story Downloader for whatsapp.

Nov 28, 2022

Flutter 2.0 (Null safety) Basic, Dynamic & Silver style Staggered Grid views made using flutter staggered grid view package. 🦺

Flutter 2.0 (Null safety) Basic, Dynamic & Silver style Staggered Grid views made using flutter staggered grid view package. 🦺

Staggered Grid View Developement Stack Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Oct 28, 2022

A project to showcase usage of basic principles to convert any 3D design into a working application using Flutter.

A project to showcase usage of basic principles to convert any 3D design into a working application using Flutter.

Developing apps with 3D designs in flutter This project is developed to showcase how we can use some basic principles to convert any 3D design into a

Dec 22, 2022

A basic flutter practical test to use on interviews

A basic flutter practical test to use on interviews

Flutter Interview Pratical Test Getting Started Welcome! If you have come this far is because you are special :) This is a quick flutter test to see w

Dec 1, 2021

This is a basic flutter widget that shows the Buy me a coffee button.

Buy me a coffee widget Did you ever needed a widget for buy me a coffee, well here it is. Important note Be very careful with using this widget. Accor

May 12, 2022

A basic demo example for integrating between Appwrite & Flutter πŸ’™

A basic demo example for integrating between Appwrite & Flutter πŸ’™

πŸ”– Quiz With Flutter A simple Quiz App built with Flutter and Appwrite 🎬 Getting Started 🀘 Install Appwrite Follow our simple Installation Guide to

Nov 22, 2022

A basic implementation of the robot testing pattern for integration/e2e tests

robot 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 is

Dec 13, 2021

used sqflite flutter , bloc

todoapp 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

Dec 2, 2022

Sorting Visualizer using Flutter followed MVVM Pattern and used Stacked Services. Hope you like it πŸ˜‹

Sorting Visualizer using Flutter followed MVVM Pattern and used Stacked Services. Hope you like it πŸ˜‹

Sortlizer An App to visualize various sorting algorithms...Developed using Flutter, followed MVVM pattern, and used stacked services. Play Store Link

Dec 28, 2022
Owner
Caleb Linden
DEV/UX
Caleb Linden
To cure symptoms of various disease using medicines at home this app will act as guideline. Few animations are used and Firebase is used as database.

Medkit It's a Pharmacy application that help you in curing basic symptoms and diseases with medicines available in your home. How to Run Code Clone or

Muhammad Hamza 109 Dec 22, 2022
Basic banking app - A Banking App that allow transfer money between multiple customers using SQLite database

basic_banking_app A Basic Banking App that allow transfer money between multiple

Esraa Mostfa 0 Feb 10, 2022
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
Flutter basic desktop project. Desktop todo app.

Glory Todo Desktop Basic and Primitive Flutter Desktop Project! Goal My goal is to accept my inexperience without worrying about the plugin shortcomin

Γ–zgΓΌr 52 Dec 3, 2022
A basic shopping app design built using Flutter.

Flutter Shopping App A basic shopping app design built using Flutter. Android iOS Getting Started For help getting started with Flutter, view the onli

Rohan Taneja 27 Sep 16, 2021
Munem Sarker 1 Jan 25, 2022
A basic weather forecast app built using openweathermap API

Forecast A basic weather forecast app built using https://openweathermap.org/api API Features 5 hours forecast Curent forecast 5 days forecast Look up

Abdulmalik 7 Nov 29, 2022
Routinger is a task scheduler app that is made to make you a better person at no extra cost. The code is open-source. Dart language and Flutter framework are used extensively.

Routinger This is a simple app that will allow you to schedule your tasks, create a simple to-do, and also make recurring tasks. The app ends you noti

Routinger 16 Dec 17, 2022
A simple app to demonstrate a testable, maintainable, and scalable architecture for flutter. flutter_bloc, hive, and REST API are some of the tech stacks used in this project.

last_fm A simple app to demonstrate a testable, maintainable, and scalable architecture for flutter. flutter_bloc, hive, and REST API are some of the

Elias Andualem 140 Dec 31, 2022
Kind of app that generally used to maintain our day-to-day tasks or list everything that we have to do.We can add more tasks at any time and delete a task that is completed.

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

Khaled Elnkhla 0 Nov 6, 2021