Answers for "how to remove bordre radius from textbutton"

0

how to remove bordre radius from textbutton

Expanded(
                child: TextButton(
                // this is my solution didn't find it anywhere
                  style: ButtonStyle(
                    backgroundColor: MaterialStateProperty.all(Colors.red),
                    shape: MaterialStateProperty.all(
                      RoundedRectangleBorder(borderRadius: BorderRadius.zero),
                    ),
                  ),
                  onPressed: () {
                    playSound(1);
                  },
                  child: Container(
                    child: Text(""),
                  ),
                ),
              )
Posted by: Guest on June-15-2021

Code answers related to "how to remove bordre radius from textbutton"

Browse Popular Code Answers by Language