📜  颤动按钮 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:17.139000             🧑  作者: 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: () {},
),