Skip to content

Commit

Permalink
krille-chan#137 Fix CupertinoThemeData text color issue with cupertin…
Browse files Browse the repository at this point in the history
…oOverrideTheme
  • Loading branch information
philipp.monz authored and Hannich Matthias committed Oct 17, 2023
1 parent c5faf73 commit 932a0f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/config/themes.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart' hide Router;
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

Expand Down Expand Up @@ -42,6 +44,10 @@ abstract class FluffyThemes {

static ThemeData buildTheme(Brightness brightness, [Color? seed]) =>
ThemeData(
cupertinoOverrideTheme: const CupertinoThemeData(
textTheme:
CupertinoTextThemeData(), // This is required: https://github.com/mono0926/adaptive_dialog/blob/main/README.md#the-input-text-color-same-with-backgound-when-using-cupertinotextinputdialog
),
visualDensity: VisualDensity.standard,
useMaterial3: true,
brightness: brightness,
Expand Down

0 comments on commit 932a0f7

Please sign in to comment.