TextButton in Flutter

  TextButton(

                      onPressed: () {
                        print('Button Clicked');
                      },
                      child: Text('click me'),
                      style: TextButton.styleFrom(
                          primary: Colors.black,
                          backgroundColor: Colors.yellow,
                          padding: EdgeInsets.all(20),
                          textStyle: TextStyle(fontSize: 20)),
                    )

Comments

Popular Posts