<aside> ๐Ÿ“Œ Contents

</aside>


๐Ÿ“ข ctrl +f ๋ˆŒ๋Ÿฌ ์›ํ•˜๋Š” ๋‚ด์šฉ์„ ์‰ฝ๊ฒŒ ์ฐพ์•„๋ณด์„ธ์š”!


๐ŸŽฏ๊ธฐ๋ณธ๊ตฌ์กฐ/ ํ™”๋ฉดWidget

1. StatefulWidget & StatelessWidget

//Stateful
class ํด๋ž˜์Šค์ด๋ฆ„ extends StatefulWidget {
  _ํด๋ž˜์Šค์ด๋ฆ„State createState() => _ํด๋ž˜์Šค์ด๋ฆ„State();
}
class _ํด๋ž˜์Šค์ด๋ฆ„State extends State<ํด๋ž˜์Šค์ด๋ฆ„> {
	...
	@override
	  Widget build(BuildContext context) {
	    return Container(...);
	  }
}

//Stateless
class ํด๋ž˜์Šค์ด๋ฆ„ extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(...);
  }
}

[Flutter] StatelessWidget & StatefulWidget ์ฐจ์ด์  ์ •๋ฆฌ

[Flutter] ํ”Œ๋Ÿฌํ„ฐ Stateful Widget Lifecycle(์ƒ๋ช…์ฃผ๊ธฐ)๋ž€??

2. Scaffold() ํด๋ž˜์Šค

: ์ƒ๋‹จ ์•ฑ๋ฐ”, material๋””์ž์ธ์ด ์ ์šฉ๋œ ํ™”๋ฉด์ด ๊ทธ๋ ค์ ธ์„œ ๋””์ž์ธ ํ†ต์ผ์— ์œ ์ต