ํฐ์คํ ๋ฆฌ ๋ทฐ
์ฐธ๊ณ : ๐
๊ฒน์ณ์ ธ ์๋ ๋ฐฐ๊ฒฝ์ ํจ๊ณผ๋ฅผ ์ฃผ๊ณ ์ถ์ ๋! ์ธ๋ฏ..
BackdropFilter ์์ ฏ์์๋ ImageFilter์ child๋ฅผ ๋ณ์๋ก ์ฌ์ฉํ๊ณ ํํฐ๋ฅผ child ์๋ ์์ ฏ์ ์ ์ฉํฉ๋๋ค.
BackdropFilter(
filter: ImageFilter.blur(
sigmaX: 5,
sigmaY: 5,
),
child: // ์ฌ๊ธฐ๋ง ํํฐ๊ฐ ์ ์ฉ๋๋ค๊ณ ํ๋๋ฐ....
);
๋ฐฐ๊ฒฝ์ ํํฐ๋ฅผ ์ ์ฉํด์ ๊ทธ๋ฆผ์ด ๋ณด์ด์ง ์๊ฒ ํ๋ ค๋ฉด child์ ๋น ์ปจํ ์ด๋๋ฅผ ์ฌ์ฉํ์ธ์
BackdropFilter(
filter: ImageFilter.blur(
sigmaX: 5,
sigmaY: 5,
),
child: Container(
color: Colors.black.withOpacity(0),
)
);
๊ทธ๋ฅ filter๊ฐ ์์ ๋ฎ์ด ์์์ง๋ค๊ณ ์๊ฐํ๋ ํธ์ด ๋น ๋ฅผ ๋ฏ..
BackdropFilter๋ฅผ ์ฌ์ฉํ๋ฉด ์์ ฏ ์์ฒด์ ํํฐ๋ฅผ ์ ์ฉํ๋ ๋์ ์์ ฏ ์๋์ ๊ทธ๋ ค์ง ๊ฐ๊ฐ์ ํญ๋ชฉ์ ํํฐ๋ฅผ ์ ์ฉํ ์ ์์ → ๊ทธ ๋ ์ด์ด ๋ฐ์ ์๋ ๊ฑด ๋ค ์ ์ฉ๋๋ ๊ฒ ๊ฐ๋๋ผ๊ณ ...
Flutter์์๋ ImageFiltered๋ฅผ ์ฐ๋ ๊ฒ์ ๊ถ์ฅ
ImageFiltered: ํด๋น ์์ ฏ๋ง ํํฐ๋ฅผ ์ ์ฉ์์ผ์ค๋ค.
ImageFiltered(
imageFilter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: Image.asset('images/pic1.jpg', width: 200),
)
'#1 > Flutter' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[flutter] StatefulWidget๊ณผ setState (0) | 2021.09.15 |
---|---|
[flutter] Cascade notation (0) | 2021.09.14 |
[flutter] ๋์์ ๋์ ์ฌ์ (0) | 2021.09.14 |
[flutter] TextField์ onChanged, onSubmitted + onEditingComplete (0) | 2021.09.09 |
[flutter] GestureDetector, TextField ์ธ๋ถ ํด๋ฆญ ์ ํค๋ณด๋ ์จ๊ธฐ๊ธฐ (3) | 2021.09.09 |