1
+ import 'package:cse_archive/app/constants/icons.dart' ;
1
2
import 'package:cse_archive/app/constants/links.dart' ;
2
3
import 'package:cse_archive/app/constants/sizes.dart' ;
3
4
import 'package:cse_archive/app/constants/strings.dart' ;
@@ -46,24 +47,35 @@ void showSupportDialog({required BuildContext context}) {
46
47
children: [
47
48
const TextSpan (text: ArchiveStrings .supportDonateDescriptionP1),
48
49
WidgetSpan (
49
- child: Link (
50
- uri: Uri .parse (ArchiveLinks .support),
51
- target: LinkTarget .blank,
52
- builder: (_, followLink) => GestureDetector (
53
- onTap: followLink,
54
- child: MouseRegion (
55
- cursor: SystemMouseCursors .click,
56
- child: Text (
57
- ArchiveStrings .supportDonateDescriptionLink,
58
- style: TextStyle (
59
- fontWeight: FontWeight .w500,
60
- decoration: TextDecoration .underline,
61
- decorationColor:
62
- context.secondaryColor.withOpacity (0.5 ),
50
+ child: Row (
51
+ mainAxisSize: MainAxisSize .min,
52
+ crossAxisAlignment: CrossAxisAlignment .center,
53
+ children: [
54
+ Link (
55
+ uri: Uri .parse (ArchiveLinks .support),
56
+ target: LinkTarget .blank,
57
+ builder: (_, followLink) => GestureDetector (
58
+ onTap: followLink,
59
+ child: MouseRegion (
60
+ cursor: SystemMouseCursors .click,
61
+ child: Text (
62
+ ArchiveStrings .supportDonateDescriptionLink,
63
+ style: TextStyle (
64
+ fontWeight: FontWeight .w500,
65
+ decoration: TextDecoration .underline,
66
+ decorationColor:
67
+ context.secondaryColor.withOpacity (0.5 ),
68
+ ),
69
+ ),
63
70
),
64
71
),
65
72
),
66
- ),
73
+ Icon (
74
+ ArchiveIcons .externalLink,
75
+ color: context.secondaryColor,
76
+ size: textStyle.fontSize,
77
+ ),
78
+ ],
67
79
),
68
80
),
69
81
const TextSpan (text: ArchiveStrings .supportDonateDescriptionP2),
@@ -88,24 +100,35 @@ void showSupportDialog({required BuildContext context}) {
88
100
children: [
89
101
const TextSpan (text: ArchiveStrings .supportOtherCase1P1),
90
102
WidgetSpan (
91
- child: Link (
92
- uri: Uri .parse (ArchiveLinks .projectRepos),
93
- target: LinkTarget .blank,
94
- builder: (_, followLink) => GestureDetector (
95
- onTap: followLink,
96
- child: MouseRegion (
97
- cursor: SystemMouseCursors .click,
98
- child: Text (
99
- ArchiveStrings .supportOtherCase1Repos,
100
- style: TextStyle (
101
- fontWeight: FontWeight .w500,
102
- decoration: TextDecoration .underline,
103
- decorationColor:
104
- context.secondaryColor.withOpacity (0.5 ),
103
+ child: Row (
104
+ mainAxisSize: MainAxisSize .min,
105
+ crossAxisAlignment: CrossAxisAlignment .center,
106
+ children: [
107
+ Link (
108
+ uri: Uri .parse (ArchiveLinks .projectRepos),
109
+ target: LinkTarget .blank,
110
+ builder: (_, followLink) => GestureDetector (
111
+ onTap: followLink,
112
+ child: MouseRegion (
113
+ cursor: SystemMouseCursors .click,
114
+ child: Text (
115
+ ArchiveStrings .supportOtherCase1Repos,
116
+ style: TextStyle (
117
+ fontWeight: FontWeight .w500,
118
+ decoration: TextDecoration .underline,
119
+ decorationColor:
120
+ context.secondaryColor.withOpacity (0.5 ),
121
+ ),
122
+ ),
105
123
),
106
124
),
107
125
),
108
- ),
126
+ Icon (
127
+ ArchiveIcons .externalLink,
128
+ color: context.secondaryColor,
129
+ size: textStyle.fontSize,
130
+ ),
131
+ ],
109
132
),
110
133
),
111
134
const TextSpan (text: ArchiveStrings .supportOtherCase1P2),
0 commit comments