본문 바로가기
반응형

flutter16

Dart 언어란? 다트는 크로스 플랫폼에 기반을 둔 프런트엔드 프로그래밍 언어이다. 다트 파일은 main 함수를 프로그램의 진입점으로 한다. void main() { } 다트 파일은 톱 레벨(어느 요소에도 속하지 않는 최상위 영역)에 변수, 함수, 클래스 등을 선언할 수 있다. // 톱 레벨 변수 선언 int topVariable = 100; // 톱 레벨 함수 선언 void sayHello(String name) { print('Hello, $name!'); } // 톱 레벨 클래스 선언 class Car { String make; String model; Car(this.make, this.model); void displayInfo() { print('Car: $make $model'); } } void main().. 2023. 10. 19.
Flutter - textTheme 의 deprecated 2014 The 2014 spec - Text style NAME SIZE WEIGHT SPACING 2018 NAME display4 112.0 thin 0.0 headline1 display3 56.0 normal 0.0 headline2 display2 45.0 normal 0.0 headline3 display1 34.0 normal 0.0 headline4 headline 24.0 normal 0.0 headline5 title 20.0 medium 0.0 headline6 subhead 16.0 normal 0.0 subtitle1 body2 14.0 medium 0.0 body1 (bodyText1) body1 14.0 normal 0.0 body2 (bodyText2) caption 12.0 nor.. 2021. 12. 13.
Flutter - as Prefix 플루터를 개발하다보면 import 된 값들이 동일한 이름의 class 명을 가질 때가 있다. 그러면 어떤 class인지 알수 없어서 error가 나는데 이때 as Prefix로 수정하라고 한다. 그럼 as Prefix는 무엇일까? 다음 예제로 확인해 본다 DateUtils.weekdays[dailyWeather.dateTime.weekday] 가 있는데 DateUtils는 flutter/src/material/date.dart weather_app/utils/date_utils.dart 이렇게 2개의 파일에 존재하는 class 이고 둘다 import 해서 사용해야 한다. 그리고 위의 DateUtils.weekdays는 date_uitls.dart에 존재하는 class를 사용해야한다. 그렇기 때문에 다음과.. 2021. 12. 13.
Flutter 관련 도규먼트들 Flutter 개발자 페이지 https://flutter-ko.dev/docs/development/ui/widgets Widget catalog Create beautiful apps faster with Flutter's collection of visual, structural,platform, and interactive widgets. In addition to browsing widgets by category,you can also see all the widgets in the [widget index](/docs/reference/widgets). flutter-ko.dev 코드 작성 페이지 https://dartpad.dev/? DartPad dartpad.dev drag&drop 테스.. 2021. 12. 13.
반응형