pubspec.yaml에 캐로셀슬라이더 추가시
강사님이 말씀하신대로, CarouselSlider 버젼이 변경되면서 구조가 좀 바뀐듯 합니다. 아래처럼 onPageChanged 항목을 options 안으로 넣으면 됩니다. @override Widget build(BuildContext context) { return Container( child: Column( children: Widget>[ Container( padding: EdgeInsets.all(20), ), CarouselSlider( items: images, options: CarouselOptions(onPageChanged: (index, reason) { setState(() { _currentPage = index; _currentKeyword = keywords[_currentPage]; }); }), ) ], )); }