You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Future<void> _showDialogAddGhiChu(BuildContext context) async {
return showDialog<void>(
context: context,
barrierDismissible: false, // user must tap button!
builder: (_) {
return Consumer((ct, read) {
final clickDate = read(mainStateNotifier).clickDate;
return AddNote(
date: clickDate,
context: ct,
); //magic ^_^
});
},
);
}
error
Another exception was thrown: Stack Overflow
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following StackOverflowError was thrown building Consumer(dirty, dependencies: [ProviderStateOwnerScope], state: _ConsumerState#34eeb):
Stack Overflow
The relevant error-causing widget was:
Consumer file:///Users/tbm98/dev/flutter_app/student-social/lib/presentation/screens/main/main_page.dart:132:16
When the exception was thrown, this was the stack:
#0 MainState.getClickDate (package:studentsocial/presentation/screens/main/main_state.dart:35:3)
#1 MainState.getClickDate (package:studentsocial/presentation/screens/main/main_state.dart:35:32)
#2 MainState.getClickDate (package:studentsocial/presentation/screens/main/main_state.dart:35:32)
#3 MainState.getClickDate (package:studentsocial/presentation/screens/main/main_state.dart:35:32)
#4 MainState.getClickDate (package:studentsocial/presentation/screens/main/main_state.dart:35:32)
...
════════════════════════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered:
error
The text was updated successfully, but these errors were encountered: