๐Today ์์ฝ
1. flutter image ์ ์ฉํ๋ ค๋ฉด ํด๋์์ ์ด๋ฏธ์ง๋ฅผ ๋ฃ์ ํ > pubspec.yaml์ assets์ ์ฐ๋์์ผ์ค ํ flutter pub get ํฐ๋ฏธ๋์ ์จ์คํ ์ฐ๋ํ๋ฉด ๋๋ค. flutter์์ background size cover ๊ฐ์ ๊ฝ ์ฐฌ ์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉํ๊ณ ์ถ๋ค๋ฉด fit์ ์ฌ์ฉ ํ๋ฉด ๋๋ค.!
2. flutter margin, padding, border-radius ๋ฑ ๊ฐ๋จํ style ์ ์ฉ์ ๋ํด ์์๋ดค๋ค
3. flutter์๋ line-height๊ฐ ์๊ณ ๊ทธ๋ฅ ํ ์คํธ ์คํ์ผ height์ ์ฌ์ฉํ์ฌ ์ค ์ฌ์ด ๊ฐ๊ฒฉ์ ๋ง์ถ๋ค
๐1. ์ํ ์
[โ ] flutter ๋ณต์ต 3.0 ~ 3.9
[โ ] flutter ์ฑ๋ฆฐ์ง ์ ์ถ
โ๏ธ2. ๊ฐ์ ์
๐3. ๋ฐฐ์ด ์
flutter image
Flutter Image ์ด๋ฏธ์ง ์ ์ฉํ๋ ๋ฒ
1. assets > images ํด๋๋ฅผ ์์ฑ ํ ์ํ๋ ์ด๋ฏธ์ง ํ์ผ์ ๋ฃ์ด์ค๋ค 2.pubspec.yaml ํ์ผ ์์ผ๋ก ๋ค์ด๊ฐ๋ค 3. ์๋๋ก ๋ด๋ ค๊ฐ๋ค ๋ณด๋ฉด #assets:~~~ ์ด๋ ํ ์คํธ๊ฐ ์๋๋ฐ ์์๊ฐ์ด ํด๋น ๊ฐ์ ธ์จ ์์น + ์ด๋ฏธ์ง๋ช
252-archive.tistory.com
flutter margin
- EdgeInsets.
Container(
margin: const EdgeInsets.symmetric(vertical: 3, horizontal: 7),
),
flutter Border Radius
Container(
margin: const EdgeInsets.symmetric(horizontal: 8),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10)),
),
flutter Text ์ค๋ฐ๊ฟ
- \n์ฌ์ฉ
const Text(
"DESIGN\nMEETING",
style: TextStyle(
fontSize: 60,
letterSpacing: -1,
fontWeight: FontWeight.w500),
),
flutter Text line-height
- text style > height ์ฌ์ฉ
const Text(
"DAILY\nPROJECT",
style: TextStyle(
height: 0.8,
color: Colors.black,
fontSize: 60,
letterSpacing: -1,
fontWeight: FontWeight.w500),
),
'TIL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
20230413 TIL (0) | 2023.04.14 |
---|---|
20230412 TIL (0) | 2023.04.12 |
20230410 TIL (0) | 2023.04.10 |
20230407 TIL (0) | 2023.04.07 |
20230406 TIL (0) | 2023.04.06 |