LCOV - code coverage report
Current view: top level - widgets/calendar_header - calendar_header.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 16 16 100.0 %
Date: 2022-10-19 14:19:28 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flutter/material.dart';
       2             : 
       3             : class CalenderHeader extends StatelessWidget {
       4             :   final VoidCallback onPressedNext;
       5             :   final VoidCallback onPressedPrevious;
       6             :   final Widget header;
       7             : 
       8             :   final Widget iconLeft;
       9             :   final Widget iconRight;
      10             :   final EdgeInsets padding;
      11             : 
      12           2 :   const CalenderHeader({
      13             :     required this.onPressedNext,
      14             :     required this.onPressedPrevious,
      15             :     required this.header,
      16             :     required this.iconLeft,
      17             :     required this.iconRight,
      18             :     required this.padding,
      19             :     super.key,
      20             :   });
      21             : 
      22           2 :   @override
      23             :   Widget build(BuildContext context) {
      24           2 :     return Padding(
      25           2 :       padding: this.padding,
      26           2 :       child: Row(
      27           2 :         children: [
      28           2 :           Padding(
      29           2 :             padding: this.padding,
      30           2 :             child: GestureDetector(
      31           2 :               onTap: this.onPressedPrevious,
      32           2 :               child: this.iconLeft,
      33             :             ),
      34             :           ),
      35           6 :           Expanded(child: Center(child: this.header)),
      36           2 :           Padding(
      37             :             padding: const EdgeInsets.all(8.0),
      38           2 :             child: GestureDetector(
      39           2 :               onTap: this.onPressedNext,
      40           2 :               child: this.iconRight,
      41             :             ),
      42             :           ),
      43             :         ],
      44             :       ),
      45             :     );
      46             :   }
      47             : }

Generated by: LCOV version 1.16