Skip to content

Commit 0c6b81e

Browse files
add expanded mapping for flutter
1 parent 9c1ecf0 commit 0c6b81e

File tree

1 file changed

+5
-0
lines changed
  • packages/designto-flutter/tokens-to-flutter-widget

1 file changed

+5
-0
lines changed

packages/designto-flutter/tokens-to-flutter-widget/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ function compose(
192192
angle: widget.rotation,
193193
child: handleChild(widget.child),
194194
});
195+
} else if (widget instanceof core.Expanded) {
196+
thisFlutterWidget = new flutter.Expanded({
197+
flex: widget.flex,
198+
child: handleChild(widget.child),
199+
});
195200
}
196201

197202
// ----- region clip path ------

0 commit comments

Comments
 (0)