Make Flex,Row,Column const for real (#119673)
* Make Flex,Row,Column const for real * dart fix --apply * fix snippets * fix integration test * add comment
This commit is contained in:
committed by
GitHub
parent
3f986e4238
commit
b0f1714b7b
@@ -12,10 +12,10 @@ class CubicBezierPage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
return const Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: const <Widget>[
|
||||
children: <Widget>[
|
||||
Bezier(Colors.amber, 1.0),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -88,9 +88,9 @@ class StackSizePage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Material(
|
||||
return const Material(
|
||||
child: Column(
|
||||
children: const <Widget>[
|
||||
children: <Widget>[
|
||||
SizedBox(
|
||||
width: 200,
|
||||
height: 100,
|
||||
|
||||
@@ -9,10 +9,10 @@ class TextPage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Material(
|
||||
return const Material(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: const <Widget>[
|
||||
children: <Widget>[
|
||||
SizedBox(
|
||||
width: 200,
|
||||
height: 100,
|
||||
|
||||
@@ -20,10 +20,10 @@ class BenchSimpleLazyTextScroll extends WidgetRecorder {
|
||||
|
||||
@override
|
||||
Widget createWidget() {
|
||||
return Directionality(
|
||||
return const Directionality(
|
||||
textDirection: TextDirection.ltr,
|
||||
child: Row(
|
||||
children: const <Widget>[
|
||||
children: <Widget>[
|
||||
Flexible(
|
||||
child: _TestScrollingWidget(
|
||||
initialScrollOffset: 0,
|
||||
|
||||
Reference in New Issue
Block a user