Skip to content

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.

Notifications You must be signed in to change notification settings

robertodevs/zeplin-flutter-extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Logo

Buy Me A Coffee

Flutter Extended Zeplin Extension 💻

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.

Getting started

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.

Output

Sample colors output

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);

Sample text style output:

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,
    );

Sample layer output - (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

      )],
    )
)

Sample layer output - (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,
        )
      ),
    ]
  )
)

Sample layer output - (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

    ) ],

  )
)

Sample layer output - 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

    ) ],

  )
)

Sample layer output - Container with Fill with Opacity

new Container(
  width: 169,
  height: 269,
  decoration: new BoxDecoration(
    color: Color(0xfffbd085).withOpacity(0.46)
  )
)

Sample layer output - 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
    ]
    )
  )
)

Options

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!

Developmentß

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. ß

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •