end of sort_child_properties_last (#82457)
This commit is contained in:
committed by
GitHub
parent
d9db3ea6e6
commit
157bc92d4a
@@ -87,8 +87,8 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
|
||||
children: List<Widget>.generate(rows, (int r) => Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: List<Widget>.generate(cols, (int c) => Container(
|
||||
child: Text('text', style: TextStyle(fontSize: fontSize)),
|
||||
decoration: decoration,
|
||||
child: Text('text', style: TextStyle(fontSize: fontSize)),
|
||||
)),
|
||||
)),
|
||||
),
|
||||
@@ -138,8 +138,8 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
|
||||
return RepaintBoundary(
|
||||
child: AnimatedBuilder(
|
||||
animation: _controller,
|
||||
child: protectChild ? RepaintBoundary(child: child) : child,
|
||||
builder: builder,
|
||||
child: protectChild ? RepaintBoundary(child: child) : child,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -75,16 +75,16 @@ class _MultiWidgetConstructTableState extends State<MultiWidgetConstructTable>
|
||||
key: ValueKey<int>(widgetCounter + label),
|
||||
color: Color.lerp(
|
||||
Colors.white, baseColor, label / totalLength),
|
||||
child: Text('${widgetCounter + label}'),
|
||||
constraints: BoxConstraints.expand(height: height),
|
||||
child: Text('${widgetCounter + label}'),
|
||||
)
|
||||
: MyContainer(
|
||||
// This key forces rebuilding the element
|
||||
key: ValueKey<int>(widgetCounter + label),
|
||||
color: Color.lerp(
|
||||
Colors.white, baseColor, label / totalLength),
|
||||
child: Text('${widgetCounter + label}'),
|
||||
constraints: BoxConstraints.expand(height: height),
|
||||
child: Text('${widgetCounter + label}'),
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -109,8 +109,8 @@ class MyContainer extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
color: color,
|
||||
child: child,
|
||||
constraints: constraints,
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user