Skip to content

Commit 5d724f5

Browse files
committed
Lint fixes in demo/
1 parent 9299700 commit 5d724f5

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

demo/lib/use_cases/contextual_controls/contextual_controls.dart

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class _ContextualControlsState extends State<ContextualControls> {
4242
Widget _createBackLayer(BuildContext context) => ListView(
4343
children: [
4444
ListTile(
45-
leading: Column(
45+
leading: const Column(
4646
mainAxisAlignment: MainAxisAlignment.center,
47-
children: const [
47+
children: [
4848
Text(
4949
"Color",
5050
),
@@ -67,9 +67,9 @@ class _ContextualControlsState extends State<ContextualControls> {
6767
),
6868
),
6969
ListTile(
70-
leading: Column(
70+
leading: const Column(
7171
mainAxisAlignment: MainAxisAlignment.center,
72-
children: const [
72+
children: [
7373
Text("Resolution"),
7474
],
7575
),
@@ -87,9 +87,9 @@ class _ContextualControlsState extends State<ContextualControls> {
8787
});
8888
})),
8989
ListTile(
90-
leading: Column(
90+
leading: const Column(
9191
mainAxisAlignment: MainAxisAlignment.center,
92-
children: const [
92+
children: [
9393
Text("RAM"),
9494
],
9595
),
@@ -142,20 +142,20 @@ class _ContextualControlsState extends State<ContextualControls> {
142142
),
143143
Container(
144144
margin: const EdgeInsets.all(8.0),
145-
child: Row(
145+
child: const Row(
146146
mainAxisSize: MainAxisSize.max,
147147
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
148148
children: [
149149
Row(
150-
children: const [
150+
children: [
151151
Icon(Icons.star, color: Colors.grey),
152152
Icon(Icons.star, color: Colors.grey),
153153
Icon(Icons.star, color: Colors.grey),
154154
Icon(Icons.star, color: Colors.grey),
155155
Icon(Icons.star_half, color: Colors.grey),
156156
],
157157
),
158-
const Text(
158+
Text(
159159
"73 Reviews",
160160
style: TextStyle(color: Colors.grey),
161161
)
@@ -186,9 +186,9 @@ class _ContextualControlsState extends State<ContextualControls> {
186186
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
187187
mainAxisSize: MainAxisSize.max,
188188
children: [
189-
Column(
189+
const Column(
190190
mainAxisAlignment: MainAxisAlignment.center,
191-
children: const [Text("Resolution")],
191+
children: [Text("Resolution")],
192192
),
193193
Text(
194194
"${_resolution.toString()}\"",
@@ -204,9 +204,9 @@ class _ContextualControlsState extends State<ContextualControls> {
204204
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
205205
mainAxisSize: MainAxisSize.max,
206206
children: [
207-
Column(
207+
const Column(
208208
mainAxisAlignment: MainAxisAlignment.center,
209-
children: const [Text("RAM")],
209+
children: [Text("RAM")],
210210
),
211211
Text(
212212
"${_ram.toString()} GB",

demo/lib/use_cases/contextual_info/contextual_info.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,53 +23,53 @@ class ContextualInfo extends StatelessWidget {
2323
}
2424

2525
Widget _createBackLayer(BuildContext context) => ListView(
26-
children: [
26+
children: const [
2727
ListTile(
2828
leading: Column(
2929
mainAxisAlignment: MainAxisAlignment.center,
30-
children: const [
30+
children: [
3131
Text(
3232
"Name",
3333
),
3434
],
3535
),
36-
title: const Text(
36+
title: Text(
3737
"Laptop Model X",
3838
style: TextStyle(fontWeight: FontWeight.bold),
3939
),
4040
),
4141
ListTile(
4242
leading: Column(
4343
mainAxisAlignment: MainAxisAlignment.center,
44-
children: const [
44+
children: [
4545
Text("Year of production"),
4646
],
4747
),
48-
title: const Text(
48+
title: Text(
4949
"2019",
5050
style: TextStyle(fontWeight: FontWeight.bold),
5151
),
5252
),
5353
ListTile(
5454
leading: Column(
5555
mainAxisAlignment: MainAxisAlignment.center,
56-
children: const [
56+
children: [
5757
Text("Place of Manufacture"),
5858
],
5959
),
60-
title: const Text(
60+
title: Text(
6161
"USA",
6262
style: TextStyle(fontWeight: FontWeight.bold),
6363
),
6464
),
6565
ListTile(
6666
leading: Column(
6767
mainAxisAlignment: MainAxisAlignment.center,
68-
children: const [
68+
children: [
6969
Text("Price"),
7070
],
7171
),
72-
title: const Text(
72+
title: Text(
7373
"\$999",
7474
style: TextStyle(fontWeight: FontWeight.bold),
7575
),
@@ -118,20 +118,20 @@ class ContextualInfo extends StatelessWidget {
118118
),
119119
Container(
120120
margin: const EdgeInsets.all(8.0),
121-
child: Row(
121+
child: const Row(
122122
mainAxisSize: MainAxisSize.max,
123123
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
124124
children: [
125125
Row(
126-
children: const [
126+
children: [
127127
Icon(Icons.star, color: Colors.grey),
128128
Icon(Icons.star, color: Colors.grey),
129129
Icon(Icons.star, color: Colors.grey),
130130
Icon(Icons.star, color: Colors.grey),
131131
Icon(Icons.star_half, color: Colors.grey),
132132
],
133133
),
134-
const Text(
134+
Text(
135135
"73 Reviews",
136136
style: TextStyle(color: Colors.grey),
137137
)

0 commit comments

Comments
 (0)