Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

flutter form autadjust height

// Easy fix for keyboard overlapping forms
// You need to create a scaffold and add the below attribute. 
resizeToAvoidBottomInset: true,

// Example :
return Container(
  child: Scaffold(
    // OVER HERE ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
    resizeToAvoidBottomInset: true,
    // OVER HERE ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
    appBar: AppBar(
      toolbarHeight: 100,
      title: Text('Support Ticket Form'),
      leading: IconButton(
        icon: Icon(Icons.arrow_back),
        onPressed: () {
          Navigator.push(
            context,
            MaterialPageRoute(
              builder: (context) => Support(),
            ),
          );
        },
      ),
      backgroundColor: HexColor(kEcentiveLightBlue),
      centerTitle: true,
    ),
    body:Container(
      //bla bla bla yackity schmackity
      child: form(
      ),
    ),
  ),
);
 
PREVIOUS NEXT
Tagged: #flutter #form #autadjust #height
ADD COMMENT
Topic
Name
9+3 =