mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 17:47:53 +00:00
use read instead of watch
This commit is contained in:
@ -71,7 +71,7 @@ class CurtainModuleItems extends StatelessWidget with HelperResponsiveLayout {
|
|||||||
onTap: () => showDialog(
|
onTap: () => showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (_) => BlocProvider.value(
|
builder: (_) => BlocProvider.value(
|
||||||
value: context.watch<CurtainModuleBloc>(),
|
value: context.read<CurtainModuleBloc>(),
|
||||||
child: CurtainModulePrefrencesDialog(
|
child: CurtainModulePrefrencesDialog(
|
||||||
deviceId: deviceId,
|
deviceId: deviceId,
|
||||||
curtainModuleStatusModel:
|
curtainModuleStatusModel:
|
||||||
|
Reference in New Issue
Block a user