setstate()1 [Flutter] 재랜더링, state, setState() 사용해보기 화면 class MyApp extends StatefulWidget { // stless-> StatefulWidget로 바꿨습니다. MyApp({Key? key}) : super(key: key); @override State createState() => _MyAppState();}class _MyAppState extends State { var a = 1; var name = ['구정모', '김기현', '예식이']; @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( floatingActionButton: FloatingActionButton( .. 2023. 1. 17. 이전 1 다음