본문 바로가기
반응형

2023년 이전/flutter7

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.
FlatButton, RaisedButton, OutlineButton Deprecated 작성일 : 2021.09.20 플루터 개발을 공부하다보니 매테리얼 디자인 중에 FlatButton, RaisedButton, OutlineButton가 있는데 이들이 Deprecated 되었다. 그럼 무엇을 써야할까? FlatButton →TextButton RaisedButton →ElevatedButton OutlineButton →OutlinedButton 이렇게 바꺼쓰면 될것같다. 그리고 색상은 style: TextButton.styleFrom( primary: Colors.teal, ), 이렇게 스타일로 주면 된다. 자세한 부분은 아래서 참조 https://www.woolha.com/tutorials/flutter-using-textbutton-widget-examples Flutter - Us.. 2021. 12. 13.
반응형