AdobeXD / xd-to-flutter-plugin

Generate assets from XD for use in an existing Flutter project
BSD 2-Clause "Simplified" License
953 stars 97 forks source link

"NaN undefined" error while running using Flutter 3.13 #132

Open FabioSFernandes opened 1 year ago

FabioSFernandes commented 1 year ago

Bug Description

After exporting the XD project to the flutter, opening the project with visual studio code, start building.

The build proccess does not finish: An error "NaN undefined" blocks the build.

My environment and package versions: Windows 11 Pro Flutter 3.13.7 • channel stable Framework • revision 2f708eb839 Engine • revision a794cf2681 Tools • Dart 3.1.3 • DevTools 2.25.0

To Reproduce

  1. Create a flutter project folder init the project with "flutter create ."

  2. export XD project

    Sample XD File or Screenshots

    image

  3. Change the main.dart file as follows: image

  4. Run project, and receives the error: Output: image

Versions:

Workaround:

This problem seems to be related to page transitions. The default value for this attribute is 0.35 in my environment, so if I do "replace all" NaN => 0.35 everything starts working fine.