Importing Figma designs (through Figma to code plugin) and then using this code in flutter flow custom widget, I am facing certain errors. Can anyone please help and resolve this?

Widgets & Design

I have seen a video on youtube (https://www.youtube.com/watch?v=yHj1vxdzBpQ&t=848s) that describes how:
1. We can generate code for our figma design components through a plugin called Figma to Code.
2. we can paste this code in custom widget function in FlutterFlow
3. Compile the code and preview.

I have been trying to do the same but have been facing 3 or 4 errors.

My questions:
1. Is this way relevant to importing widgets from Figma to FlutterFlow using custom widget function?
2. If yes, how can we do that?

What have you tried so far?
  1. I have installed Figma to Code plugin in Figma

  2. Copied code snippet

  3. Pasted the code snippet after return variable in custom widget in FLutterFlow as shown in the screenshot.

  4. Received errors

Did you check FlutterFlow's Documentation for this topic?
No
1