Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

changing the textbutton padding in flutter

TextButton(
  onPressed: () => Navigator.pop(context),
  style: TextButton.styleFrom(
      padding: EdgeInsets.zero,
      minimumSize: Size(50, 30),
      tapTargetSize: MaterialTapTargetSize.shrinkWrap,
      alignment: Alignment.centerLeft),
  child: Icon(
    CupertinoIcons.back,
    color: Colors.black,
    size: 18,
  ),
),
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #changing #textbutton #padding #flutter
ADD COMMENT
Topic
Name
4+3 =