flutter_class_parser 0.2.6
flutter_class_parser: ^0.2.6 copied to clipboard
A package for serialize and deserialize common UI data classes in Flutter.
[0.0.1]. #
Added basic serialization support for Flutter UI data classes.
[0.0.2]. #
Update license.
[0.0.3]. #
Avoid using runtimeType.
[0.0.4]. #
Add borderStyle parsing.
[0.0.5]. #
Fix Alignment parsing.
[0.0.6]. #
Fix Alignment parsing.
[0.0.7]. #
Add font weight parsing.
[0.0.8]. #
Redo enum and Curve parsing.
[0.0.9]. #
MouseCursor and Matrix4.
[0.1.0]. #
Fix int to double conversion
[0.1.1]. #
Update SDK dependence
[0.1.2]. #
Fix int to double conversion
[0.1.3]. #
Image provider parsing
[0.1.4]. #
ImageFilter parsing
[0.1.5]. #
StrokeJoin, StrokeCap parsing
[0.1.6]. #
EdgeInsets, Shadow parsing
[0.1.7]. #
EdgeInsets, Shadow parsing
[0.1.8]. #
Fix ImageFilter parsing on the web
[0.1.9]. #
Code clean up
[0.2.0]. #
Code restructure
[0.2.1]. #
Code restructure
[0.2.2]. #
Update dependence
[0.2.3]. #
Orientation parse
[0.2.4]. #
Update license.
[0.2.5]. #
Update dependency.
[0.2.6]. #
- Support the latest Flutter stable (3.47). Require Flutter 3.27 or higher.
- Only depend on the Flutter widgets library instead of Material, so the package works with both
package:flutter/material.dartand the standalonematerial_uipackage. - Fix
ColorFilter.toJsoncrashing with theColor.toStringformat introduced in Flutter 3.27. - Fix the tile mode of
ImageFilter.blur, and round trip blur filters created without a tile mode (Flutter 3.29 and higher) instead of parsing them withTileMode.clamp. - Serialize
ColorFilter.matrixfilters. Color filters that can't be serialized are written as{}, whichparseColorFilternow parses asnullinstead of a transparentBlendMode.srcfilter that hid the image. - Fix
Curves.elasticInOutbeing serialized as"elasticOut", and supportCurves.fastEaseInToSlowEaseOutandCurves.easeInOutCubicEmphasized. Alignment.toJsonno longer rounds alignments to one decimal, for exampleAlignment(0.25, 0)was serialized as"(0.3, 0.0)". Values with at most one decimal are serialized as before.- Round trip combined
TextDecorations, such as"combine([underline, lineThrough])", and weights that are not a multiple of 100, such as"FontWeight(450)". parseTextStylenow readswordSpacingandtextBaseline, whichtoJsonalready wrote, and no longer crashes whenfontSizeor other optional values are missing.- Accept integer JSON numbers (
1instead of1.0, as written by the web or by hand) inparseMatrix4,parseImageProviderandRadiusToJsonExtension.fromJson. - Missing numbers no longer crash
parseOffset,parseSize,parseRect,parseEdgeInsets,parseRadiusandparseGradient. They default to zero, or to the default of the gradient constructor. parseAlignmentreturnsnullfor malformed strings instead of throwing.- Add
parseFontStyle. - Serialize enums with
Enum.nameand other values from their fields instead of parsingtoString()where possible. The JSON output is unchanged. - Replace the deprecated
Color.valuewithColor.toARGB32. - Add tests and lints.