in gemini/sample-apps/photo-discovery/app/lib/ui/components/core_components.dart [85:130]
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: TextStyle(
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.secondary,
fontSize: 18,
),
),
loading
? LayoutBuilder(
builder: (context, constraints) => Shimmer.fromColors(
period: const Duration(seconds: 3),
baseColor: Theme.of(context).colorScheme.surfaceContainer,
highlightColor:
Theme.of(context).colorScheme.surfaceContainerHighest,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
color: Theme.of(context).colorScheme.surface,
),
width: constraints.maxWidth,
height: shimmerHeight,
),
),
)
: ListTile(
title: Text(
content,
style: const TextStyle(
fontSize: 18,
),
),
trailing: enableCopy
? IconButton(
icon: const Icon(FontAwesomeIcons.copy),
onPressed: copyText,
)
: null,
),
],
);
}