This is about a Flutter Extension for Zeplin program, we can select layers, font Styles and color from our Zeplin Projects and convert them into DART code directly. Click on the layer and you will have all properties about Containers, Gradients, RichText, Shadows, etc.
This is a new Flutter Extended version of the actual extension to help a lot of people who need more components than TextStyles and Colors and RichTexts. With this new one you have the opportunity to have more info about Widgets, for example, generate Container elements, BoxDecoration Widget with Shadows, Linear Gradients, Fills, Borders, Opacity and several components more. Coming soon RadialGradient and SweapGradient and also Components as buttons and others.
Add the extension to your project from extensions.zeplin.io, then test the extension and give me your comments about possible improvements. I will try giving frequently support to this extension.
const Color black = const Color(0xff000000);
const Color white = const Color(0xffffffff);
const Color cloudyBlue = const Color(0xffbec4cd);
const Color black = const Color(0xff333333);
const Color blushPink = const Color(0xffff8993);
const TextStyle title = const TextStyle(
fontFamily: 'Montserrat',
color: Color(0xff000000),
fontSize: 14,
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
);
const TextStyle PingFangSC—14pt = const TextStyle(
fontFamily: 'PingFangSC',
color: Color(0xff000000),
fontSize: 14,
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
);
(Text with Shadows)
new Text("Color",
style: TextStyle(
fontFamily: 'Montserrat',
color: Color(0xfffefefe),
fontSize: 10,
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
shadows: [BoxShadow(
color: Color(0x29646464),
offset: Offset(0,3),
blurRadius: 6,
spreadRadius: 0
)],
)
)
(Text with multiple Styles)
RichText(
text: new TextSpan(
children: [
new TextSpan(
text: "EN | ",
style: TextStyle(
fontFamily: 'Segoe UI',
color: Color(0xfff4b326),
fontSize: 12,
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
)
),
new TextSpan(
text: "CH",
style: TextStyle(
fontFamily: 'Segoe UI',
color: Color(0xff444242),
fontSize: 12,
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
)
),
]
)
)
(Container with Borders and Shadows)
new Container(
width: 128,
height: 172,
decoration: new BoxDecoration(
color: Color(0xff1b1b1b),
border: Border.all(
color: Color(0xfff19528),
width: 1
),
boxShadow: [BoxShadow(
color: Color(0x29000000),
offset: Offset(0,3),
blurRadius: 6,
spreadRadius: 0
) ],
)
)
Container with Circular Borders
new Container(
width: 103,
height: 36,
decoration: new BoxDecoration(
color: Color(0xffd7d6d6),
borderRadius: BorderRadius.circular(25),
boxShadow: [
BoxShadow(
color: Color(0x29000000),
offset: Offset(0,3),
blurRadius: 6,
spreadRadius: 0
) ],
)
)
Container with Fill with Opacity
new Container(
width: 169,
height: 269,
decoration: new BoxDecoration(
color: Color(0xfffbd085).withOpacity(0.46)
)
)
Container with LinearGradient
new Container(
width: 30.492919921875,
height: 30.4931640625,
decoration: new BoxDecoration(
gradient: LinearGradient(
colors: [
Color(0xfff8362d),
Color(0xff801c18),
Color(0xff7c1b17) ],
stops: [
0,
0.7395932078361511,
1
]
)
)
)
There are several features to modify in the future, first of them will be add more options to Gradients, Radial and Sweap Gradients. If this is extension is useful for you and you want to support me buy me a coffe!
This extension is developed using zem, Zeplin Extension Manager. zem is a command line tool that lets you quickly create, test and publish extensions.
To learn more about creating Zeplin extensions, see documentation. ß