LCOV - code coverage report
Current view: top level - lib/projects/widgets/project-detail/buttons - use_case_document_button.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 5 0.0 %
Date: 2022-03-03 12:16:13 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flutter/material.dart';
       2             : 
       3             : import 'package:redfire/actions.dart';
       4             : import 'package:redfire/extensions.dart';
       5             : 
       6             : class UseCaseDocumentButton extends StatelessWidget {
       7             :   final String? documentId;
       8           0 :   const UseCaseDocumentButton(this.documentId, {Key? key}) : super(key: key);
       9             : 
      10           0 :   @override
      11             :   Widget build(BuildContext context) {
      12             :     // if (folderId == null) return
      13           0 :     final documentURL = 'https://docs.google.com/document/d/$documentId/edit';
      14           0 :     return IconButton(
      15             :       icon: const Icon(Icons.text_snippet),
      16           0 :       onPressed: () => context.dispatch(LaunchUrlAction(url: documentURL)),
      17             :     );
      18             :   }
      19             : }
      20             : 
      21             : class LaunchUrlAAction {}

Generated by: LCOV version 1.13