Files
pipelines/app/lib/features/search/ui/search_bounds_note.dart
T
alan 1b7da4106c Remove Cupertino search branches
Keep the Material-only search implementation while preserving public signatures and required icon fallback parameters.
2026-11-11 03:47:13 +00:00

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)),
],
),
);
}
}