일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Flutter Example
- sqlite
- InkWell
- WillPopScope
- Load Image
- Image.network
- FutureBuilder
- Flutter 예제
- Hello World
- Row Widget
- HTTP
- 반석천
- Column Widget
- Scaffold
- Networking
- Flutter 앱 배포
- Flutter Tutorial
- listview
- CrossAxisAlignment
- Snackbar
- node.js
- AppBar
- Flutter 강좌
- ListView.builder
- ListTile
- Cached Image
- Row
- MainAxisAlignment
- flutter
- navigator
- Today
- Total
목록Flutter 예제 (43)
꿈꾸는 시스템 디자이너
Add this to pubspec.yaml file dependencies: shared_preferences: ^0.5.3+4 Source Code import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; SharedPreferencesDemoState pageState; class SharedPreferencesDemo extends StatefulWidget { @override SharedPreferencesDemoState createState() { pageState = SharedPreferencesDemoState(); return pageState; } } clas..
import 'package:flutter/material.dart'; SnackBarWidgetState pageState; class SnackBarWidget extends StatefulWidget { @override SnackBarWidgetState createState() { pageState = SnackBarWidgetState(); return pageState; } } class SnackBarWidgetState extends State { // Global Key of Scaffold final scaffoldKey = GlobalKey(); @override Widget build(BuildContext context) { return Scaffold( key: scaffold..
import 'package:flutter/material.dart'; ExpandedWidgetState pageState; class ExpandedWidget extends StatefulWidget { @override ExpandedWidgetState createState() { pageState = ExpandedWidgetState(); return pageState; } } class ExpandedWidgetState extends State { List flexList = [1, 1, 1, 1, 1, 1]; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("Expanded..
import 'package:flutter/material.dart'; class ColumnWidgetAlignment extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("Column Widget Alignment")), body: ListView( children: [ Text("* CrossAxisAlignment", style: TextStyle(fontWeight: FontWeight.bold)), Row( crossAxisAlignment: CrossAxisAlignment.end, children: [ Expanded( child: C..
import 'package:flutter/material.dart'; class ColumnWidgetBasic extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("Basic Column Widget")), body: Column( children: [ boxWidget(), boxWidget(), boxWidget(), ], ), ); } boxWidget() { return Container( height: 50, width: 50, decoration: BoxDecoration( color: Colors.blue[400], border: B..
import 'package:flutter/material.dart'; class RowWidgetCrossAxisAlignment extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("Row widget - CrossAxisAlignment")), body: ListView( children: [ Text("default (CrossAxisAlignment.center)"), Container( decoration: BoxDecoration( color: Colors.grey[200], border: Border.all(color: Colors.i..
import 'package:flutter/material.dart'; class RowWidgetMainAxisAlignment extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("Row widget - MainAxisAlignment")), body: ListView( children: [ Text("Default (MainAxisAlignment.start)"), Container( child: Row( mainAxisAlignment: MainAxisAlignment.start, children: [ boxWidget(), boxWidget..
import 'package:flutter/material.dart'; class RowWidgetBasic extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("Basic Row Widget")), // insert a Row widget in body body: Row( children: [ // Add three sub-widget in the Row widget boxWidget(), boxWidget(), boxWidget(), ], ), ); } boxWidget() { return Container( height: 50, width: 5..