📜  materialstateproperty color - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:02.635000             🧑  作者: Mango

代码示例1
ElevatedButton(
          style: ButtonStyle(
          backgroundColor: MaterialStateProperty.all(Colors.amberAccent)),
          onPressed: () {},
          child: const Text(
            "Hover Me",
            style: TextStyle(
              fontSize: 20,
            ),
          ),
        ),