From 3ab6cd56903d7ad6249d242848dc0d2fbe3a5bce Mon Sep 17 00:00:00 2001 From: esche Date: Mon, 19 Jun 2023 20:29:17 +0200 Subject: [PATCH] design improvements --- Frontend-user/lib/finance.dart | 2 -- Frontend-user/lib/main.dart | 11 +++++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Frontend-user/lib/finance.dart b/Frontend-user/lib/finance.dart index 4f81a7c..6ba4f84 100644 --- a/Frontend-user/lib/finance.dart +++ b/Frontend-user/lib/finance.dart @@ -144,8 +144,6 @@ class Finance extends StatelessWidget { } return Text(text); - //return Text( - // '${DateFormat("EEEE, dd. MMMM yyyy HH:mm", 'de_DE').format(transactions[index].datum)}: ${transactions[index].betrag / 100}€\n${transactions[index].beschreibung}'); } Icon getIcon(Art art) { diff --git a/Frontend-user/lib/main.dart b/Frontend-user/lib/main.dart index 2c4fe0c..d018574 100644 --- a/Frontend-user/lib/main.dart +++ b/Frontend-user/lib/main.dart @@ -82,8 +82,15 @@ class _MyHomePageState extends State { child: Text('Page $test'), ), Finance(), - const Text( - 'Hier könnten Einstellungen zu Darkmode mit shared_preferences und riverpod sein') + ListView(children: const [ + ListTile( + leading: Icon(Icons.dark_mode), + title: Text( + 'Hier könnten Einstellungen zu Darkmode mit shared_preferences und riverpod sein', + maxLines: 2, + ), + ) + ]) ][currentPageIndex], ); }