LCOV - code coverage report
Current view: top level - lib/widgets - malformedbubble.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 21 0.0 %
Date: 2024-04-16 06:18:13 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:cwtch/cwtch_icons_icons.dart';
       2             : import 'package:flutter/material.dart';
       3             : import 'package:flutter_gen/gen_l10n/app_localizations.dart';
       4             : 
       5           0 : final Color malformedColor = Color(0xFFE85DA1);
       6             : 
       7             : // MalformedBubble is displayed in the case of a malformed message
       8             : class MalformedBubble extends StatefulWidget {
       9           0 :   @override
      10           0 :   MalformedBubbleState createState() => MalformedBubbleState();
      11             : }
      12             : 
      13             : class MalformedBubbleState extends State<MalformedBubble> {
      14           0 :   @override
      15             :   Widget build(BuildContext context) {
      16           0 :     return Container(
      17           0 :         decoration: BoxDecoration(
      18           0 :           color: malformedColor,
      19           0 :           border: Border.all(color: malformedColor, width: 1),
      20           0 :           borderRadius: BorderRadius.only(
      21             :             topLeft: Radius.zero,
      22             :             topRight: Radius.zero,
      23             :             bottomLeft: Radius.zero,
      24             :             bottomRight: Radius.zero,
      25             :           ),
      26             :         ),
      27           0 :         child: FittedBox(
      28             :             fit: BoxFit.contain,
      29           0 :             child: Center(
      30             :                 widthFactor: 1.0,
      31           0 :                 child: Padding(
      32           0 :                     padding: EdgeInsets.all(9.0),
      33           0 :                     child: Row(mainAxisSize: MainAxisSize.min, children: [
      34           0 :                       Center(
      35             :                           widthFactor: 1,
      36           0 :                           child: Padding(
      37           0 :                               padding: EdgeInsets.all(4),
      38           0 :                               child: Icon(
      39             :                                 CwtchIcons.favorite_black_24dp_broken,
      40             :                                 size: 24,
      41             :                               ))),
      42           0 :                       Center(
      43             :                           widthFactor: 1.0,
      44           0 :                           child: Text(
      45           0 :                             AppLocalizations.of(context)!.malformedMessage,
      46             :                             overflow: TextOverflow.ellipsis,
      47             :                             textWidthBasis: TextWidthBasis.longestLine,
      48             :                           ))
      49             :                     ])))));
      50             :   }
      51             : }

Generated by: LCOV version 1.14