Updated license tile and adjusted settings tile accordingly
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 2m37s
Pull Request Pipeline / test (pull_request) Successful in 2m36s

This commit is contained in:
2026-01-11 16:33:56 +01:00
parent 9248284292
commit d7f08c5f50
6 changed files with 131 additions and 41 deletions

View File

@@ -22,30 +22,54 @@ class LicenseDetailView extends StatelessWidget {
Center(
child: Column(
children: [
Text(
package.name,
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
margin: const EdgeInsetsGeometry.only(right: 15),
width: 60,
height: 60,
decoration: BoxDecoration(
color: CustomTheme.primaryColor.withAlpha(40),
borderRadius: BorderRadius.circular(10),
),
child: Icon(
Icons.description,
color: CustomTheme.primaryColor,
size: 30,
),
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
package.name,
textAlign: TextAlign.left,
style: const TextStyle(
height: 0,
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
if (package.version != null) ...[
Text(
'Version ${package.version}',
textAlign: TextAlign.left,
style: TextStyle(
fontSize: 14,
color: Colors.grey.shade300,
),
),
],
],
),
],
),
if (package.version != null) ...[
const SizedBox(height: 8),
Text(
'Version ${package.version}',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 14,
color: Colors.grey.shade300,
fontWeight: FontWeight.bold,
),
),
],
if (package.authors.isNotEmpty) ...[
const SizedBox(height: 8),
Text(
SelectableText(
package.authors.join(', '),
textAlign: TextAlign.center,
style: TextStyle(
@@ -57,7 +81,7 @@ class LicenseDetailView extends StatelessWidget {
if (package.homepage != null &&
package.homepage!.isNotEmpty) ...[
const SizedBox(height: 4),
Text(
SelectableText(
package.homepage!,
textAlign: TextAlign.center,
style: TextStyle(