syncfusion / flutter-examples

This repository contains the Syncfusion Flutter UI widgets examples and the guide to use them.
Other
1.98k stars 775 forks source link

build failed #738

Closed Mtharwat95 closed 1 year ago

Mtharwat95 commented 1 year ago

../../../../FlutterSKD/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_calendar-20.4.49/lib/src/calendar/sfcalendar.dart:10776:71: Error: A value of type 'RenderAbstractViewport?' can't be returned from a function with return type 'RenderAbstractViewport' because 'RenderAbstractViewport?' is nullable and 'RenderAbstractViewport' isn't.

MuniappanSubramanian commented 1 year ago

Based on the instructions provided, we attempted to replicate the reported issue but were unable to do so. A sample has been created and is attached, including the output from testing.

Please be aware that the version of SfDateRangePicker and SfCalendar used in this test is 20.4.49 and Flutter version is 3.7.0.

We suggest updating to the latest version of Flutter and re-testing the issue. If the problem persists, please inform us.

sample.zip output.zip

jaxnz commented 1 year ago

We have the same issue on Flutter 3.3.10 - last release before 3.7.

As we are waiting for 3.7 issues to be ironed out, can you provide the latest version of syncfusion_flutter_datepicker that is supported on v3.3.10

le-vlad commented 1 year ago

I had the same issue. flutter upgrade solved it

But I can confirm that the bug can be replicated on the 3.3.x flutter version.

anilthapa1939 commented 1 year ago

We have the same issue on Flutter 3.3.10 - last release before 3.7.

As we are waiting for 3.7 issues to be ironed out, can you provide the latest version of syncfusion_flutter_datepicker that is supported on v3.3.10

+1

komiljonovshohjahon commented 1 year ago

The error occurs when the flutter version on one's computer does not fit the the version of the package. My flutter version is 3.3.10 and I fixed the issue by adding these lines in pubspec.yaml.

dependencies:
  flutter:
    sdk: flutter
  syncfusion_flutter_calendar: ^20.4.48
  syncfusion_flutter_datepicker: ^20.4.48

dependency_overrides:
  syncfusion_flutter_calendar: "20.2.43"
  syncfusion_flutter_datepicker: "20.2.43"
Indumathi1195R commented 1 year ago

komiljonovshohjahon,

Thanks for the update. Please get in touch with us if you required further assistance.

jokermt235 commented 1 year ago

The error occurs when the flutter version on one's computer does not fit the the version of the package. My flutter version is 3.3.10 and I fixed the issue by adding these lines in pubspec.yaml.

dependencies:
  flutter:
    sdk: flutter
  syncfusion_flutter_calendar: ^20.4.48
  syncfusion_flutter_datepicker: ^20.4.48

dependency_overrides:
  syncfusion_flutter_calendar: "20.2.43"
  syncfusion_flutter_datepicker: "20.2.43"

Yes this is working variant