hcbpassos / drag_select_grid_view

A grid that supports both dragging and tapping to select its items.
BSD 2-Clause "Simplified" License
133 stars 34 forks source link

null-aware operation '!' #28

Closed cbenhagen closed 2 years ago

cbenhagen commented 2 years ago
./../../.pub-cache/hosted/pub.dartlang.org/drag_select_grid_view-0.5.1/lib/src/auto_scroll/auto_scroller_mixin.dart:46:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which
excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../development/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback(

The easiest would be to remove the null-aware operator and drop support for flutter < 3.0.0. See https://docs.flutter.dev/development/tools/sdk/release-notes/release-notes-3.0.0#if-you-see-warnings-about-bindings