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

dan-chez / car_manager_ui / 11024384092

24 Sep 2024 11:04PM UTC coverage: 94.275%. First build
11024384092

push

github

web-flow
Support: Release 0.0.1 (#32)

* [CARMAN-190] Sample App & Package Setup (#2)

* Sample app

* Add pr template

* Revert "Add pr template"

This reverts commit 793dc6713.

* Add primary button

* Remove unused import

* Solve PR comments

---------

Co-authored-by: DAArbelaez <diego.arbelaez@venko.co>

* [CARMAN-208] Implement go router (#3)

* go router implementation in example app

* Change seed color

* PR comments addressed

* [CARMAN-209] Implement GitHub actions (#4)

* Implement github actions

* Example widget test added

* [CARMAN-206] Text fields moved to package (#5)

* TextFieldBase and CMTextField add to package

* Tests added for CMTextField

* CMMultilineTextField moved to package and tests added

* CMMoneyTextField moved to package and tests added

* Documentation added

* Disabled textField state added to showscase

* PR comments addressed

* ShowcaseAppBase improvements

* [CARMAN-191] Move Buttons (#6)

* Add all button states and tests

* Resolve PR comments

---------

Co-authored-by: DAArbelaez <diego.arbelaez@venko.co>

* [CARMAN-217] CMRichText added to package (#7)

* CMRichText added to package

* PR comments addressed

* Move icon button to package (#9)

Co-authored-by: DAArbelaez <diego.arbelaez@venko.co>

* [CARMAN-211] Move dialogs to UI package - ConfirmDialog (#10)

* Base classes for dialogs
Confirm dialog moved to ui package

* Add showcase image for dialogs

* [CARMAN-213] Move Page Title To Package (#8)

* Move CMPageTitle to package

* Resolve PR comments

* Move text styles

---------

Co-authored-by: DAArbelaez <diego.arbelaez@venko.co>

* Error dialog added to UI package (#11)

* CMDropdown moved to UI package (#13)

* [CARMAN-211] Loading dialog added to UI package (#12)

* Loading dialog added to UI package

* PR comments addressed

* [CARMAN-231] Create License (#15)

* Remove ... (continued)

494 of 524 new or added lines in 38 files covered. (94.27%)

494 of 524 relevant lines covered (94.27%)

1.75 hits per line

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

0.0
/lib/src/components/dialogs/loading/loading_dialog_route.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/dialogs/base/dialog_page_base.dart';
16
import 'package:carmanager_ui/src/components/dialogs/loading/loading_dialog.dart';
17
import 'package:carmanager_ui/src/components/dialogs/loading/loading_dialog_data.dart';
18
import 'package:flutter/material.dart';
19
import 'package:go_router/go_router.dart';
20

21
/// Route class to call loading dialog
22
/// Example usage:
23
/// ```dart
24
/// context.push(
25
///   LoadingDialogRoute.path,
26
///   extra: LoadingDialogRoute(...),
27
///   ),
28
/// );
29
/// ```
30
class LoadingDialogRoute {
31
  static const String path = '/loadingDialog';
32

NEW
33
  static Page<void> createRoute(
×
34
    BuildContext context,
35
    GoRouterState state, {
36
    required LoadingDialogData dialogData,
37
  }) {
NEW
38
    return DialogPageBase(
×
NEW
39
      child: LoadingDialog(data: dialogData),
×
40
    );
41
  }
42
}
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