Added comments

This commit is contained in:
2025-08-19 19:18:31 +02:00
parent 2cc7253626
commit af92aa621a
23 changed files with 163 additions and 31 deletions

View File

@@ -56,7 +56,7 @@ class AboutView extends StatelessWidget {
sizeStyle: CupertinoButtonSize.medium,
padding: EdgeInsets.zero,
child: Text(AppLocalizations.of(context).imprint),
onPressed: () => launchUrl(Uri.parse(Constants.kImprintLink)),
onPressed: () => launchUrl(Uri.parse(Constants.kLegalLink)),
),
CupertinoButton(
sizeStyle: CupertinoButtonSize.medium,

View File

@@ -3,8 +3,13 @@ import 'package:cabo_counter/l10n/generated/app_localizations.dart'
show AppLocalizations;
import 'package:flutter/cupertino.dart';
/// A view that displays the details of a specific open source software license.
/// It shows the title and the full license text in a scrollable view.
/// Displays the details of a specific open source software license in a Cupertino-style view.
///
/// This view presents the license title and its full text in a scrollable layout.
///
/// Required parameters:
/// - [title]: The name of the license.
/// - [license]: The full license text to display.
class LicenseDetailView extends StatelessWidget {
final String title, license;
const LicenseDetailView(

View File

@@ -6,8 +6,14 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
/// A view that displays a list of the open source software licenses used in the app.
/// It allows users to tap on a license to view its details in a separate screen.
/// Displays a list of open source software licenses used in the app.
///
/// Users can tap on a license to view its details on a separate screen.
/// This view uses a Cupertino design and supports localization.
///
/// See also:
/// - [LicenseDetailView] for displaying license details.
/// - [ossLicenses] for the list of licenses.
class LicenseView extends StatelessWidget {
const LicenseView({super.key});