refactor(#173): widget Carte (extensible par défaut) + fix bandeau
Renomme NineSlice* en Carte. Le bandeau couple s’étire en horizontal seulement pour garder les bouts demi-cercle. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:p_tits_pas/models/carte_bulle.dart';
|
||||
import 'package:p_tits_pas/services/api/cards_service.dart';
|
||||
import 'package:p_tits_pas/widgets/quotidien/nine_slice_asset.dart';
|
||||
import 'package:p_tits_pas/widgets/quotidien/carte.dart';
|
||||
import 'package:p_tits_pas/widgets/quotidien/quotidien_theme.dart';
|
||||
|
||||
/// Feed de bulles (file d'attention) — ticket #173.
|
||||
@@ -287,7 +287,7 @@ class _BulleTile extends StatelessWidget {
|
||||
final treated = card.statut == CarteStatut.traitee;
|
||||
return Opacity(
|
||||
opacity: treated ? 0.55 : 1,
|
||||
child: NineSliceAsset.card(
|
||||
child: Carte(
|
||||
assetPath: card.backgroundAsset,
|
||||
constraints: const BoxConstraints(minHeight: 96),
|
||||
padding: const EdgeInsets.fromLTRB(20, 14, 20, 14),
|
||||
|
||||
Reference in New Issue
Block a user