Skip to content

Commit

Permalink
better CupertinoTypeAheadField text style
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonIT committed Jan 25, 2020
1 parent 6ebe1d1 commit 7549aa7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ class _TimeTrackerState extends State<TimeTracker> {
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(),
Expand Down Expand Up @@ -384,9 +384,9 @@ class _TimeTrackerState extends State<TimeTracker> {
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(),
Expand Down
18 changes: 9 additions & 9 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7549aa7

Please sign in to comment.