import 'package:flutter/material.dart'; import 'package:em2rp/utils/colors.dart'; /// Widget pour afficher les notes class EquipmentNotesSection extends StatelessWidget { final String notes; const EquipmentNotesSection({ super.key, required this.notes, }); @override Widget build(BuildContext context) { if (notes.isEmpty) { return const SizedBox.shrink(); } return Card( elevation: 2, child: Padding( padding: const EdgeInsets.all(20), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Row( children: [ const Icon(Icons.notes, color: AppColors.rouge), const SizedBox(width: 8), Text( 'Notes', style: Theme.of(context).textTheme.titleLarge?.copyWith( fontWeight: FontWeight.bold, ), ), ], ), const Divider(height: 24), Text( notes, style: const TextStyle(fontSize: 14), ), ], ), ), ); } }