File tree Expand file tree Collapse file tree 2 files changed +12
-22
lines changed
lib/features/announcements/widgets Expand file tree Collapse file tree 2 files changed +12
-22
lines changed Original file line number Diff line number Diff line change @@ -30,33 +30,25 @@ class AnnouncementListItem extends StatelessWidget {
30
30
padding: const EdgeInsets .all (8.0 ),
31
31
child: Stack (
32
32
children: < Widget > [
33
- Row (
33
+ Column (
34
34
children: < Widget > [
35
35
if (announcement.image != null ) ...[
36
- PNetworkImage (
37
- announcement.image,
38
- width: 80.0 ,
36
+ Expanded (
37
+ child: PNetworkImage (
38
+ announcement.image,
39
+ ),
39
40
),
40
- const SizedBox (width: 10.0 ),
41
41
],
42
- Expanded (
43
- child: Column (
44
- mainAxisAlignment: MainAxisAlignment .center,
45
- crossAxisAlignment: CrossAxisAlignment .start,
46
- children: < Widget > [
47
- Text (
48
- announcement.title,
49
- style: boldText,
50
- ),
51
- const SizedBox (height: 5.0 ),
52
- ],
53
- ),
42
+ const SizedBox (height: 10.0 ),
43
+ Text (
44
+ announcement.title,
45
+ style: boldText,
54
46
),
47
+ const SizedBox (height: 10.0 ),
55
48
],
56
49
),
57
50
Align (
58
- alignment: Alignment .bottomRight,
59
- child: Icon (Icons .open_in_new)),
51
+ alignment: Alignment .topRight, child: Icon (Icons .open_in_new)),
60
52
],
61
53
),
62
54
),
Original file line number Diff line number Diff line change @@ -20,11 +20,9 @@ class AnnouncementSlider extends StatelessWidget {
20
20
@override
21
21
Widget build (BuildContext context) {
22
22
return Container (
23
- height: 170 ,
24
- // color: Theme.of(context).primaryColor,
23
+ height: 250 ,
25
24
child: Swiper (
26
25
viewportFraction: 0.8 ,
27
- itemHeight: 120 ,
28
26
itemCount: news.length,
29
27
loop: false ,
30
28
itemBuilder: (context, index) {
You can’t perform that action at this time.
0 commit comments