You are using TextButton
in your AppBar but not defining its theme in your code. You need to define the TextButtonTheme in order to change the color of the text of your TextButton. Like this.
ThemeData(
textbuttonTheme: TextbuttonThemeData(
style: Textbutton.styleFrom(primary: Colors.teal)),
),
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…