일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Image.network
- FutureBuilder
- 반석천
- node.js
- Snackbar
- HTTP
- Networking
- AppBar
- flutter
- Flutter Example
- Flutter 앱 배포
- Cached Image
- Load Image
- sqlite
- navigator
- Flutter Tutorial
- CrossAxisAlignment
- Flutter 예제
- ListTile
- MainAxisAlignment
- WillPopScope
- Column Widget
- Flutter 강좌
- Row
- Hello World
- listview
- ListView.builder
- Scaffold
- Row Widget
- InkWell
- Today
- Total
목록Flutter Example (35)
꿈꾸는 시스템 디자이너
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'; class NaviSendData extends StatelessWidget { List fruits = ["Apples", "Oranges", "Bananas"]; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("First Screen")), body: ListView.builder( itemCount: fruits.length, itemBuilder: (context, index) { return Card( child: ListTile( title: Text("${fruits[index]}"), onTap: () {..