@@ -31,107 +31,109 @@ class AboutPage extends ConsumerWidget {
31
31
final l10n = AppLocalizations .of (context);
32
32
return ResponsiveDialog (
33
33
title: Text (l10n.s_about),
34
- builder: (context, _) => Padding (
35
- padding: const EdgeInsets .symmetric (vertical: 32 ),
36
- child: Column (
37
- mainAxisSize: MainAxisSize .min,
38
- children: [
39
- Image .asset ('assets/graphics/app-icon.png' , scale: 1 / 0.75 ),
40
- Padding (
41
- padding: const EdgeInsets .only (top: 24.0 ),
42
- child: Text (
43
- l10n.app_name,
44
- style: Theme .of (context).textTheme.titleMedium,
45
- ),
46
- ),
47
- const Text (version),
48
- const Text ('' ),
49
- Row (
34
+ builder:
35
+ (context, _) => Padding (
36
+ padding: const EdgeInsets .symmetric (vertical: 32 ),
37
+ child: Column (
50
38
mainAxisSize: MainAxisSize .min,
51
39
children: [
52
- TextButton (
40
+ Image .asset ('assets/graphics/app-icon.png' , scale: 1 / 0.75 ),
41
+ Padding (
42
+ padding: const EdgeInsets .only (top: 24.0 ),
53
43
child: Text (
54
- key: tosButton,
55
- l10n.s_terms_of_use,
56
- style: const TextStyle (
57
- decoration: TextDecoration .underline,
58
- ),
44
+ l10n.app_name,
45
+ style: Theme .of (context).textTheme.titleMedium,
59
46
),
60
- onPressed: () {
61
- launchTermsUrl ();
62
- },
47
+ ),
48
+ const Text (version),
49
+ const Text ('' ),
50
+ Row (
51
+ mainAxisSize: MainAxisSize .min,
52
+ children: [
53
+ TextButton (
54
+ child: Text (
55
+ key: tosButton,
56
+ l10n.s_terms_of_use,
57
+ style: const TextStyle (
58
+ decoration: TextDecoration .underline,
59
+ ),
60
+ ),
61
+ onPressed: () {
62
+ launchTermsUrl ();
63
+ },
64
+ ),
65
+ TextButton (
66
+ child: Text (
67
+ key: privacyButton,
68
+ l10n.s_privacy_policy,
69
+ style: const TextStyle (
70
+ decoration: TextDecoration .underline,
71
+ ),
72
+ ),
73
+ onPressed: () {
74
+ launchPrivacyUrl ();
75
+ },
76
+ ),
77
+ ],
63
78
),
64
79
TextButton (
65
80
child: Text (
66
- key: privacyButton ,
67
- l10n.s_privacy_policy ,
81
+ key: licensesButton ,
82
+ l10n.s_open_src_licenses ,
68
83
style: const TextStyle (
69
84
decoration: TextDecoration .underline,
70
85
),
71
86
),
72
87
onPressed: () {
73
- launchPrivacyUrl ();
88
+ Navigator .of (context).push (
89
+ MaterialPageRoute <void >(
90
+ builder:
91
+ (BuildContext context) =>
92
+ const LicensePage (applicationVersion: version),
93
+ settings: const RouteSettings (name: 'licenses' ),
94
+ ),
95
+ );
74
96
},
75
97
),
76
- ],
77
- ),
78
- TextButton (
79
- child: Text (
80
- key: licensesButton,
81
- l10n.s_open_src_licenses,
82
- style: const TextStyle (
83
- decoration: TextDecoration .underline,
98
+ const Padding (
99
+ padding: EdgeInsets .only (top: 24.0 , bottom: 8.0 ),
100
+ child: Divider (),
84
101
),
85
- ),
86
- onPressed: () {
87
- Navigator .of (context).push (
88
- MaterialPageRoute <void >(
89
- builder: (BuildContext context) =>
90
- const LicensePage (applicationVersion: version),
91
- settings: const RouteSettings (name: 'licenses' ),
92
- ),
93
- );
94
- },
95
- ),
96
- const Padding (
97
- padding: EdgeInsets .only (top: 24.0 , bottom: 8.0 ),
98
- child: Divider (),
99
- ),
100
- Padding (
101
- padding: const EdgeInsets .symmetric (vertical: 16.0 ),
102
- child: Text (
103
- key: helpButton,
104
- l10n.s_help_and_feedback,
105
- style: Theme .of (context).textTheme.titleMedium,
106
- ),
107
- ),
108
- Row (
109
- mainAxisSize: MainAxisSize .min,
110
- children: [
111
- TextButton (
112
- onPressed: launchDocumentationUrl,
102
+ Padding (
103
+ padding: const EdgeInsets .symmetric (vertical: 16.0 ),
113
104
child: Text (
114
- key: userGuideButton,
115
- l10n.s_user_guide,
116
- style: const TextStyle (
117
- decoration: TextDecoration .underline,
118
- ),
105
+ key: helpButton,
106
+ l10n.s_help_and_feedback,
107
+ style: Theme .of (context).textTheme.titleMedium,
119
108
),
120
109
),
121
- TextButton (
122
- onPressed: launchHelpUrl,
123
- child: Text (
124
- l10n.s_i_need_help,
125
- style: const TextStyle (
126
- decoration: TextDecoration .underline,
110
+ Row (
111
+ mainAxisSize: MainAxisSize .min,
112
+ children: [
113
+ TextButton (
114
+ onPressed: launchDocumentationUrl,
115
+ child: Text (
116
+ key: userGuideButton,
117
+ l10n.s_user_guide,
118
+ style: const TextStyle (
119
+ decoration: TextDecoration .underline,
120
+ ),
121
+ ),
127
122
),
128
- ),
123
+ TextButton (
124
+ onPressed: launchHelpUrl,
125
+ child: Text (
126
+ l10n.s_i_need_help,
127
+ style: const TextStyle (
128
+ decoration: TextDecoration .underline,
129
+ ),
130
+ ),
131
+ ),
132
+ ],
129
133
),
130
134
],
131
135
),
132
- ],
133
- ),
134
- ),
136
+ ),
135
137
);
136
138
}
137
139
}
0 commit comments