skip to Main Content

Here is the image of the error:

Here is the image of the error

What is the solution to this error? I tried to write here the ‘Row" function but the emulator is not opening the application.

2

Answers


  1. Scene class is coming from dart:ui library.

    import 'dart:ui';
    

    After importing this library, you’ll see another error msg. Such as The argument type 'Scene' can't be assigned to the parameter type 'Widget?'.

    Because you’re trying to pass Scene as a widget based on your SS code. Actually it’s an object(ig). Follow the official documentation to use this.

    Login or Signup to reply.
  2. Actually you are importing Scene from 2 librairies: android-small-7.dart and 8. If you need both imports, use an alias. Otherwise remove one of the librairies.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search