diff --git a/lib/main.dart b/lib/main.dart index 1e9fe55..5b3629a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -324,9 +324,9 @@ class _TimeTrackerState extends State { placeholder: "Kunde/Projekt", autocorrect: false, maxLines: 1, - style: state.project != null - ? TextStyle(color: CupertinoTheme.of(context).primaryContrastingColor) - : null, + style: DefaultTextStyle.of(context) + .style + .copyWith(color: CupertinoTheme.of(context).primaryContrastingColor), ), hideOnEmpty: true, noItemsFoundBuilder: (BuildContext context) => Container(), @@ -384,9 +384,9 @@ class _TimeTrackerState extends State { title: setTrackerError, ); }, - style: state.project == null - ? TextStyle(color: CupertinoTheme.of(context).primaryContrastingColor) - : null, + style: DefaultTextStyle.of(context) + .style + .copyWith(color: CupertinoTheme.of(context).primaryContrastingColor), ), hideOnEmpty: true, noItemsFoundBuilder: (BuildContext context) => Container(), diff --git a/pubspec.lock b/pubspec.lock index 83599c2..4fa53b4 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -14,7 +14,7 @@ packages: name: app_review url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.0.1" archive: dependency: transitive description: @@ -98,7 +98,7 @@ packages: name: built_value url: "https://pub.dartlang.org" source: hosted - version: "7.0.4" + version: "7.0.8" charcode: dependency: transitive description: @@ -175,7 +175,7 @@ packages: name: duration url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.0.9" file_picker: dependency: "direct main" description: @@ -257,7 +257,7 @@ packages: name: flutter_typeahead url: "https://pub.dartlang.org" source: hosted - version: "1.7.0" + version: "1.8.0" flutter_web_plugins: dependency: transitive description: flutter @@ -381,7 +381,7 @@ packages: name: logging url: "https://pub.dartlang.org" source: hosted - version: "0.11.3+2" + version: "0.11.4" matcher: dependency: transitive description: @@ -521,14 +521,14 @@ packages: name: shared_preferences url: "https://pub.dartlang.org" source: hosted - version: "0.5.6" + version: "0.5.6+1" shared_preferences_macos: dependency: transitive description: name: shared_preferences_macos url: "https://pub.dartlang.org" source: hosted - version: "0.0.1+3" + version: "0.0.1+4" shared_preferences_platform_interface: dependency: transitive description: @@ -542,7 +542,7 @@ packages: name: shared_preferences_web url: "https://pub.dartlang.org" source: hosted - version: "0.1.2+2" + version: "0.1.2+3" shelf: dependency: transitive description: @@ -617,7 +617,7 @@ packages: name: synchronized url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.2.0" term_glyph: dependency: transitive description: