changement de langue ok sur drawer

This commit is contained in:
2025-07-02 22:35:53 +02:00
parent e2195e6500
commit 75b443758a
4 changed files with 38 additions and 14 deletions

View File

@@ -864,8 +864,11 @@ class _MyHomePageState extends State<ListItemMenu> {
final startDate = DateTime.parse(post.startDate!);
//final date = DateFormat.yMd().format(startDate);
//final time = DateFormat.Hm().format(startDate);
final locale =
Provider.of<LocaleProvider>(context).locale?.toString() ??
'en_US';
final dateLongue =
DateFormat('EEEE d MMMM y', 'fr_FR').format(startDate);
DateFormat('EEEE d MMMM y', locale).format(startDate);
return ListTile(
title: Text('${post.name!}'),
subtitle: Text('${post.place!}\n${dateLongue}'),