Skip to content

Commit 3da7fca

Browse files
committed
Reduced by 27 lines
1 parent fb4d073 commit 3da7fca

1 file changed

Lines changed: 5 additions & 33 deletions

File tree

lib/ui_elements/my_list_items.dart

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,8 @@ class MyDesktopAndTabletItem extends StatelessWidget{
3232
alignment: Alignment.center,
3333
child: Stack(
3434
children: [
35-
Center(
36-
child: Text(
37-
title,
38-
style: TextStyle(
39-
fontSize: 16,
40-
fontWeight: FontWeight.bold
41-
),
42-
),
43-
),
44-
Positioned(
45-
bottom: 0,
46-
right: 0,
47-
child: Text(
48-
note,
49-
style: TextStyle(fontSize: 12),
50-
),
51-
),
35+
Center(child: Text(title, style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold))),
36+
Positioned(bottom: 0, right: 0, child: Text(note, style: TextStyle(fontSize: 12))),
5237
],
5338
)
5439
),
@@ -90,26 +75,13 @@ class MyMobileItem extends StatelessWidget {
9075
children: [
9176
Align(
9277
alignment: AlignmentGeometry.centerLeft,
93-
child: Text(
94-
title,
95-
style: TextStyle(
96-
fontSize: 16,
97-
fontWeight: FontWeight.bold
98-
),
99-
),
100-
),
101-
Positioned(
102-
bottom: 0,
103-
right: 0,
104-
child: Text(
105-
note,
106-
style: TextStyle(fontSize: 12),
107-
),
78+
child: Text(title, style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
10879
),
80+
Positioned(bottom: 0, right: 0, child: Text(note, style: TextStyle(fontSize: 12))),
10981
],
11082
)
11183
),
11284
),
11385
);
11486
}
115-
}
87+
}

0 commit comments

Comments
 (0)