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

dan-chez / car_manager_ui / 11023121854

24 Sep 2024 10:47PM UTC coverage: 94.275%. First build
11023121854

Pull #32

github

web-flow
[CARMAN-239] Move Toggle Button To Package (#22)

* Move toggle button to package

* Solve PR comments

---------

Co-authored-by: DAArbelaez <diegoandresarbelaez@gmail.com>
Co-authored-by: Daniel Sanchez <44003827+dan-chez@users.noreply.github.com>
Pull Request #32: Support: Release 0.0.1

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