forked from mgl_crew/Mitgliederladen
added default locale
This commit is contained in:
parent
496a1f2857
commit
f0415a22da
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ class Finance extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
initializeDateFormatting('de_DE');
|
||||
Intl.defaultLocale = 'de_DE';
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
|
@ -67,7 +68,7 @@ class Finance extends StatelessWidget {
|
|||
Text getSubtitle(Transaction transaction) {
|
||||
String text = '${transaction.amount / 100}';
|
||||
text += '€ ';
|
||||
text += DateFormat("EEEE, dd. MMMM yyyy HH:mm", 'de_DE')
|
||||
text += DateFormat("EEEE, dd. MMMM yyyy HH:mm")
|
||||
.format(transaction.date);
|
||||
if (transaction.description != null) {
|
||||
(text += '\n${transaction.description}');
|
||||
|
|
Loading…
Reference in a new issue