رونمایی از پخته‌ترین و کاربردی‌ترین محصولات آموزشی سون‌لرن با کلی آفرهای ویژه🔥
۰ ثانیه
۰ دقیقه
۰ ساعت
۱ Kosar mousavi
ارور نشان دادن کامنت
یلدا محصلی حل شده توسط یلدا محصلی

سلام هر کار کردم نتونستم این ارور هنگام اجرا رو رفع کنم 

═╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following StateError was thrown building InheritedProvider<CommentListBloc>:
Bad state: Tried to read a provider that threw during the creation of its value.
The exception occurred during the creation of type CommentListBloc.
══╡ EXCEPTION CAUGHT BY PROVIDER ╞═══════════════════════════════
The following _TypeError was thrown:
type 'CommentListStarted' is not a subtype of type
'CommentListEvent' in type cast
When the exception was thrown, this was the stack:
#0      CommentList.build.<anonymous closure>
(package:niki/ui/product/comment/comment_list.dart:19:39)
#1      _CreateInheritedProviderState.value (package:provider/src/inherited_provider.dart:736:36)
inherited_provider.dart:736
#2      _InheritedProviderScopeElement.value (packa

سلام. ایا کلاس CommentListStarted از CommentListEvent ارث میبره؟

بهترین پاسخ
یلدا محصلی ۰۷ تیر ۱۴۰۳، ۰۸:۱۳