일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Load Image
- AppBar
- FutureBuilder
- node.js
- HTTP
- sqlite
- CrossAxisAlignment
- listview
- MainAxisAlignment
- Hello World
- Cached Image
- navigator
- Row Widget
- flutter
- ListTile
- Column Widget
- WillPopScope
- InkWell
- Flutter 강좌
- ListView.builder
- Image.network
- Flutter Tutorial
- 반석천
- Scaffold
- Networking
- Flutter 앱 배포
- Flutter Example
- Snackbar
- Row
- Flutter 예제
- Today
- Total
목록Flutter 강좌 (90)
꿈꾸는 시스템 디자이너
import 'package:flutter/material.dart'; class GridViewDemo extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("GridView Demo")), body: GridView.count( crossAxisCount: 4, children: List.generate(1000, (index) { return boxItem(index); }), ), ); } boxItem(int index) { return Container( height: 100, width: 100, decoration: BoxDecorati..
import 'package:flutter/material.dart'; class ListViewHorizontal extends StatelessWidget { List items; ListViewHorizontal() { items = List.generate(100, (index) { return boxItem(index); }); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("ListView - Horizontal")), body: Container( height: 100, child: ListView.builder( scrollDirection: Axis.horizontal,..
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); }, )), ); ..