📜  颤振按钮 - Dart 代码示例

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

代码示例5
//Text in Button
TextButton(
  onPressed: ()=>{}, 
  child: const Text("Signout")
),

//Text button with icon
TextButton.icon(
  label: Text('Signout'),
  icon: Icon(Icons.logout),
  onPressed: () {}
),

//Text button with filled background
TextButton(
  child: Text("button"),
  style: TextButton.styleFrom(
    primary: Colors.white,  //Text Color
    backgroundColor: Colors.teal, //Button Background Color
  ),
  onPressed: () {},
),