Corrected typo
This commit is contained in:
@@ -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),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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!,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user