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

wger-project / flutter / 30854254088

03 Aug 2026 09:21PM UTC coverage: 40.895% (-15.0%) from 55.93%
30854254088

Pull #1260

github

web-flow
Merge d93794de5 into e3affdd4f
Pull Request #1260: WIP: health sync

9980 of 24404 relevant lines covered (40.89%)

1.72 hits per line

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

0.0
/lib/core/widgets/server_config_warning_dialog.dart
1
/*
2
 * This file is part of wger Workout Manager <https://github.com/wger-project>.
3
 * Copyright (c) 2025 wger Team
4
 *
5
 * wger Workout Manager is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU Affero General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 */
10

11
import 'package:flutter/material.dart';
12
import 'package:wger/core/misc.dart';
13
import 'package:wger/l10n/generated/app_localizations.dart';
14

15
/// Shows a warning dialog when server misconfiguration is detected
16
void showServerConfigWarning(BuildContext context) {
×
17
  final i18n = AppLocalizations.of(context);
×
18

19
  showDialog(
×
20
    context: context,
21
    builder: (context) => AlertDialog(
×
22
      title: Row(
×
23
        children: [
×
24
          Icon(Icons.warning, color: Theme.of(context).colorScheme.error, size: 28),
×
25
          const SizedBox(width: 12),
26
          Expanded(child: Text(i18n.serverConfigIssueTitle)),
×
27
        ],
28
      ),
29
      content: Text(i18n.serverConfigIssueMessage),
×
30
      actions: [
×
31
        TextButton(
×
32
          onPressed: () => Navigator.pop(context),
×
33
          child: Text(i18n.understand),
×
34
        ),
35
        TextButton(
×
36
          onPressed: () {
×
37
            launchURL(
×
38
              'https://wger.readthedocs.io/en/latest/administration/errors.html#wrong-pagination-links',
39
              context,
40
            );
41
            Navigator.pop(context);
×
42
          },
43
          child: Text(i18n.viewDocumentation),
×
44
        ),
45
      ],
46
    ),
47
  );
48
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc