release: squash merge develop → master (#211,#212) #213

Closed
jmartin wants to merge 71 commits from develop into master
2 changed files with 60 additions and 11 deletions
Showing only changes of commit 38af471054 - Show all commits
Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

+60 -11
View File
@@ -442,17 +442,7 @@ class _CartesFeedState extends State<CartesFeed> {
);
}
if (_items.isEmpty) {
return Center(
child: Text(
'Aucune bulle pour le moment.\nLa file d’attention est vide — c’est normal.',
textAlign: TextAlign.center,
style: GoogleFonts.merriweather(
fontSize: 13,
color: QuotidienTheme.muted,
height: 1.4,
),
),
);
return const _CartesEmptyState();
}
return NotificationListener<ScrollMetricsNotification>(
@@ -1191,6 +1181,65 @@ class _RefuseDialogState extends State<_RefuseDialog> {
}
}
/// État vide de la file d'attention — ours endormi (#212).
class _CartesEmptyState extends StatelessWidget {
const _CartesEmptyState();
static const _asset = 'assets/images/ours_endormi.png';
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, constraints) {
final maxW = constraints.maxWidth;
// ~160–200 px, réduit si colonne étroite.
final imgW =
maxW.isFinite ? maxW.clamp(100.0, 200.0) : 180.0;
return Center(
child: SingleChildScrollView(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: maxW),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
_asset,
width: imgW,
fit: BoxFit.contain,
filterQuality: FilterQuality.high,
semanticLabel: 'Ours endormi',
),
const SizedBox(height: 12),
Text(
'File d’attention au repos.',
textAlign: TextAlign.center,
style: GoogleFonts.merienda(
fontSize: 16,
fontWeight: FontWeight.w600,
color: QuotidienTheme.ink,
),
),
const SizedBox(height: 6),
Text(
'Pas de bulle en attente — on respire.',
textAlign: TextAlign.center,
style: GoogleFonts.merriweather(
fontSize: 13,
color: QuotidienTheme.muted,
height: 1.4,
),
),
],
),
),
),
);
},
);
}
}
/// CTA « Ajouter une carte » — pilule aquarelle en bas du feed (#175).
class _AjouterCarteCta extends StatelessWidget {
final VoidCallback onTap;