Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -478,19 +478,20 @@ class _StoryOfYourFlexWidgetState extends State<StoryOfYourFlexWidget> {
// the type is dependent on the `axis` parameter
// if the axis is the main axis the type should be [MainAxisAlignment]
// if the axis is the cross axis the type should be [CrossAxisAlignment]
if (axis == direction) {
properties.mainAxisAlignment = newSelection;
} else {
properties.crossAxisAlignment = newSelection;
}
setState(() {
if (axis == direction) {
properties.mainAxisAlignment = newSelection;
} else {
properties.crossAxisAlignment = newSelection;
}
});
final service = await properties.node.inspectorService;
final arg = properties.node.valueRef;
await service.invokeTweakFlexProperties(
arg,
properties.mainAxisAlignment,
properties.crossAxisAlignment,
);
setState(() {});
},
),
),
Expand Down