Files
pipelines/app/lib/features/settings/settings_trust_warning.dart
alan 3933ff980c Remove Cupertino settings branches
Keep the Material settings implementation while preserving public Cupertino parameters for later cleanup. Narrow settings tests to the Material-only behavior.
2026-11-11 05:21:30 +00:00

41 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
import 'settings_copy.dart';
import 'settings_layout.dart';
import 'settings_theme.dart';
/// The trusted-network warning, shown as the Connection group's footer: a
/// warning icon, the title in the error colour and the short body. It is not a
/// dialog: no confirmation is required to read it.
class SettingsTrustWarning extends StatelessWidget {
const SettingsTrustWarning({super.key});
@override
Widget build(BuildContext context) {
final error = settingsErrorColor(context);
return Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Icon(
Icons.warning_amber_rounded,
color: error,
semanticLabel: 'Warning',
),
const SizedBox(width: settingsControlGap),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
trustTitle,
style: TextStyle(color: error, fontWeight: FontWeight.w600),
),
const Text(trustBody),
],
),
),
],
);
}
}