From df0fabce0f50284c55e5012bfe173a1d3a19a70c Mon Sep 17 00:00:00 2001 From: esche Date: Mon, 19 Jun 2023 11:21:54 +0200 Subject: [PATCH] =?UTF-8?q?kleine=20=C3=84nderungen=20am=20Design?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend-user/lib/finance.dart | 6 +++--- Frontend-user/lib/main.dart | 13 +++++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Frontend-user/lib/finance.dart b/Frontend-user/lib/finance.dart index 5e84686..6a837f1 100644 --- a/Frontend-user/lib/finance.dart +++ b/Frontend-user/lib/finance.dart @@ -5,7 +5,7 @@ import 'expand.dart'; /* todo: - - Design, Farbschema, Darkmode + - Design, Darkmode - Einkauf und Settings - Details zum Warenkorb und Beschreibung (https://stackoverflow.com/questions/49029841/how-to-animate-collapse-elements-in-flutter) - farbliche Hervorhebungen @@ -20,7 +20,7 @@ class Transaction { Art art; DateTime datum; String beschreibung; - bool elevated = true; + bool elevated = false; Transaction(this.art, this.betrag, this.datum, this.beschreibung); } @@ -96,7 +96,7 @@ class _Finance extends State { return Card( clipBehavior: Clip.hardEdge, child: InkWell( - splashColor: Colors.blue.withAlpha(30), + splashColor: const Color(0xff5f7c61).withAlpha(30), onTap: () { transactions[index].elevated = !transactions[index].elevated; diff --git a/Frontend-user/lib/main.dart b/Frontend-user/lib/main.dart index d923d94..cef3fe8 100644 --- a/Frontend-user/lib/main.dart +++ b/Frontend-user/lib/main.dart @@ -14,10 +14,19 @@ class MyApp extends StatelessWidget { title: 'SoNaKo Demo App', debugShowCheckedModeBanner: false, theme: ThemeData( + //darkgreen:5f7c61, mediumgreen: 66906a, lightgreen: 9cbe96, yellow: f5de64 useMaterial3: true, + brightness: Brightness.light, colorScheme: ColorScheme.fromSeed( - seedColor: Colors.green)), //9bbee6 //79,128,104 - darkTheme: ThemeData.dark(), + brightness: Brightness.light, + seedColor: const Color(0xff5f7c61))), + darkTheme: ThemeData( + useMaterial3: true, + brightness: Brightness.dark, + colorScheme: ColorScheme.fromSeed( + brightness: Brightness.dark, + seedColor: const Color(0xff5f7c61), + )), themeMode: ThemeMode.system, home: const MyHomePage(), );