Flutter Image ์ถ”๊ฐ€

passยท2023๋…„ 4์›” 2์ผ
0

Flutter

๋ชฉ๋ก ๋ณด๊ธฐ
2/3

๐Ÿ“Œ Flutter ๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ, ์ด๋ฏธ์ง€๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.


๐Ÿ“‘ ์ˆœ์„œ


  • ๐Ÿ”จ ์ด๋ฏธ์ง€๋“ค์„ ์ €์žฅํ•ด๋†“์„ ํด๋” ์ƒ์„ฑ ๋ฐ ์ด๋ฏธ์ง€ ์ €์žฅ**



  • pubspec.yaml ํŒŒ์ผ ์ˆ˜์ •

    pubpsec.yaml ํŒŒ์ผ์—์„œ flutter ๋ถ€๋ถ„ ์ฐพ๊ณ  ํด๋” ๊ฒฝ๋กœ ์ถ”๊ฐ€
    	- assets:
    		- ํด๋”์ด๋ฆ„/

  • ์ด๋ฏธ์ง€๋ฅผ ๋„์šฐ๋Š” ์ฝ”๋“œ ์‹คํ–‰

    IconButton(
       icon: Image.asset("assets/smile.png"),
       onPressed: () {
       	// ํด๋ฆญ ์ด๋ฒคํŠธ
       },
     )

  • ๊ฒฐ๊ณผ

profile
์•ˆ๋“œ๋กœ์ด๋“œ ๊ฐœ๋ฐœ์ž ์ง€๋ง์ƒ

0๊ฐœ์˜ ๋Œ“๊ธ€