mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-26 12:31:21 +08:00
Add latest feature/fixes from Lottie-Android (#209)
- Added support for rounded corners on shapes and rects - Add support for text in dynamic properties (ValueDelegate) - Improve stroke with offset - Add support for reversed polystar paths - Enforce order of operations to avoid rounding errors
This commit is contained in:
@ -3,8 +3,19 @@ import '../model/document_data.dart';
|
||||
import 'json_utils.dart';
|
||||
import 'moshi/json_reader.dart';
|
||||
|
||||
final JsonReaderOptions _names = JsonReaderOptions.of(
|
||||
['t', 'f', 's', 'j', 'tr', 'lh', 'ls', 'fc', 'sc', 'sw', 'of']);
|
||||
final JsonReaderOptions _names = JsonReaderOptions.of([
|
||||
't', // 0
|
||||
'f', // 1
|
||||
's', // 2
|
||||
'j', // 3
|
||||
'tr', // 4
|
||||
'lh', // 5
|
||||
'ls', // 6
|
||||
'fc', // 7
|
||||
'sc', // 8
|
||||
'sw', // 9
|
||||
'of', // 10
|
||||
]);
|
||||
|
||||
DocumentData documentDataParser(JsonReader reader, {required double scale}) {
|
||||
String? text;
|
||||
|
Reference in New Issue
Block a user