@@ -204,7 +204,7 @@ class _AboutUsScreenState extends State<AboutUsScreen> {
204204 fit: BoxFit .contain,
205205 ),
206206 title: Text (
207- l10n.license ,
207+ l10n.appLicense ,
208208 style: GoogleFonts .sora (
209209 fontSize: 16 ,
210210 fontWeight: FontWeight .w500,
@@ -223,24 +223,42 @@ class _AboutUsScreenState extends State<AboutUsScreen> {
223223 onTap: () => openUrl (
224224 'https://github.com/fossasia/badgemagic-app/blob/development/LICENSE' ),
225225 ),
226- // ListTile(
227- // leading: Image.asset('assets/icons/book.png', height: 40),
228- // title: Text(
229- // 'Library Licenses',
230- // style: GoogleFonts.sora(
231- // fontSize: 16,
232- // fontWeight: FontWeight.w500,
233- // color: Colors.black),
234- // ),
235- // subtitle: Text(
236- // 'Check third-party libs used on Badge Magic.',
237- // style: GoogleFonts.sora(
238- // fontSize: 12,
239- // fontWeight: FontWeight.w500,
240- // color: Colors.grey),
241- // ),
242- // onTap: () => showLicenseDialog(context),
243- // ),
226+ ListTile (
227+ leading: const Icon (
228+ Icons .description_outlined,
229+ size: 38 ,
230+ color: Colors .black,
231+ ),
232+ title: Text (
233+ l10n.openSourceLicenses,
234+ style: GoogleFonts .sora (
235+ fontSize: 16 ,
236+ fontWeight: FontWeight .w500,
237+ color: Colors .black,
238+ ),
239+ ),
240+ subtitle: Text (
241+ l10n.openSourceLicensesDescription,
242+ style: GoogleFonts .sora (
243+ fontSize: 12 ,
244+ fontWeight: FontWeight .w500,
245+ color: Colors .grey,
246+ ),
247+ softWrap: true ,
248+ ),
249+ onTap: () => showLicensePage (
250+ context: context,
251+ applicationName: l10n.appTitle,
252+ applicationIcon: Padding (
253+ padding: const EdgeInsets .all (8.0 ),
254+ child: Image .asset (
255+ 'assets/icons/icon.png' ,
256+ height: 48 ,
257+ fit: BoxFit .contain,
258+ ),
259+ ),
260+ ),
261+ ),
244262 ],
245263 ),
246264 ),
0 commit comments