flutter_class_parser

Last updated:

0 purchases

flutter_class_parser Image
flutter_class_parser Images
Add to Cart

Description:

flutter class parser

flutter_class_parser #
A package for serialize and deserialize common UI data classes in Flutter.
Getting Started #
To serialize/deserialize a supported class, use:
var gradient=LinearGradient(colors:[Colors.red, Colors.blue]);
String gradientJson=json.encode(gradient.toJson());
var gradient2=parseGradient(json.decode(gradientJson));
copied to clipboard
Serializaton of built in classes is done using extension methods. Deserializaion, on the other hand, is done
with funtions.
Current Supported Classes #

Color
Orientation
BlendMode
TileMode
Alignment
BoxFit
ImageRepeat
FilterQuality
StackFit
FontWeight
FontStyle
Axis
AxisDirection
TextDecoration
TextDecorationStyle
Clip
Curve
TextOverflow
TextDirection
TextAlign
TextBaseline
FontWeight
MainAxisAlignment
CrossAxisAlignment
WrapAlignment
WrapCrossAlignment
MainAxisSize
VerticalDirection
BorderStyle
StrokeJoin
StrokeCap
Offset
Size
Rect
EdgeInsets
Radius
BorderRadius
Matrix4
SystemMouseCursor
Gradient
Shadow
ImageFilter
ColorFilter
DecorationImage
BoxDecoration
TextStyle

Some class parsing are not fully supported yet. For example,
the Curve class parsing only supports the predefined curves.
You are more than welcomed to contribute and add more classes to the collection.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.