For some reason when I export my Adobe XD project to flutter using XD to flutter plugin
it gives the error
The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null'.
Try adding either an explicit non-'null' default value or the 'required' modifier.
it's a new project, every time I export's it, give that error
it's very simple code just text widget in the middle of the screen code :
import 'package:flutter/material.dart';
import 'package:adobe_xd/pinned.dart';
class XDIPhone678SE1 extends StatelessWidget {
XDIPhone678SE1(
{
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xffffffff),
body: Stack(
children: <Widget>[
Pinned.fromPins(
Pin(size: 143.0, middle: 0.5),
Pin(size: 27.0, middle: 0.5),
child: Text(
'Hello World!',
style: TextStyle(
fontFamily: 'Segoe UI',
fontSize: 20,
color: const Color(0xff707070),
),
textAlign: TextAlign.left,
),
),
],
)
}
}
,
);
in the // pubspec.yaml
dependencies:
adobe_xd: ^2.0.0
flutter:
sdk: flutter