Home > Enterprise >  Expected to find ')' in Positioned in flutter
Expected to find ')' in Positioned in flutter

Time:02-18

how do i fix this

[Text](https://stackoverflow.com/fluttererror.png[Expected to find ')'][1])

),Positioned(
          top: 504,
          left: 320,
          child: SvgPicture.asset('assets/images/ellipse2.svg', semanticsLabel: 'ellipse2'
          );//line 59 error
),Positioned(
           top: 782,
           left: -77,
           child: SvgPicture.asset('assets/images/ellipse3.svg',semanticsLabel: 'ellipse3'
      );//line 64 error

what i've tried is adding ')' to line 59 and 64, putting const on the widget still the same error

CodePudding user response:

The issue here seems simply that you put the semicolon at the end of your SvgPicture, you should replace those with a comma!

),Positioned(
          top: 504,
          left: 320,
          child: SvgPicture.asset('assets/images/ellipse2.svg', semanticsLabel: 'ellipse2'
          ), //Comma goes here
),Positioned(
           top: 782,
           left: -77,
           child: SvgPicture.asset('assets/images/ellipse3.svg',semanticsLabel: 'ellipse3'
      ), //Comma goes here
  • Related