aleksanderwozniak / table_calendar

Highly customizable, feature-packed calendar widget for Flutter
Apache License 2.0
1.82k stars 998 forks source link

dowVisible assertion error #880

Closed Jbz797 closed 4 months ago

Jbz797 commented 4 months ago

Describe the bug I have this error : _AssertionError ('package:table_calendar/src/table_calendar_base.dart': Failed assertion: line 77 pos 16: '!dowVisible || (dowHeight != null && dowBuilder != null)': is not true.)

To reproduce

showDialog(
  barrierColor: Colors.black26,
  context: context,
  builder: (c) {
    return StatefulBuilder(
      builder: (c, setState) {
        return AlertDialog(
          actions: [
            RoundedButton(icon: Icons.close, onPressed: () => Navigator.of(c).pop(), text: 'Fermer', white: true),
          ],
          content: TableCalendarBase(
            dayBuilder: (a, b, c) => null,
            firstDay: DateTime.utc(2010, 10, 16),
            focusedDay: DateTime.now(),
            lastDay: DateTime.utc(2030, 3, 14),
            rowHeight: 200,
          ),
          title: const Center(child: Text('Planning')),
          titleTextStyle: titleStyle,
        );
      },
    );
  },
);

Output of flutter doctor [✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale fr-FR) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.3) [✓] VS Code (version 1.89.1) [✓] Connected device (6 available)
[✓] Network resources