@@ -25,7 +25,9 @@ class ScienceClubDetailView extends StatelessWidget {
25
25
@PathParam ("id" ) required this .id,
26
26
super .key,
27
27
});
28
+
28
29
final String id;
30
+
29
31
@override
30
32
Widget build (BuildContext context) {
31
33
return Scaffold (
@@ -37,6 +39,7 @@ class ScienceClubDetailView extends StatelessWidget {
37
39
38
40
class _SciClubDetailDataView extends ConsumerWidget {
39
41
const _SciClubDetailDataView (this .id);
42
+
40
43
final String id;
41
44
42
45
@override
@@ -57,11 +60,32 @@ class _SciClubDetailDataView extends ConsumerWidget {
57
60
const SizedBox (height: 8 ),
58
61
Padding (
59
62
padding: const EdgeInsets .symmetric (horizontal: 24 ),
60
- child: Text (
61
- value.name,
62
- style: context.textTheme.headline,
63
- textAlign: TextAlign .center,
63
+ child: RichText (
64
64
maxLines: 2 ,
65
+ overflow: TextOverflow .ellipsis,
66
+ textAlign: TextAlign .center,
67
+ text: TextSpan (
68
+ text: value.name,
69
+ style: context.textTheme.headline,
70
+ children: [
71
+ if (value.source == ScienceClubsViewConfig .source)
72
+ WidgetSpan (
73
+ baseline: TextBaseline .ideographic,
74
+ alignment: PlaceholderAlignment .middle,
75
+ child: SizedBox .square (
76
+ dimension: 16 ,
77
+ child: Padding (
78
+ padding: const EdgeInsets .only (left: 4 ),
79
+ child: Icon (
80
+ Icons .verified_sharp,
81
+ size: 12 ,
82
+ color: context.colorTheme.orangePomegranade,
83
+ ),
84
+ ),
85
+ ),
86
+ ),
87
+ ],
88
+ ),
65
89
),
66
90
),
67
91
const SizedBox (height: 12 ),
0 commit comments