• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dan-chez / car_manager_ui / 21458779622

28 Jan 2026 11:02PM UTC coverage: 98.89% (-1.1%) from 100.0%
21458779622

Pull #104

github

dan-chez
Update dependencies and CI Flutter version
Pull Request #104: Update dependencies and CI Flutter version

1 of 1 new or added line in 1 file covered. (100.0%)

11 existing lines in 11 files now uncovered.

980 of 991 relevant lines covered (98.89%)

2.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.0
/lib/src/components/dialogs/error/error_dialog.dart
1
// Copyright 2024 Danchez
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15
import 'package:carmanager_ui/src/components/buttons/close_icon_button.dart';
16
import 'package:carmanager_ui/src/components/cm_rich_text.dart';
17
import 'package:carmanager_ui/src/components/dialogs/base/dialog_base.dart';
18
import 'package:carmanager_ui/src/components/dialogs/error/error_dialog_data.dart';
19
import 'package:carmanager_ui/src/constants/app_colors_constants.dart';
20
import 'package:carmanager_ui/src/constants/cm_dimens.dart';
21
import 'package:carmanager_ui/src/constants/dividers.dart';
22
import 'package:carmanager_ui/src/constants/text_style_constants.dart';
23
import 'package:flutter/material.dart';
24
import 'package:flutter_svg/flutter_svg.dart';
25

26
/// To call [ErrorDialog] follow next example
27
/// Example usage:
28
/// ```dart
29
/// context.push(
30
///   ErrorDialogRoute.path,
31
///   extra: ErrorDialogRoute(...),
32
///   ),
33
/// );
34
/// ```
35
class ErrorDialog extends DialogBase<ErrorDialogData> {
UNCOV
36
  const ErrorDialog({
×
37
    super.key,
38
    required super.data,
39
  });
40

41
  @override
1✔
42
  Widget build(BuildContext context) {
43
    return Dialog(
1✔
44
      elevation: CMDimens.d10,
45
      shape: RoundedRectangleBorder(
1✔
46
        borderRadius: BorderRadius.circular(CMDimens.d4),
1✔
47
      ),
48
      insetPadding: const EdgeInsets.symmetric(horizontal: CMDimens.d24),
49
      backgroundColor: kWhite,
50
      child: Column(
1✔
51
        mainAxisAlignment: MainAxisAlignment.center,
52
        mainAxisSize: MainAxisSize.min,
53
        children: [
1✔
54
          const Padding(
55
            padding: EdgeInsets.only(top: CMDimens.d11, right: CMDimens.d11),
56
            child: CloseIconButton(),
57
          ),
58
          Padding(
1✔
59
            padding: const EdgeInsets.only(
60
              top: CMDimens.d14,
61
              bottom: CMDimens.d36,
62
            ),
63
            child: Column(
1✔
64
              children: [
1✔
65
                Visibility(
1✔
66
                  visible: data.imagePath.isNotEmpty,
3✔
67
                  child: SvgPicture.asset(data.imagePath),
3✔
68
                ),
69
                kSmallDividerVertical,
70
                CMRichText(
1✔
71
                  text: data.title,
2✔
72
                  boldPositions: data.titleBoldPositions,
2✔
73
                )(),
1✔
74
                Text(
1✔
75
                  data.subtitle,
2✔
76
                  textAlign: TextAlign.center,
77
                  style: kCaptionTextStyle.copyWith(
1✔
78
                      fontWeight: FontWeight.w300, color: kMyrtleGreen),
79
                ),
80
              ],
81
            ),
82
          ),
83
        ],
84
      ),
85
    );
86
  }
87
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc