【问题标题】:where to get flutter color code like (0xFFff4b4b)?在哪里可以获得像(0xFFff4b4b)这样的颤动颜色代码?
【发布时间】: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,
        ),
      ),
    );
  }

【问题讨论】:

    标签: flutter dart colors hex


    【解决方案1】:

    你可以像这样使用它:

    backgroundColor: Color(0xFFff4b4b),
    

    【讨论】:

      猜你喜欢
      • 2013-09-24
      • 1970-01-01
      • 1970-01-01
      • 2021-01-13
      • 1970-01-01
      • 1970-01-01
      • 2021-06-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多