I've created a project under adobe XD and try to import it and export it with supernova, despite the fact that some model aren't compatible i notice that views generated by supernova isn't working :
import 'package:myproject/screen_widget/screen_widget.dart';
import 'package:myproject/values/values.dart';
import 'package:flutter/material.dart';
class ScreenTwoWidget extends StatelessWidget {
void onGroupe4434Pressed(BuildContext context) => Navigator.push(context, MaterialPageRoute(builder: (context) => ScreenWidget()));
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
constraints: BoxConstraints.expand(),
decoration: BoxDecoration(
color: Color.fromARGB(255, 255, 255, 255),
),
child: Stack(
alignment: Alignment.topCenter,
children: [
Positioned(
left: 20,
top: 56,
right: -153,
child: Stack(
children: [
Positioned(
left: 5,
top: 0,
right: 0,
bottom: 0,
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 0,
bottom: 39,
child: Text(
"Lorem ipsum blabla blabla blabla blablal blalblalbl alblalblalblalbla",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 9,
height: 1.2,
),
),
),
Positioned(
left: 227,
top: 0,
right: 0,
bottom: 0,
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 0,
top: 117,
right: 444,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topRight,
child: Container(
width: 162,
height: 45,
margin: EdgeInsets.only(right: 107),
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 19,
right: 15,
child: Text(
"BLABLABLABLA",
textAlign: TextAlign.center,
style: TextStyle(
color: AppColors.secondaryText,
fontWeight: FontWeight.w400,
fontSize: 22,
),
),
),
Positioned(
left: 0,
right: 0,
child: Image.asset(
"assets/images/groupe-4393.png",
fit: BoxFit.none,
),
),
],
),
),
),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 335,
height: 33,
margin: EdgeInsets.only(top: 76),
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Container(
margin: EdgeInsets.only(left: 12, right: 10),
child: Text(
"BLABLA BLABLA BLABLA",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.accentText,
fontWeight: FontWeight.w400,
fontSize: 16,
),
),
),
],
),
),
),
Align(
alignment: Alignment.topRight,
child: Container(
width: 474,
height: 345,
margin: EdgeInsets.only(top: 54),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Container(
height: 27,
margin: EdgeInsets.only(left: 74),
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Text(
"BLABLA BLA",
textAlign: TextAlign.right,
style: TextStyle(
color: AppColors.secondaryText,
fontWeight: FontWeight.w400,
fontSize: 22,
),
),
),
Spacer(),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 113,
height: 17,
margin: EdgeInsets.only(top: 7),
child: Stack(
alignment: Alignment.centerLeft,
children: [
Positioned(
left: 0,
child: Container(
width: 4,
height: 17,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
Positioned(
left: 0,
right: 0,
child: Container(
height: 2,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
],
),
),
),
],
),
),
Container(
height: 81,
margin: EdgeInsets.only(top: 37, right: 12),
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Text(
"BLABLA BLABLA BLALBALB LABLALBLABLA\n",
textAlign: TextAlign.right,
style: TextStyle(
color: AppColors.secondaryText,
fontWeight: FontWeight.w400,
fontSize: 22,
height: 1.2,
),
),
),
Spacer(),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 113,
height: 41,
margin: EdgeInsets.only(top: 7),
child: Stack(
alignment: Alignment.centerLeft,
children: [
Positioned(
left: 0,
child: Container(
width: 4,
height: 41,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
Positioned(
left: 0,
right: 0,
child: Container(
height: 2,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
],
),
),
),
],
),
),
Container(
height: 81,
margin: EdgeInsets.only(left: 104, top: 12, right: 36),
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Text(
"BLABLAB LABLA\n",
textAlign: TextAlign.right,
style: TextStyle(
color: AppColors.secondaryText,
fontWeight: FontWeight.w400,
fontSize: 22,
height: 1.2,
),
),
),
Spacer(),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 113,
height: 41,
margin: EdgeInsets.only(top: 7),
child: Stack(
alignment: Alignment.centerLeft,
children: [
Positioned(
left: 0,
child: Container(
width: 4,
height: 41,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
Positioned(
left: 0,
right: 0,
child: Container(
height: 2,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
],
),
),
),
],
),
),
Spacer(),
Container(
height: 27,
margin: EdgeInsets.only(left: 181, right: 66, bottom: 40),
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.bottomLeft,
child: Text(
"BLABLA",
textAlign: TextAlign.right,
style: TextStyle(
color: AppColors.secondaryText,
fontWeight: FontWeight.w400,
fontSize: 22,
),
),
),
Spacer(),
Align(
alignment: Alignment.bottomLeft,
child: Container(
width: 113,
height: 17,
margin: EdgeInsets.only(bottom: 4),
child: Stack(
alignment: Alignment.centerLeft,
children: [
Positioned(
left: 0,
child: Container(
width: 4,
height: 17,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
Positioned(
left: 0,
right: 0,
child: Container(
height: 2,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
],
),
),
),
],
),
),
Container(
height: 27,
margin: EdgeInsets.only(left: 51, right: 95),
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.bottomLeft,
child: Text(
"BLABLA",
textAlign: TextAlign.right,
style: TextStyle(
color: AppColors.secondaryText,
fontWeight: FontWeight.w400,
fontSize: 22,
),
),
),
Spacer(),
Align(
alignment: Alignment.bottomLeft,
child: Container(
width: 113,
height: 17,
margin: EdgeInsets.only(bottom: 5),
child: Stack(
alignment: Alignment.centerLeft,
children: [
Positioned(
left: 0,
child: Container(
width: 4,
height: 17,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
Positioned(
left: 0,
right: 0,
child: Container(
height: 2,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
],
),
),
),
],
),
),
],
),
),
),
],
),
),
Positioned(
left: 0,
top: 119,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Text(
"BLABLABLA BLABLA",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 33,
),
),
),
Container(
margin: EdgeInsets.only(top: 11),
child: Text(
"BLABLA LBALB LAL LALAA LALA LALALA LAL LALAALALALAL.\n",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 20,
height: 1.2,
),
),
),
],
),
),
Positioned(
right: 0,
child: Stack(
alignment: Alignment.centerLeft,
children: [
Positioned(
left: 0,
right: 0,
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 2,
right: 0,
child: Image.asset(
"assets/images/rectangle-1719.png",
fit: BoxFit.cover,
),
),
Positioned(
left: 0,
right: 0,
child: Opacity(
opacity: 0.1,
child: Container(
height: 761,
decoration: BoxDecoration(
color: AppColors.primaryBackground,
),
child: Container(),
),
),
),
],
),
),
Positioned(
left: 13,
child: Image.asset(
"assets/images/trac-779.png",
fit: BoxFit.cover,
),
),
],
),
),
Positioned(
top: 46,
right: 177,
bottom: 58,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topRight,
child: Container(
width: 283,
height: 81,
margin: EdgeInsets.only(right: 15),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Container(
width: 48,
height: 41,
margin: EdgeInsets.only(top: 9, right: 12),
child: Stack(
alignment: Alignment.centerRight,
children: [
Positioned(
right: 0,
child: Container(
width: 4,
height: 41,
decoration: BoxDecoration(
color: AppColors.secondaryElement,
),
child: Container(),
),
),
Positioned(
left: 0,
right: 0,
child: Container(
height: 2,
decoration: BoxDecoration(
color: AppColors.secondaryElement,
),
child: Container(),
),
),
],
),
),
),
Align(
alignment: Alignment.topLeft,
child: Text(
"BLABLABLABL BLABLALBALB ABLALBL\n",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.accentText,
fontWeight: FontWeight.w400,
fontSize: 22,
height: 1.2,
),
),
),
],
),
),
),
Spacer(),
Align(
alignment: Alignment.topRight,
child: Container(
width: 202,
height: 38,
child: Image.asset(
"assets/images/groupe-4400.png",
fit: BoxFit.none,
),
),
),
],
),
),
Positioned(
top: 153,
right: 199,
child: FlatButton(
onPressed: () => this.onGroupe4434Pressed(context),
color: Color.fromARGB(0, 0, 0, 0),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(0)),
),
textColor: Color.fromARGB(255, 0, 0, 0),
padding: EdgeInsets.all(0),
child: Text(
"",
textAlign: TextAlign.left,
style: TextStyle(
color: Color.fromARGB(255, 0, 0, 0),
fontWeight: FontWeight.w400,
fontSize: 12,
),
),
),
),
],
),
),
Positioned(
left: 22,
top: 301,
bottom: 96,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Container(
width: 401,
height: 179,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Container(
width: 267,
height: 58,
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Container(
width: 41,
height: 41,
margin: EdgeInsets.only(top: 17),
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 0,
right: 0,
child: Image.asset(
"assets/images/trac-795.png",
fit: BoxFit.none,
),
),
Positioned(
left: 12,
right: 12,
child: Image.asset(
"assets/images/groupe-4417.png",
fit: BoxFit.none,
),
),
],
),
),
),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 206,
height: 56,
margin: EdgeInsets.only(left: 20),
child: Stack(
alignment: Alignment.centerRight,
children: [
Positioned(
left: 0,
right: 19,
child: Text(
"Blabla bla",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 47.88302,
),
),
),
Positioned(
top: 27,
right: 0,
child: Text(
"Blabla",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 20,
),
),
),
],
),
),
),
],
),
),
),
Container(
height: 111,
margin: EdgeInsets.only(top: 10),
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Container(
width: 192,
height: 111,
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 17,
top: 5,
right: 17,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topCenter,
child: Text(
"-32%",
textAlign: TextAlign.center,
style: TextStyle(
color: AppColors.secondaryText,
fontWeight: FontWeight.w400,
fontSize: 40,
),
),
),
Container(
margin: EdgeInsets.only(top: 7),
child: Text(
"blablal blabla\nblablabla",
textAlign: TextAlign.center,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 15,
height: 1.26667,
),
),
),
],
),
),
Positioned(
left: 0,
right: 0,
child: Row(
children: [
Container(
width: 18,
height: 111,
child: Image.asset(
"assets/images/groupe-4407.png",
fit: BoxFit.none,
),
),
Spacer(),
Container(
width: 18,
height: 111,
child: Image.asset(
"assets/images/groupe-4406.png",
fit: BoxFit.none,
),
),
],
),
),
],
),
),
),
Spacer(),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 192,
height: 111,
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 16,
top: 5,
right: 17,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topCenter,
child: Text(
"-17%",
textAlign: TextAlign.center,
style: TextStyle(
color: AppColors.secondaryText,
fontWeight: FontWeight.w400,
fontSize: 40,
),
),
),
Container(
margin: EdgeInsets.only(top: 7),
child: Text(
"blablalbla\nblablalbla",
textAlign: TextAlign.center,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 15,
height: 1.26667,
),
),
),
],
),
),
Positioned(
left: 0,
right: 0,
child: Row(
children: [
Container(
width: 18,
height: 111,
child: Image.asset(
"assets/images/groupe-4412.png",
fit: BoxFit.none,
),
),
Spacer(),
Container(
width: 18,
height: 111,
child: Image.asset(
"assets/images/groupe-4411.png",
fit: BoxFit.none,
),
),
],
),
),
],
),
),
),
],
),
),
],
),
),
),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 236,
height: 56,
margin: EdgeInsets.only(left: 58, top: 20),
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 0,
top: 0,
child: Text(
"Lorem ipsum",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 47.88302,
),
),
),
Positioned(
left: 101,
top: 28,
child: Text(
"blabla",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 20,
),
),
),
],
),
),
),
Spacer(),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 294,
height: 96,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
width: 1,
height: 78,
margin: EdgeInsets.only(top: 1),
child: Image.asset(
"assets/images/groupe-4402.png",
fit: BoxFit.none,
),
),
Expanded(
flex: 1,
child: Align(
alignment: Alignment.centerLeft,
child: Container(
margin: EdgeInsets.only(left: 16),
child: Text(
"blabla blablablablabla blablabla LALALA LAL AL ALA L AL A\n",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.primaryText,
fontWeight: FontWeight.w400,
fontSize: 15,
height: 1.26667,
),
),
),
),
),
],
),
),
),
],
),
),
],
),
),
Positioned(
left: 0,
top: 39,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.topLeft,
child: Container(
width: 219,
height: 76,
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 0,
top: 0,
child: Container(
width: 219,
height: 45,
decoration: BoxDecoration(
color: AppColors.primaryElement,
),
child: Container(),
),
),
Positioned(
left: 16,
top: 3,
child: Text(
"# FLASH INFO\n",
textAlign: TextAlign.left,
style: TextStyle(
color: AppColors.accentText,
fontWeight: FontWeight.w400,
fontSize: 30,
height: 1.2,
),
),
),
],
),
),
),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 184,
height: 170,
margin: EdgeInsets.only(left: 14, top: 8),
child: Image.asset(
"assets/images/rectangle-1725.png",
fit: BoxFit.none,
),
),
),
Align(
alignment: Alignment.topLeft,
child: Container(
width: 41,
height: 41,
margin: EdgeInsets.only(left: 27, top: 227),
decoration: BoxDecoration(
color: Color.fromARGB(255, 63, 62, 66),
borderRadius: BorderRadius.all(Radius.circular(20)),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Container(
height: 25,
margin: EdgeInsets.only(left: 12, right: 11),
child: Image.asset(
"assets/images/groupe-4420.png",
fit: BoxFit.none,
),
),
],
),
),
),
],
),
),
],
),
),
Positioned(
left: -1,
top: -603,
right: -1,
child: Stack(
alignment: Alignment.centerLeft,
children: [
Positioned(
left: 19,
right: 20,
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.centerLeft,
child: Container(
width: 41,
height: 41,
child: Image.asset(
"assets/images/rondelleboutonaction-2.png",
fit: BoxFit.none,
),
),
),
Align(
alignment: Alignment.centerLeft,
child: Container(
width: 41,
height: 41,
margin: EdgeInsets.only(left: 18),
child: Image.asset(
"assets/images/rondelleboutonaction-2.png",
fit: BoxFit.none,
),
),
),
Align(
alignment: Alignment.centerLeft,
child: Container(
width: 41,
height: 41,
margin: EdgeInsets.only(left: 18),
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 0,
right: 0,
child: Image.asset(
"assets/images/rondelleboutonaction-2.png",
fit: BoxFit.none,
),
),
Positioned(
left: 12,
right: 12,
child: Image.asset(
"assets/images/groupe-4423.png",
fit: BoxFit.none,
),
),
],
),
),
),
Align(
alignment: Alignment.centerLeft,
child: Container(
width: 76,
height: 1281,
decoration: BoxDecoration(
color: AppColors.secondaryBackground,
),
child: Container(),
),
),
Spacer(),
Align(
alignment: Alignment.centerLeft,
child: Container(
width: 41,
height: 41,
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 0,
right: 0,
child: Image.asset(
"assets/images/rondelleboutonaction-2.png",
fit: BoxFit.none,
),
),
Positioned(
left: 12,
right: 12,
child: Image.asset(
"assets/images/groupe-4421.png",
fit: BoxFit.none,
),
),
],
),
),
),
],
),
),
Positioned(
left: 30,
child: Image.asset(
"assets/images/groupe-4422.png",
fit: BoxFit.none,
),
),
Positioned(
left: 88,
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Align(
alignment: Alignment.centerLeft,
child: Container(
width: 20,
height: 19,
child: Image.asset(
"assets/images/groupe-4424.png",
fit: BoxFit.none,
),
),
),
Align(
alignment: Alignment.centerLeft,
child: Container(
width: 169,
height: 32,
child: Image.asset(
"assets/images/groupe-4425.png",
fit: BoxFit.none,
),
),
),
],
),
),
Positioned(
left: 0,
top: 662,
right: 0,
child: Stack(
alignment: Alignment.center,
children: [
Positioned(
left: 0,
top: 15,
right: 0,
child: Container(
height: 2,
decoration: BoxDecoration(
color: AppColors.accentElement,
),
child: Container(),
),
),
Positioned(
top: 0,
child: Row(
children: [
Container(
width: 41,
height: 31,
child: Image.asset(
"assets/images/groupe-4426.png",
fit: BoxFit.none,
),
),
Container(
width: 159,
height: 31,
margin: EdgeInsets.only(left: 13),
decoration: BoxDecoration(
color: AppColors.secondaryElement,
border: Border.fromBorderSide(Borders.primaryBorder),
borderRadius: Radii.k10pxRadius,
),
child: Container(),
),
Spacer(),
Container(
width: 71,
height: 31,
decoration: BoxDecoration(
color: AppColors.secondaryElement,
border: Border.fromBorderSide(Borders.primaryBorder),
borderRadius: Radii.k10pxRadius,
),
child: Container(),
),
],
),
),
],
),
),
],
),
),
],
),
),
);
}
}