Top "Flutter" questions

Flutter is an open-source UI software development kit created by Google.

Flutter: Expanded vs Flexible

I've used both Expanded and Flexible widgets and they seem to work same. What is the difference between Expanded and …

flutter dart flutter-layout flutter-widget
When the keyboard appears, the Flutter widgets resize. How to prevent this?

I have a Column of Expanded widgets like this: return new Container( child: new Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: <…

keyboard resize widget textfield flutter
Add border to a Container with borderRadius in Flutter

Container( child: Text( 'This is a Container', textScaleFactor: 2, style: TextStyle(color: Colors.black), ), decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), color: Colors.…

flutter dart flutter-layout
Flutter align two items on extremes - one on the left and one on the right

I am trying to align two items at extremes one on the left and one on the right. I have …

flutter flutter-layout
Flutter Error: MediaQuery.of() called with a context that does not contain a MediaQuery

I have been trying to get the size of the whole context view in Flutter. But every time I try …

dart flutter
TextField inside of Row causes layout exception: Unable to calculate size

I’m getting a rendering exception that I don’t understand how to fix. I’m attempting to create a …

dart flutter
InkWell not showing ripple effect

Tapping the container triggers the onTap() handler but does not show any ink splash effect. class _MyHomePageState extends State<…

flutter dart flutter-layout
Flutter: Finding Difference Between Two Dates

I currently have a user's profile page that brings out their date of birth and other details. But I am …

flutter date dart difference
setState() or markNeedsBuild called during build

class MyHome extends StatefulWidget { @override State<StatefulWidget> createState() => new MyHomePage2(); } class MyHomePage2 extends State<MyHome> { …

listview dart size flutter setstate
Flutter: Outline input border

I was trying to build a border for my text field like: return TextField( ... border: OutlineInputBorder( borderSide: BorderSide( color: Colors.…

dart flutter textfield