fix(#173): icône en colonne à droite, texte (titre+dates) regroupé
Les 3 lignes restent ensemble à gauche face à l’icône. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -384,22 +384,66 @@ class _BulleTile extends StatelessWidget {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Column(
|
||||||
card.titreAffiche,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
maxLines: 2,
|
children: [
|
||||||
overflow: TextOverflow.ellipsis,
|
Text(
|
||||||
style: GoogleFonts.merienda(
|
card.titreAffiche,
|
||||||
fontSize: 18,
|
maxLines: 2,
|
||||||
fontWeight: FontWeight.w700,
|
overflow: TextOverflow.ellipsis,
|
||||||
color: QuotidienTheme.ink,
|
style: GoogleFonts.merienda(
|
||||||
),
|
fontSize: 18,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
color: QuotidienTheme.ink,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (card.dateDebut != null || card.dateFin != null) ...[
|
||||||
|
const SizedBox(height: 10),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(left: 12),
|
||||||
|
child: memeJour
|
||||||
|
? Text(
|
||||||
|
'Le ${_fmtLong(card.dateDebut)}',
|
||||||
|
style: GoogleFonts.merienda(
|
||||||
|
fontSize: 17,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: QuotidienTheme.ink,
|
||||||
|
height: 1.35,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
'Du ${_fmtLong(card.dateDebut)}',
|
||||||
|
style: GoogleFonts.merienda(
|
||||||
|
fontSize: 17,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: QuotidienTheme.ink,
|
||||||
|
height: 1.35,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
'Au ${_fmtLong(card.dateFin)}',
|
||||||
|
style: GoogleFonts.merienda(
|
||||||
|
fontSize: 17,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: QuotidienTheme.ink,
|
||||||
|
height: 1.35,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (card.iconAsset != null) ...[
|
if (card.iconAsset != null) ...[
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 10),
|
||||||
Image.asset(
|
Image.asset(
|
||||||
card.iconAsset!,
|
card.iconAsset!,
|
||||||
width: 80,
|
width: 80,
|
||||||
@@ -410,45 +454,6 @@ class _BulleTile extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (card.dateDebut != null || card.dateFin != null) ...[
|
|
||||||
const SizedBox(height: 10),
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.only(left: 12),
|
|
||||||
child: memeJour
|
|
||||||
? Text(
|
|
||||||
'Le ${_fmtLong(card.dateDebut)}',
|
|
||||||
style: GoogleFonts.merienda(
|
|
||||||
fontSize: 17,
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
color: QuotidienTheme.ink,
|
|
||||||
height: 1.35,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
'Du ${_fmtLong(card.dateDebut)}',
|
|
||||||
style: GoogleFonts.merienda(
|
|
||||||
fontSize: 17,
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
color: QuotidienTheme.ink,
|
|
||||||
height: 1.35,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
'Au ${_fmtLong(card.dateFin)}',
|
|
||||||
style: GoogleFonts.merienda(
|
|
||||||
fontSize: 17,
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
color: QuotidienTheme.ink,
|
|
||||||
height: 1.35,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
if (card.statut == CarteStatut.refusee) ...[
|
if (card.statut == CarteStatut.refusee) ...[
|
||||||
const SizedBox(height: 6),
|
const SizedBox(height: 6),
|
||||||
Text(
|
Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user