Enable sort_child_properties_last lint (#91585)
This commit is contained in:
@@ -37,9 +37,9 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
width: 300,
|
||||
color: Colors.red,
|
||||
child: FittedBox(
|
||||
fit: BoxFit.fill,
|
||||
child: Image.network(
|
||||
'https://flutter.github.io/assets-for-api-docs/assets/widgets/owl-2.jpg'),
|
||||
fit: BoxFit.fill,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,15 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
body: Center(
|
||||
child: PhysicalShape(
|
||||
elevation: 5.0,
|
||||
clipper: ShapeBorderClipper(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
),
|
||||
),
|
||||
color: Colors.orange,
|
||||
child: const SizedBox(
|
||||
height: 200.0,
|
||||
width: 200.0,
|
||||
child: Center(
|
||||
child: Text(
|
||||
'Hello, World!',
|
||||
@@ -44,14 +52,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
height: 200.0,
|
||||
width: 200.0,
|
||||
),
|
||||
clipper: ShapeBorderClipper(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
)),
|
||||
color: Colors.orange,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user