Skip to content

Cell tap error #917

@kailash-elivaas

Description

@kailash-elivaas

Describe the bug
when tap on cell, for fraction of sec it show below error

The relevant error-causing widget was:
AnimatedContainer AnimatedContainer:file:///Users/kailashkhurana/.pub-cache/hosted/pub.dev/table_calendar-3.1.3/lib/src/widgets/cell_content.dart:81:11
When the exception was thrown, this was the stack:
flutter/flutter#2 BoxDecoration.debugAssertIsValid (package:flutter/src/painting/box_decoration.dart:134:7)
flutter/flutter#3 new Container (package:flutter/src/widgets/container.dart:272:48)
flutter/flutter#4 _AnimatedContainerState.build (package:flutter/src/widgets/implicit_animations.dart:827:12)
flutter/flutter#5 StatefulElement.build (package:flutter/src/widgets/framework.dart:5841:27)
flutter/flutter#6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5733:15)
flutter/flutter#7 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5892:11)
flutter/flutter#8 Element.rebuild (package:flutter/src/widgets/framework.dart:5445:7)
flutter/flutter#9 BuildScope._tryRebuild (package:flutter/src/widgets/framework.dart:2704:15)

To reproduce
use table_calendar: ^3.1.3

add below builder property
selectedDayPredicate: (day) {
if (leadCalendarBloc.selectedCheckInDate != null &&
leadCalendarBloc.selectedCheckOutDate != null) {
return day.isAtSameMomentAs(
leadCalendarBloc.selectedCheckInDate!) ||
day.isAtSameMomentAs(
leadCalendarBloc.selectedCheckOutDate!);
} else if (leadCalendarBloc.selectedCheckInDate != null) {
return day.isAtSameMomentAs(
leadCalendarBloc.selectedCheckInDate!);
}
return false;
},

Steps to reproduce the behavior:
select rage on tap any date for range it give error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions