Flutter

Флаттер

Flutter

99.2K

speed 20

2018

Flutter 1.0

DART

GOOGLE

2015 Sky

(ma nigga, too ez, oop)

Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.

Fast Development

Expressive and Flexible UI

Native Performance

(it's hot)

(ARM, dart compiler)

АНХААРАЛ ТАВЬСАНД БАЯРЛАЛАА

WIDGETS

Almost eveything in flutter is widget

Animations

Text

Layout

Gestures

Transition

SO,

IF EVERYTHING IN FLUTTER IS WIDGET.

WHAT ABOUT FLUTTER DEVELOPERS??

import './Bulgaa.dart'

import './Orgil.dart'

import './Baaska.dart'

import './Temuujin.dart'

WIDGET TYPE

STATEFUL

STATELESS

 Center(
      child: Text(
        'Hello, world!',
        textDirection: TextDirection.ltr,
      ),
import 'package:flutter/material.dart';

void main() {
  runApp(
    Center(
      child: Text(
        'Hello, world!',
        textDirection: TextDirection.ltr,
      ),
    ),
  );
}

DART

DART

OOP?

import "dart:math" as math;
class Point {
  final num x, y;
  Point(this.x, this.y);
  Point.origin() : x = 0, y = 0;
   
  num distanceTo(Point other) {
   var dx = x - other.x;
   var dy = y - other.y;
   return math.sqrt(dx * dx + dy * dy);
  }
  
  Point operator +(Point other) => Point(x + other.x, y + other.y);
}

void main() {
  var p1 = Point(10, 10);
  var p2 = Point.origin();
  var distance = p1.distanceTo(p2);
  print(distance);
}

Just-in-Time (JIT)

Ahead-of-Time (AOT)

(in development)

(on release)

it compiles “only what is needed, when it is needed, and in the amount needed.

converts program source code into native machine code just before program execution

slower at startup, but it can have better peak performance after it runs long enough for runtime optimizations to be applied 

 

Compiling your code before it is “delivered” to whatever runtime environment runs the code.

Fast startup and predictable performance of production deployments.

Dart ways to compilation

DIFFENCE?

ARCHITECTURE?

NOT FOUND

STATE MANAGEMENT?

Reading list

  • Provider
  • Event driven
  • BloC

QUESTIONS???

JUST GOOGLE IT, 

bi harilaa

BI HARIMAAR BNAAAAA!!!

deck

By Usott Temka