Why does the width of a form input shorten when it's inside a container with display: flex?

The design I’m trying to code I attempted to code this design of form input, but I encountered a problem when I used display: flex. The width of the input shortens instead of expanding as I expected. The result of my code Here are the results of what I did, the width of my form… Read More Why does the width of a form input shorten when it's inside a container with display: flex?

Widget without fixed width can constraint a Text widget?

Container( child: Row( children:[ Container( //icon in the left side height: 50, widget: 50, color: Colors.green, child: Icon… ), Container( //container text //width:200, if I set this width child:Text(‘a long text inside here…’, textAlign: TextAlign.justify, ),//long text here ), ], The code above is just a sample to explain my problem. I call this widget… Read More Widget without fixed width can constraint a Text widget?

MediaQuery inconsistent on different phones

i have a scaffold that keeps giving me overflow errors when i test on different phones. i only used mediaquery.of(context).size.height once in the code and i get overflow error 0f 40.392 and it makes no sense since i never used decimals when declaring heights Scaffold( backgroundColor: Colors.black, appBar: PreferredSize( preferredSize: const Size.fromHeight(50), child: AppBar( elevation:… Read More MediaQuery inconsistent on different phones

Make div fixed at the bottom of page with small height screen and take his specific position when scrolling

I have a save setting button for a profile edit web page. The page is long and I want the save setting button fixed at bottom of the page. On scrolling down it take her normal position. I can make it fixed at bottom on scrolling but I can’t make it stick on the normal… Read More Make div fixed at the bottom of page with small height screen and take his specific position when scrolling

How to make a div row with two elements responsive in mobile

so i have a page that looks like this with an HTML like this <form id="contact-form"> <div class="row" style="position:relative"> <div class="col-md-6"> <input type="text" placeholder="First Name*" required id="firstName" /> </div> <div class="col-md-6"> <input type="text" placeholder="Last Name*" required id="secondName" /> </div> </div> <div class="row"> <div class="col-md-6"> <input type="email" placeholder="Email*" required id="email" /> </div> <div class="col-md-6"> <input type="tel"… Read More How to make a div row with two elements responsive in mobile