UI collapses when writing in TextFormFieldHow to get constraints like Height and Width of container in flutterFlutter : Can I add a Header Row to a ListViewFlutter : Bad state: Stream has already been listened toFlutter Expand/Occupy TextFormField to Fill Rest of ScreenTextFormField validator, Error not visible on TextFormFieldShow/Hide Passwords in Flutter's TextFormFieldHow to Add Drop Shadow to TextFormField In FlutterHow I can put Widget above Widget using List<Widget> widget in Flutter?TextFormField data disappear when closing the Key Boardhow to set multiple icons in row and set background color then below set a slider in flutter?
How was the murder committed?
What unique challenges/limitations will I face if I start a career as a pilot at 45 years old?
Is there a way to proportionalize fixed costs in a MILP?
How can God warn people of the upcoming rapture without disrupting society?
"Mouth-breathing" as slang for stupidity
Are there any other rule mechanics that could grant Thieves' Cant?
Why does Japan use the same type of AC power outlet as the US?
Pokemon Go: Gym Badge Over-completed?
Would the USA be eligible to join the European Union?
Did Pope Urban II issue the papal bull "terra nullius" in 1095?
Boss wants me to ignore a software API license
Does an object storing more internal energy emit more thermal radiation?
Shifting tenses in the middle of narration
What is a "soap"?
How to remove ambiguity: "... lives in the city of H, the capital of the province of NS, WHERE the unemployment rate is ..."?
An array battle with odd secret powers
How would timezones work on a planet 100 times the size of our Earth
Escape Velocity - Won't the orbital path just become larger with higher initial velocity?
What is the farthest a camera can see?
Is there a fallacy about "appeal to 'big words'"?
How can I communicate my issues with a potential date's pushy behavior?
Installing Windows to flash UEFI/ BIOS, then reinstalling Ubuntu
Global BGP Routing only by only importing supernet prefixes
Change page title from Views preprocess function
UI collapses when writing in TextFormField
How to get constraints like Height and Width of container in flutterFlutter : Can I add a Header Row to a ListViewFlutter : Bad state: Stream has already been listened toFlutter Expand/Occupy TextFormField to Fill Rest of ScreenTextFormField validator, Error not visible on TextFormFieldShow/Hide Passwords in Flutter's TextFormFieldHow to Add Drop Shadow to TextFormField In FlutterHow I can put Widget above Widget using List<Widget> widget in Flutter?TextFormField data disappear when closing the Key Boardhow to set multiple icons in row and set background color then below set a slider in flutter?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to make simple UI where there is a column with three elements. The first one is a listview, the second one is a TextFormField and last one is a container. When I try to type in the TextFormField then the bottom container also replaces which I don't understand.
Here is my code to help you understand my problem more clearly.
class demo extends StatefulWidget
@override
_demoState createState() => _demoState();
class _demoState extends State<demo>
@override
Widget build(BuildContext context)
return Scaffold(
appBar: AppBar(title: Text("demo"),),
body: new Column(
children: <Widget>[
Expanded(
child: new ListView.builder(
itemCount:1000,
itemBuilder: (context,index)
return Container(
padding: EdgeInsets.all(10.0),
height: 25.0,
color: Colors.grey,
child: Text(index.toString()),
);
),
),
new TextFormField(
decoration: InputDecoration(
border: OutlineInputBorder(),
hintText: "Enter Demo",
hintStyle: TextStyle(color: Colors.grey),
),
),
new Container(
height: 20.0,
child: Text("Demo Text"),
)
],
),
);
flutter flutter-layout
add a comment |
I am trying to make simple UI where there is a column with three elements. The first one is a listview, the second one is a TextFormField and last one is a container. When I try to type in the TextFormField then the bottom container also replaces which I don't understand.
Here is my code to help you understand my problem more clearly.
class demo extends StatefulWidget
@override
_demoState createState() => _demoState();
class _demoState extends State<demo>
@override
Widget build(BuildContext context)
return Scaffold(
appBar: AppBar(title: Text("demo"),),
body: new Column(
children: <Widget>[
Expanded(
child: new ListView.builder(
itemCount:1000,
itemBuilder: (context,index)
return Container(
padding: EdgeInsets.all(10.0),
height: 25.0,
color: Colors.grey,
child: Text(index.toString()),
);
),
),
new TextFormField(
decoration: InputDecoration(
border: OutlineInputBorder(),
hintText: "Enter Demo",
hintStyle: TextStyle(color: Colors.grey),
),
),
new Container(
height: 20.0,
child: Text("Demo Text"),
)
],
),
);
flutter flutter-layout
Can you try to be more specific with: "when i try to fill data in TextFormField then bottom container also replace which i don't what" ? I tried your code sample and couldnt find a problem: Image
– Niklas
Mar 27 at 9:56
try to write something in TextFormField, bottom container also change the position which i actually don't want. bottom container("Demo Text") must not change it's position.
– Viren V Varasadiya
Mar 27 at 10:02
Do you want the "Demo Text" to be hidden, while the keyboard is open?
– Niklas
Mar 27 at 10:08
yes "demo Text" must hidden only TextFormField should change position so that user can see what he/she typing over their. i already try with scaffold property " resizeToAvoidBottomPadding: false," but didn't work for me.
– Viren V Varasadiya
Mar 27 at 10:15
add a comment |
I am trying to make simple UI where there is a column with three elements. The first one is a listview, the second one is a TextFormField and last one is a container. When I try to type in the TextFormField then the bottom container also replaces which I don't understand.
Here is my code to help you understand my problem more clearly.
class demo extends StatefulWidget
@override
_demoState createState() => _demoState();
class _demoState extends State<demo>
@override
Widget build(BuildContext context)
return Scaffold(
appBar: AppBar(title: Text("demo"),),
body: new Column(
children: <Widget>[
Expanded(
child: new ListView.builder(
itemCount:1000,
itemBuilder: (context,index)
return Container(
padding: EdgeInsets.all(10.0),
height: 25.0,
color: Colors.grey,
child: Text(index.toString()),
);
),
),
new TextFormField(
decoration: InputDecoration(
border: OutlineInputBorder(),
hintText: "Enter Demo",
hintStyle: TextStyle(color: Colors.grey),
),
),
new Container(
height: 20.0,
child: Text("Demo Text"),
)
],
),
);
flutter flutter-layout
I am trying to make simple UI where there is a column with three elements. The first one is a listview, the second one is a TextFormField and last one is a container. When I try to type in the TextFormField then the bottom container also replaces which I don't understand.
Here is my code to help you understand my problem more clearly.
class demo extends StatefulWidget
@override
_demoState createState() => _demoState();
class _demoState extends State<demo>
@override
Widget build(BuildContext context)
return Scaffold(
appBar: AppBar(title: Text("demo"),),
body: new Column(
children: <Widget>[
Expanded(
child: new ListView.builder(
itemCount:1000,
itemBuilder: (context,index)
return Container(
padding: EdgeInsets.all(10.0),
height: 25.0,
color: Colors.grey,
child: Text(index.toString()),
);
),
),
new TextFormField(
decoration: InputDecoration(
border: OutlineInputBorder(),
hintText: "Enter Demo",
hintStyle: TextStyle(color: Colors.grey),
),
),
new Container(
height: 20.0,
child: Text("Demo Text"),
)
],
),
);
flutter flutter-layout
flutter flutter-layout
edited Mar 27 at 10:26
R. Duggan
5133 silver badges22 bronze badges
5133 silver badges22 bronze badges
asked Mar 27 at 9:42
Viren V VarasadiyaViren V Varasadiya
1,8831 gold badge7 silver badges22 bronze badges
1,8831 gold badge7 silver badges22 bronze badges
Can you try to be more specific with: "when i try to fill data in TextFormField then bottom container also replace which i don't what" ? I tried your code sample and couldnt find a problem: Image
– Niklas
Mar 27 at 9:56
try to write something in TextFormField, bottom container also change the position which i actually don't want. bottom container("Demo Text") must not change it's position.
– Viren V Varasadiya
Mar 27 at 10:02
Do you want the "Demo Text" to be hidden, while the keyboard is open?
– Niklas
Mar 27 at 10:08
yes "demo Text" must hidden only TextFormField should change position so that user can see what he/she typing over their. i already try with scaffold property " resizeToAvoidBottomPadding: false," but didn't work for me.
– Viren V Varasadiya
Mar 27 at 10:15
add a comment |
Can you try to be more specific with: "when i try to fill data in TextFormField then bottom container also replace which i don't what" ? I tried your code sample and couldnt find a problem: Image
– Niklas
Mar 27 at 9:56
try to write something in TextFormField, bottom container also change the position which i actually don't want. bottom container("Demo Text") must not change it's position.
– Viren V Varasadiya
Mar 27 at 10:02
Do you want the "Demo Text" to be hidden, while the keyboard is open?
– Niklas
Mar 27 at 10:08
yes "demo Text" must hidden only TextFormField should change position so that user can see what he/she typing over their. i already try with scaffold property " resizeToAvoidBottomPadding: false," but didn't work for me.
– Viren V Varasadiya
Mar 27 at 10:15
Can you try to be more specific with: "when i try to fill data in TextFormField then bottom container also replace which i don't what" ? I tried your code sample and couldnt find a problem: Image
– Niklas
Mar 27 at 9:56
Can you try to be more specific with: "when i try to fill data in TextFormField then bottom container also replace which i don't what" ? I tried your code sample and couldnt find a problem: Image
– Niklas
Mar 27 at 9:56
try to write something in TextFormField, bottom container also change the position which i actually don't want. bottom container("Demo Text") must not change it's position.
– Viren V Varasadiya
Mar 27 at 10:02
try to write something in TextFormField, bottom container also change the position which i actually don't want. bottom container("Demo Text") must not change it's position.
– Viren V Varasadiya
Mar 27 at 10:02
Do you want the "Demo Text" to be hidden, while the keyboard is open?
– Niklas
Mar 27 at 10:08
Do you want the "Demo Text" to be hidden, while the keyboard is open?
– Niklas
Mar 27 at 10:08
yes "demo Text" must hidden only TextFormField should change position so that user can see what he/she typing over their. i already try with scaffold property " resizeToAvoidBottomPadding: false," but didn't work for me.
– Viren V Varasadiya
Mar 27 at 10:15
yes "demo Text" must hidden only TextFormField should change position so that user can see what he/she typing over their. i already try with scaffold property " resizeToAvoidBottomPadding: false," but didn't work for me.
– Viren V Varasadiya
Mar 27 at 10:15
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55374033%2fui-collapses-when-writing-in-textformfield%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55374033%2fui-collapses-when-writing-in-textformfield%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you try to be more specific with: "when i try to fill data in TextFormField then bottom container also replace which i don't what" ? I tried your code sample and couldnt find a problem: Image
– Niklas
Mar 27 at 9:56
try to write something in TextFormField, bottom container also change the position which i actually don't want. bottom container("Demo Text") must not change it's position.
– Viren V Varasadiya
Mar 27 at 10:02
Do you want the "Demo Text" to be hidden, while the keyboard is open?
– Niklas
Mar 27 at 10:08
yes "demo Text" must hidden only TextFormField should change position so that user can see what he/she typing over their. i already try with scaffold property " resizeToAvoidBottomPadding: false," but didn't work for me.
– Viren V Varasadiya
Mar 27 at 10:15