1b7da4106c
Keep the Material-only search implementation while preserving public signatures and required icon fallback parameters.
32 lines
909 B
Dart
32 lines
909 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
const searchBoundsKey = ValueKey<String>('search.bounds');
|
|
|
|
/// The server's note that a result set was cut short, in the host's muted
|
|
/// caption style with an info icon.
|
|
class SearchBoundsNote extends StatelessWidget {
|
|
const SearchBoundsNote({super.key, required this.text});
|
|
|
|
final String text;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
const icon = Icons.info_outline;
|
|
final theme = Theme.of(context);
|
|
final style = theme.textTheme.bodySmall?.copyWith(
|
|
color: theme.colorScheme.onSurfaceVariant,
|
|
);
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 4),
|
|
child: Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
spacing: 8,
|
|
children: [
|
|
Icon(icon, size: 16, color: style?.color),
|
|
Expanded(child: Text(text, style: style)),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|