multiple runtime bugfixes for 1.5.5+65

This commit is contained in:
2026-08-28 20:42:30 +02:00
parent 65300614b1
commit 71839d0848
18 changed files with 344 additions and 159 deletions
@@ -3,11 +3,11 @@ import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import 'package:url_launcher/url_launcher_string.dart';
import '../../api/emergency/emergency_notice.dart';
import '../../api/emergency/emergency_notice_client.dart';
import '../../state/app/modules/settings/bloc/settings_cubit.dart';
import '../../utils/url_opener.dart';
/// Wraps the app and surfaces a backend-independent emergency notice on cold
/// start and resume. Renders [child] unchanged and only overlays a dialog when
@@ -80,9 +80,7 @@ class _EmergencyNoticeDialog extends StatelessWidget {
Future<void> _openLink(String? href) async {
if (href == null) return;
if (await canLaunchUrlString(href)) {
await launchUrlString(href);
}
await UrlOpener.openUrl(href);
}
@override