aves_mio0.31/lib/widgets/collection/grid/headers/album.dart
2026-07-18 13:39:22 +02:00

37 lines
898 B
Dart

import 'package:flutter/material.dart';
/// Header semplice per sezioni della pagina Album.
/// Compatibile con il nuovo sistema basato su AlbumRow.
class AlbumSectionHeader extends StatelessWidget {
final String title;
final IconData? icon;
const AlbumSectionHeader({
super.key,
required this.title,
this.icon,
});
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.fromLTRB(16, 12, 16, 6),
child: Row(
children: [
if (icon != null)
Icon(icon, size: 18, color: Colors.white70),
if (icon != null)
const SizedBox(width: 8),
Text(
title,
style: const TextStyle(
color: Colors.white70,
fontSize: 14,
fontWeight: FontWeight.w600,
),
),
],
),
);
}
}