flutter_datetime_picker
flutter_datetime_picker copied to clipboard
Warning: Operand of null-aware operation '??' has type 'Color' which excludes null. - 'Color' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,
Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.
- 'Color' is from 'dart:ui'. color: theme.backgroundColor ?? Colors.white,
Unnecessary duplicate issue created
Previous duplicates:
- https://github.com/Realank/flutter_datetime_picker/issues/244
- https://github.com/Realank/flutter_datetime_picker/issues/248
Just update null check in flutter_datetime_picker.dart
from this
child: Material( color: theme.backgroundColor ?? Colors.white , child: _renderPickerView(theme), )
To this
child: Material( color: theme.backgroundColor == null ? Colors.white : theme.backgroundColor, child: _renderPickerView(theme), )
Just update null check in flutter_datetime_picker.dart
from this
child: Material( color: theme.backgroundColor ?? Colors.white , child: _renderPickerView(theme), )
To thischild: Material( color: theme.backgroundColor == null ? Colors.white : theme.backgroundColor, child: _renderPickerView(theme), )
I recommend you do that then open a pull request
Already done @Fethi1
Already done @Fethi1
Amazing, Thank you!
When will a new version with the correction of this error be available? thanks for the work
Just following up on this...Are there any updates as to when this will be fixed?
hello, any news?
So, this annoying warning is just pending a merge to get fixed, right? Is it gonna take many more months?
hello @nirbar89 @apparatchiki author is inactive. use alternetive as same code https://pub.dev/packages/flutter_datetime_picker_bdaya/install
You can fork the project and fix the simple issue.