Posts
Q&A
๊ทธ๋ฅ const๋ผ๋ ๋ณ์์ ๋ฆฌ์คํธ๋ฅผ ์ ์ธํด๋ ๊ด์ฐฎ๋์??
dart ์ธ์ด์๋ ๊ฐ๋ฅํ ๋ฆฌ์คํธ ์ ์ธ ๋ฐฉ์์ด ์ฌ๋ฌ๊ฐ์ง๊ฐ ์๋๋ฐ,// ๊ธฐ๋ณธ List colors = []; // var var colors = []; var colors = []; // final final colors = []; final List colors = []; final colors = []; // const const colors = []; const List colors = []; const colors = []; ์ด ์ค์์ ๋ก ๊บพ์ ๊ดํธ ๋ด ํ์ ์ ์ธ์ด ๋์ง ์์ ๋น ๋ฆฌ์คํธ๋ ๊ธฐ๋ณธ์ ์ผ๋ก ๋ฐํ์ ํ์ ์ด List์ด ๋ฉ๋๋ค. (๋ชจ๋ ํ์ ์ ์์๋ฅผ ๋ฃ์ ์ ์์ด์ผ ํ๋๊น)๋ง์ผ const colors = [Colors.red]; ์ฒ๋ผ ํ์ ์ ์ธ ์์ด ๊ฐ ๋ฆฌ์คํธ ๋ด์ ์์๊ฐ ํ๋๋ผ๋ ์์ผ๋ฉด ์ ์ฒด ์์์ ํต์ผ๋ ํ์ ์ ์ถ๋ก ํ๊ธฐ ๋๋ฌธ์, ์ง๋ฌธ์ ๋์ ์ฌ์ง๊ณผ ๊ฐ์ ๊ฒฝ์ฐ List ๋ก ๊ฒฐ์ ๋ฉ๋๋ค. ์ด๋ var, final, const ๋ชจ๋ ํด๋น๋ฉ๋๋ค.๋๋จธ์ง๋ AI ์ธํด์ ๋ต๋ณ์ด ์ ์ค๋ช ํด์ฃผ๋ ๊ฒ ๊ฐ์ต๋๋ค.
- Likes
- 0
- Comments
- 2
- Viewcount
- 80
Q&A
(์ด์ฐ์ ์ฐ ํด๊ฒฐ๋๊ธด ํ๋๋ฐ..) AppBar์ bottom์ PreferredSize ์ ์ฉ ์ ๊ธฐ์กด TabBar๋ ์ ๋๋๋ฐ Row๋ก ๊ฐ์ธ๋ฉด ์๋ฌ๊ฐ ๋ ์.
๊ฐ์ ์์์์๋ ๋์ผํ ์ฝ๋์์ ์ ํ ์๋ฌ๊ฐ ๋ฐ์ํ์ง ์๋ ๊ฑธ๋ก ๋ณด์, ์๋ง๋ ๋ฒ์ ์ด ๋ฐ๋๋ฉด์ ์๊ธฐ๋ ๋ฌธ์ ์ผ์ง๋ ๋ชจ๋ฅด๊ฒ ๋ค์..
- Likes
- 0
- Comments
- 3
- Viewcount
- 75




