We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8c6f0d commit f5b5894Copy full SHA for f5b5894
lib/constrait_layout/constraint_layout.dart
@@ -191,7 +191,7 @@ class Constrained extends ParentDataWidget<_ConstraintBoxData> {
191
final bool centerHorizontal;
192
final bool centerVertical;
193
194
- final int zIndex;
+ final int? zIndex;
195
final Offset translate;
196
final bool translateDependency;
197
@@ -228,7 +228,7 @@ class Constrained extends ParentDataWidget<_ConstraintBoxData> {
228
this.centerVertical = false,
229
this.horizontalBias = 0.5,
230
this.verticalBias = 0.5,
231
- this.zIndex = 0,
+ this.zIndex, // default is child index
232
this.translate = Offset.zero,
233
this.translateDependency = false,
234
}) : super(
0 commit comments