Widget (2) 썸네일형 리스트형 FloatingActionButton 여러개 사용시 에러및 오류 해결 하는 법. 플로팅 버튼이 쉽고 잘만들어진 버튼이지만, 써보면 에러가 나는 경우가 자주 있습니다. 이유는 이쁘다고 버튼을 여러개 쓰는 경우가 있고, 실행은 되는데 에러메시지가 나온다. 찾아보면 답이 있습니다. ======== Exception caught by scheduler library ===================================================== The following assertion was thrown during a scheduler callback: There are multiple heroes that share the same tag within a subtree. Within each subtree for which heroes are to be animated.. 가장 간단한 상태관리 ValueNotifier Provider 도 아니고 . valueNotifier 로 간단한 상태관리가 가능하다. ValueListenableBuilder 로하는 상태관리 State Manage 간단한 작업에 프로바이더 없이 상태관리가 가능 하다. import 'package:flutter/material.dart'; class ValueHome extends StatefulWidget { const ValueHome({super.key}); @override State createState() => _ValueHomeState(); } class _ValueHomeState extends State { int _counter = 0; ValueNotifier _counterChanged = ValueNotifier(0); @ov.. 이전 1 다음