일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Pointer
- parameter
- sensor
- APP
- public
- aduino
- atmega328
- file access
- Binary
- memory
- Encapusulation
- Contour
- Read
- Unity
- Class
- flutter
- digitalRead
- length
- java
- wpf
- SERIAL
- inheritance
- Android
- UNO
- compare
- Overloading
- Barcode
- mfc
- stream
- preprocessing
- Today
- Total
목록Flutter, Android/Flutter - Dart 문법 (2)
폴크(FOLC)

1. 변수 # var 라는 키워드를 사용 or 타입을 직접 선언하여 사용 # 이름의 첫 글자는 소문자, 접근 지정자[ _XXX (underbar) 를 붙이면 private ] # 참조 (reference)를 저장한다. > 자료형이 다른 경우 동일한 변수를 이용하려면 - dynamic 키워드를 사용 2. 컬렉션 # List, Map, Set 제공 > List items = ['사자', '호랑이', '고양이']; > Map items_map = { 'Hong' : 'hi', 'Gil' : 'hello' , 'Dong' : 'world'}; > Set items_set = {'Hong', 'Gil', 'Dong'}; 3. 클래스 # 생성시에 new 키워드 생략 # 접근 지정자는 기본적으로 public > _X..

# New Flutter Project 하면 아래와 같이 기본 코드가 자동 생성된다. import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } # material 패키지를 연결시켜서 Dart 문법의 사용하는 기본 함수들이 이용한다. class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( // This is the theme of your appl..