BlocProvider.of<DailyOpsBloc>(context)
This commit is contained in:
@@ -41,7 +41,7 @@ class _DailyOpsReportPageState extends State<DailyOpsReportPage> {
|
||||
if (picked != null && picked != _selectedDate && mounted) {
|
||||
setState(() => _selectedDate = picked);
|
||||
if (context.mounted) {
|
||||
context.read<DailyOpsBloc>().add(LoadDailyOpsReport(date: picked));
|
||||
BlocProvider.of<DailyOpsBloc>(context).add(LoadDailyOpsReport(date: picked));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user