Category "flutter-layout"

How to change Status Bar and App Bar color in Flutter?

I'm trying to change the color of the system status bar to black. The configuration seems to be overridden by the AppBar class. I can achieve what I want by ass

Copy Paste on pin text field in flutter not working

I have a PIN text field in flutter and I'm trying to paste the code in text field. However, only in the first text field is the code pasted and not in the other

Flutter: How to flip an icon to get mirror effect?

I want to flip this replay material icon so that it can be used as forward. Present Icon: Required Result:

The argument type 'Future<Widget>' can't be assigned to the parameter type 'Widget'.dart

Here I have to use pdfImageFromImageProvider function to stateless widget. So, Is it possible to resolve this issue using stateless widget? Future<Widget>

Flutter TextField Hint Text Not Align Center

Container( alignment: Alignment.center, de

Getting Incorrect use of ParentDataWidget error when I use ListView

In this part of my application I have ListView, when I run app I get this error and I can't resolve that: Scaffold( body: Directionality( textDirection: TextD

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 column that has 3 rows. Row [Image] Row [T

Flutter - Wrap text on overflow, like insert ellipsis or fade

I'm trying to create a line in which center text has a maximum size, and if the text content is too large, it fits in size. I insert the TextOverflow.ellipsis

Removing OverLayEntry on Back button in Flutter

I am using OverlayEntry and I want entry to remove on Back Press. OverlayEntry overlayEntry; overlayEntry = OverlayEntry(builder: (c) { return FullSc

Flutter detect PointerEvents over Widget

I have a sample code which detects a hovering stylus over a widget. The code is from this Stackoverflow Quesion. In short. It binds using GestureBinding.instanc

Programmatically scrolling to the end of a ListView

I have a scrollable ListView where the number of items can change dynamically. Whenever a new item is added to the end of the list, I would like to programmatic

Customize dropdownbutton - going up

It's maybe a stupid question, but I don't know how to make a dropdownbutton that go up and no down when it is focused. Maybe I need to create my own ? Or is it

How to display a dynamic map using Tabs and SliverGrid

I have a Model called service provider that contains a the following data: class ServiceProvider { final String logoUrl; final int lowerPrice; final

Flutter : No ScaffoldMessenger widget found

I am trying to create a snackbar on the click of a button in flutter, but getting exception that No ScaffoldMessenger widget found. The same code seems to work

Flutter: Add custom color to existing theme

I am using Flutters built-in themes like this: return MaterialApp( theme: ThemeData.light().copyWith( primaryColor: const Color(0xFF5E975

No Material widget found which widget is inside of Scaffold

The following assertion was thrown building IconButton(Icon, padding: EdgeInsets.all(8.0), dirty): No Material widget found. But you'll see from the code below

Need help for a showModalTopSheet

I would like to be able to implement a showModalTopSheet on the booking.com site On the first image (img1), a search has already been performed. The search crit

Flutter Snackbar on screen initState

Three Questions: How to load snackbar in flutter in initState or when app loads the initial screen? I have the code below but it throws an error and doesn't loa

Ripple effect does work for long press in List tile

I wrapped List tile widget with gesture widget because I want to execute some code on onLongPressStart and onLongPressEnd Call back. But due to this the ripple

How can I have rounded corner on my Dismissible widget?

I'm currently developing a widget that needs to have rounded corners, but whenever I'm dragging my Dismissible widget from left to right, the Dismissible widget