Added documentation
This commit is contained in:
@@ -7,6 +7,8 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
|
/// A view that displays information about the app, including its name, version,
|
||||||
|
/// privacy policy, imprint, and licenses.
|
||||||
class AboutView extends StatelessWidget {
|
class AboutView extends StatelessWidget {
|
||||||
const AboutView({super.key});
|
const AboutView({super.key});
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ import 'package:cabo_counter/l10n/generated/app_localizations.dart'
|
|||||||
show AppLocalizations;
|
show AppLocalizations;
|
||||||
import 'package:flutter/cupertino.dart';
|
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.
|
||||||
class LicenseDetailView extends StatelessWidget {
|
class LicenseDetailView extends StatelessWidget {
|
||||||
final String title, license;
|
final String title, license;
|
||||||
const LicenseDetailView(
|
const LicenseDetailView(
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_fonts/google_fonts.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.
|
||||||
class LicenseView extends StatelessWidget {
|
class LicenseView extends StatelessWidget {
|
||||||
const LicenseView({super.key});
|
const LicenseView({super.key});
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import 'package:cabo_counter/presentation/views/about/about_view.dart';
|
|||||||
import 'package:cabo_counter/presentation/views/home/main_menu_view.dart';
|
import 'package:cabo_counter/presentation/views/home/main_menu_view.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
/// A view that provides a tabbed interface for navigating between the main menu and the about section.
|
||||||
class TabView extends StatefulWidget {
|
class TabView extends StatefulWidget {
|
||||||
const TabView({super.key});
|
const TabView({super.key});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user