【发布时间】:2023-01-09 20:31:05
【问题描述】:
从哪里获得颤振颜色代码
我想使用十六进制颜色更改背景颜色。但我只能选择 flutter 默认值
class _SplashState extends State<Splash> {
var customFontWhite = GoogleFonts.coiny(
textStyle:
const TextStyle(color: Colors.white, letterSpacing: 3, fontSize: 28));
@override
Widget build(BuildContext context) {
// ignore: prefer_const_constructors
return Scaffold(
backgroundColor: Colors.red,
body: Center(
child: Text(
'Tic-Tac-Toy',
style: customFontWhite,
),
),
);
}
【问题讨论】: