3933ff980c
Keep the Material settings implementation while preserving public Cupertino parameters for later cleanup. Narrow settings tests to the Material-only behavior.
41 lines
1.1 KiB
Dart
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),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|