Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
What editor theme you use?
Will only work if inside the same context eg inside another builder (in the build method) can fail, as the context has changed.
Instead of InitState(), you may also initialize the controller inside DidChangeDependencies() method. this way, if the context changes, you still get it.
it's easier to just wrap the widget in a Consumer (builder: (BuildContext context, WidgetRef ref, Widget? child) { },)and ref and context get
yes, that's not the point. The point is passing the ref object to another class globally
What editor theme you use?
Will only work if inside the same context eg inside another builder (in the build method) can fail, as the context has changed.
Instead of InitState(), you may also initialize the controller inside DidChangeDependencies() method. this way, if the context changes, you still get it.
it's easier to just wrap the widget in a Consumer (
builder: (BuildContext context, WidgetRef ref, Widget? child) { },
)
and ref and context get
yes, that's not the point. The point is passing the ref object to another class globally