From 932a0f767083b0577c570249337bb8a798ef47a4 Mon Sep 17 00:00:00 2001 From: "philipp.monz" Date: Mon, 25 Sep 2023 14:16:17 +0200 Subject: [PATCH] #137 Fix CupertinoThemeData text color issue with cupertinoOverrideTheme --- lib/config/themes.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/config/themes.dart b/lib/config/themes.dart index 5013ba40f0..94e0374fee 100644 --- a/lib/config/themes.dart +++ b/lib/config/themes.dart @@ -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'; @@ -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,