Skip to content

A plugin for flutter that you can write declarative syntax(一个可以在Flutter中使用声明式语法的插件)

License

Notifications You must be signed in to change notification settings

maojiu-bb/flutter_declarative_syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Declarative Syntax Example

toListView

Using the toListView based on List to make the List become a ListView

<Widget>[].toListView();

toColumn

Using the toColumn based on List to make the List become a Column

<Widget>[].toColumn();

toRow

Using the toRow based on List to make the List become a Row

<Widget>[].toRow();

toStack

Using the toStack based on List to make the List become a Stack

<Widget>[].toStack();

Add properties and methods using declarative syntax

Text("Flutter Declarative Synrax")
    .withColor(Colors.pink)
    .withFontSize(16)
    .withFontWeight(FontWeight.w600)
    .backgroundColor(Colors.blue);

About

A plugin for flutter that you can write declarative syntax(一个可以在Flutter中使用声明式语法的插件)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages