Corrected typo

This commit is contained in:
2025-08-05 14:04:13 +02:00
parent bd0c2e7944
commit 344aa970cd
2 changed files with 7 additions and 7 deletions

View File

@@ -3,10 +3,10 @@ import 'package:cabo_counter/l10n/generated/app_localizations.dart'
show AppLocalizations; show AppLocalizations;
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
class LicenceDetailView extends StatelessWidget { class LicenseDetailView extends StatelessWidget {
final String title, licence; final String title, license;
const LicenceDetailView( const LicenseDetailView(
{super.key, required this.title, required this.licence}); {super.key, required this.title, required this.license});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@@ -44,7 +44,7 @@ class LicenceDetailView extends StatelessWidget {
color: CustomTheme.buttonBackgroundColor, color: CustomTheme.buttonBackgroundColor,
borderRadius: BorderRadius.circular(16)), borderRadius: BorderRadius.circular(16)),
child: Text( child: Text(
licence, license,
style: const TextStyle(fontSize: 15), style: const TextStyle(fontSize: 15),
), ),
) )

View File

@@ -33,10 +33,10 @@ class LicenseView extends StatelessWidget {
Navigator.push( Navigator.push(
context, context,
CupertinoPageRoute( CupertinoPageRoute(
builder: (_) => LicenceDetailView( builder: (_) => LicenseDetailView(
title: ossLicenses[index].name[0].toUpperCase() + title: ossLicenses[index].name[0].toUpperCase() +
ossLicenses[index].name.substring(1), ossLicenses[index].name.substring(1),
licence: ossLicenses[index].license!, license: ossLicenses[index].license!,
), ),
), ),
); );