We are the ones behind
NativeBase
int fib(int n) => (n > 2) ? (fib(n - 1) + fib(n-2)) : 1;
void main() {
print('fib(20) = ${fib(20)}');
}
Elements that affect and control the view and interface to an app
import 'package:flutter/material.dart';
void main() {
runApp(new Center(child: new Text('This is an example')));
}
new Container(
color: Colors.amber.shade400,
alignment: FractionalOffset.center,
child: new Text("Just an example!'),
)
new Hero(
tag: photo.url,
child: new Image.network(photo.url,
fit: BoxFit.cover,
height: 250.0))
new Hero(
tag: url,
child: new Image.network(url,
fit:BoxFit.cover)));
final myInheritedWidget = MyInheritedWidget.of(context);
Everything is a Widget!
Determines the size and position of widgets
Row
Column
Column
Column
Column
new Center(
child: new Column(
children: [
new Text('Hello, World!')),
new Icon(Icons.star, color: Colors.green)
]
)
)
<div class="greybox">
Lorem ipsum
</div>
.greybox {
background-color: #e0e0e0;
width: 320px;
font: 900 24px Georgia;
}
HTML
var container = new Container(
child: new Text(
"Lorem ipsum",
style: new TextStyle(
fontSize: 24.0
fontWeight: FontWeight.w900,
fontFamily: "Georgia",
),
),
width: 320.0,
height: 240.0,
color: Colors.grey[300],
);
Flutter
Virtual DOM
Will it take longer for widgets to update when a new OS version comes out?
ON
OFF
ListView automatically scrolls its content when it exceeds the render box.
Text
Button
Parent
Child
Child
IconButton can be made as a stateless widget and its parent widget can decide what to do with it.
State
Parent widgets can manage some aspects of the child and the child will manage the other aspects.
Text
Button
Parent
Child
Child
Store
Graphics
Design
UI
conversion
Data
Integration
Graphics
Design
UI
conversion
Data
Integration
Designers
Developers
Gap
Graphics
Design
UI
conversion
Data
Integration
Graphics
Design
UI
conversion
Data
Integration
Text
Demo
Switch between Design & Code
Copy from BuilderX and Paste in your Code Editor (and vice-versa)
Create re-useable symbols (components)
We dream
Follow / BuilderXio
Follow Sanket: / sanketsahu
Follow Manav: / Manav1020Goel