일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Networking
- Column Widget
- Flutter 예제
- Hello World
- Flutter 강좌
- 반석천
- node.js
- Flutter 앱 배포
- Snackbar
- Image.network
- Scaffold
- FutureBuilder
- WillPopScope
- Flutter Tutorial
- Cached Image
- HTTP
- InkWell
- listview
- AppBar
- Flutter Example
- CrossAxisAlignment
- sqlite
- navigator
- ListView.builder
- Row Widget
- MainAxisAlignment
- flutter
- Load Image
- Row
- ListTile
- Today
- Total
목록Flutter 예제 (43)
꿈꾸는 시스템 디자이너
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: () {..
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..