-
<TIL> late modifier, constraints, shimmer클래스/└ TIL 2022. 6. 25. 23:29728x90
🧭
late modifier
Dart 언어에는 late modifier가 있습니다.
변수를 정의만 해두고, 초기화는 뒤로 미룰 수 있습니다.
변수가 non-nullable이지만, 사용 전에 초기화를 확신할 때 사용하게 됩니다.
변수의 사용빈도수는 적은 반면 초기화하는데 비용이 많이 드는 경우 사용하기 좋습니다.
constraints
Flutter에서 레이아웃을 짜기 위해 constraints를 고려하게 됩니다.
constraints란 단순하게 4개의 double 값을 말합니다.
min-width, max-width, min-height, max-height 입니다.
Constraints go down. Sizes go up. Parent sets position.
Shimmer
'반짝임'이라는 뜻을 가진 shimmer는 화면이 로딩 중 불러올 화면과 동일한 레이아웃을 가지는 화면을 두고 물결과 같이 흐르는 느낌을 내는 디자인입니다.
📌
https://dart.dev/guides/language/language-tour#late-variables
A tour of the Dart language
A tour of all the major Dart language features.
dart.dev
https://docs.flutter.dev/development/ui/layout/constraints
Understanding constraints
Flutter's model for widget constraints, sizing, positioning, and how they interact.
docs.flutter.dev
https://medium.com/geekculture/shimmer-effect-in-android-2b6840cc0097
Shimmer Effect in Android
Hello everyone 👋🏻! Today I’m going to show you how to use the “Shimmer Effect” in your Android projects. Before start, for those who…
medium.com
728x90'클래스 > └ TIL' 카테고리의 다른 글
<TIL> 플러터: overflowed by x.x pixels (0) 2022.07.21 <TIL> Flutter: SizedBox, ClipRRect, whitespace (0) 2022.07.07 <TIL> ElasticBeanstalk / merge PR (0) 2022.05.28 <TIL> CRLF vs LF, 윈도우에서 LF로 작업하기 (0) 2022.05.25 <TIL> fileName.ts:24:12, NPMCompare.com (0) 2022.05.15