LCOV - code coverage report
Current view: top level - lib - about_page.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 37 0.0 %
Date: 2021-01-25 19:20:23 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flutter/material.dart';
       2             : 
       3             : /// This widget is visible when opening the about page from the [MainMenuWidget].
       4             : ///
       5             : /// It displays all the information about the development of the application,
       6             : /// the inspiration sources and tools and SDK used throughout the development process.
       7             : ///
       8             : /// This page uses the package `url_launcher` available at https://pub.dartlang.org/packages/url_launcher
       9             : /// to open up urls in a WebView on both iOS & Android.
      10             : class AboutPage extends StatelessWidget {
      11           0 :   @override
      12             :   Widget build(BuildContext context) {
      13           0 :     return Scaffold(
      14           0 :         appBar: AppBar(
      15             :           centerTitle: false,
      16           0 :           iconTheme: IconThemeData(color: Colors.black.withOpacity(0.54)),
      17             :           elevation: 0.0,
      18           0 :           leading: IconButton(
      19             :             alignment: Alignment.centerLeft,
      20           0 :             icon: Icon(Icons.arrow_back),
      21           0 :             padding: EdgeInsets.only(left: 20.0, right: 20.0),
      22           0 :             color: Colors.black.withOpacity(0.5),
      23           0 :             onPressed: () {
      24           0 :               Navigator.pop(context, true);
      25             :             },
      26             :           ),
      27             :           titleSpacing:
      28             :               9.0, // Note that the icon has 20 on the right due to its padding, so we add 10 to get our desired 29
      29           0 :           title: Text("About",
      30             :               textAlign: TextAlign.left,
      31           0 :               style: TextStyle(fontFamily: "RobotoMedium", fontSize: 20.0)),
      32             :         ),
      33           0 :         body: Padding(
      34           0 :           padding: EdgeInsets.only(top: 30, bottom: 20, left: 20, right: 20),
      35           0 :           child: Column(
      36             :             crossAxisAlignment: CrossAxisAlignment.start,
      37           0 :             children: [
      38           0 :               Text(
      39             :                 "The History of\nEverything",
      40           0 :                 style: TextStyle(
      41             :                   fontFamily: "RobotoMedium",
      42             :                   fontSize: 34.0,
      43             :                 ),
      44             :               ),
      45           0 :               Padding(
      46             :                 padding: const EdgeInsets.only(top: 17.0, bottom: 14.0),
      47           0 :                 child: Text(
      48             :                   "v1.0",
      49           0 :                   style: TextStyle(
      50             :                     fontFamily: "Roboto",
      51             :                     fontSize: 17.0,
      52             :                     height: 1.5,
      53             :                   ),
      54             :                 ),
      55             :               ),
      56           0 :               Expanded(
      57           0 :                   child: Column(children: [
      58           0 :                 RichText(
      59           0 :                     text: TextSpan(
      60           0 :                         style: TextStyle(
      61             :                             fontFamily: "Roboto", fontSize: 17.0, height: 1.5),
      62           0 :                         children: [
      63           0 :                       TextSpan(
      64             :                         text: "The History of Everything is built with ",
      65             :                       ),
      66           0 :                       TextSpan(
      67             :                         text: " by ",
      68             :                       ),
      69           0 :                       TextSpan(
      70             :                         text: ".\n\nInspired by the Kurzgesagt video ",
      71             :                       ),
      72           0 :                       TextSpan(
      73             :                         text: ".",
      74             :                       )
      75             :                     ]))
      76             :               ])),
      77           0 :               Text(
      78             :                 "Designed by",
      79           0 :                 style: TextStyle(
      80             :                     fontFamily: "Roboto",
      81             :                     fontSize: 17.0,
      82             :                     height: 1.5,
      83           0 :                     color: Colors.black.withOpacity(0.5)),
      84             :               ),
      85           0 :               Text(
      86             :                 "Built with",
      87           0 :                 style: TextStyle(
      88             :                     fontFamily: "Roboto",
      89             :                     fontSize: 17.0,
      90             :                     height: 1.5,
      91           0 :                     color: Colors.black.withOpacity(0.5)),
      92             :               ),
      93             :             ],
      94             :           ),
      95             :         ));
      96             :   }
      97             : }

Generated by: LCOV version 1.14