[英]How Do I change the Color of the Register/Login TextButton in FlutterFireUI Screen?
I'm trying to change the color of the Register button in the "don't have an account? Register" widget in the FlutterFireUI loginScreen page我正在尝试更改 FlutterFireUI loginScreen 页面中“没有帐户?注册”小部件中注册按钮的颜色
the button I want to change我要更改的按钮
I thought it was a TextButton at first like the forget password button so I added the following code inside the ThemeData widget for the MaterialApp一开始我以为它是一个 TextButton,就像忘记密码按钮一样,所以我在 MaterialApp 的 ThemeData 小部件中添加了以下代码
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
foregroundColor: Color(0xFF6F73D2),// Text Color
),
),
but it turned out to be a RichText widget instead但它原来是一个 RichText 小部件
I looked online for hours but I can't find how to change its color我在网上看了几个小时,但找不到如何改变它的颜色
RichText(
text: TextSpan(
text: "Don't have an account? ",
style: TextStyle(color: Colors.black),
children: [
TextSpan(
text: ' Register',
style: TextStyle(
fontWeight: FontWeight.bold,
color: Color(0xFF6F73D2),
),
recognizer: TapGestureRecognizer()
..onTap = () {
//BUTTON ACTION
},
),
],
),
),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.