일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- AppBar
- Flutter 강좌
- Scaffold
- listview
- InkWell
- Load Image
- Cached Image
- Flutter 예제
- Flutter Example
- Row
- navigator
- CrossAxisAlignment
- ListView.builder
- MainAxisAlignment
- sqlite
- ListTile
- Flutter 앱 배포
- Networking
- WillPopScope
- flutter
- Snackbar
- 반석천
- Row Widget
- Flutter Tutorial
- FutureBuilder
- Column Widget
- node.js
- Image.network
- Hello World
- HTTP
- Today
- Total
목록Flutter Tutorial (45)
꿈꾸는 시스템 디자이너
import 'package:flutter/material.dart'; abstract class ListsItem {} class HeadingItem implements ListsItem { final String heading; HeadingItem(this.heading); } class MessageItem implements ListsItem { final String sender; final String body; MessageItem(this.sender, this.body); } class ListViewWithDiffTypeItems extends StatelessWidget { List items; ListViewWithDiffTypeItems() { items = List.gener..
import 'package:flutter/material.dart'; class ListViewWidthBuilder extends StatelessWidget { List items; ListViewWidthBuilder() { items = List.generate(100, (index) { return "Item - $index"; }); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("ListView with builder")), body: ListView.builder(itemBuilder: (context,index){ String item = items[index]; re..
import 'package:flutter/material.dart'; class ListViewBasic extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("ListView Demo - Basic")), body: ListView( children: [ Text("First Item - Text"), Container( decoration: BoxDecoration(color: Colors.orange), child: Text("Second item - Text in Container"), ), ListTile( leading: Icon(Icon..
1. Add this to pubspec.yaml file dependencies: screen: ^0.0.5 2. Add the following permissions to Android Manifest file 3. Source Code import 'package:flutter/material.dart'; import 'package:screen/screen.dart'; ManageScreenDemoState pageState; class ManageScreenDemo extends StatefulWidget { @override ManageScreenDemoState createState() { pageState = ManageScreenDemoState(); return pageState; } ..
import 'package:flutter/material.dart'; class WillPopScopeDemo extends StatelessWidget { DateTime currentBackPressTime; final scaffoldKey = GlobalKey(); @override Widget build(BuildContext context) { return WillPopScope( onWillPop: () async { bool result = onPressBackButton(); return await Future.value(result); }, child: Scaffold( key: scaffoldKey, appBar: AppBar(title: Text("WillPopScope Demo")..
import 'package:flutter/material.dart'; class AlertDialogDemo extends StatelessWidget { // Global Key of Scaffold final scaffoldKey = GlobalKey(); @override Widget build(BuildContext context) { return Scaffold( key: scaffoldKey, appBar: AppBar(title: Text("AlertDialog Demo")), body: Center( child: RaisedButton( child: Text("Show AlertDialog"), onPressed: () { showAlertDialog(context); }, )), ); ..
import 'package:flutter/material.dart'; class NaviGetData extends StatelessWidget { final scaffoldKey = GlobalKey(); @override Widget build(BuildContext context) { return Scaffold( key: scaffoldKey, appBar: AppBar(title: Text("First Screen")), body: Center( child: RaisedButton( child: Text("Launch Screen"), onPressed: () { receiveData(context); }, ), ), ); } receiveData(BuildContext context) asy..
import 'package:flutter/material.dart'; // First Screen class NaviFirstScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("First Screen")), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Container( height: 70, width: 250, decoration: BoxDecoration(color: Colors.orange), alignment: Alig..