Category "flutter-layout"

Flutter error: Each child must be laid out exactly once. On building layout

I'm using flutter_bloc. I've got code like this: class Settings extends StatelessWidget { final _formKey = GlobalKey<FormState>(); @override Widget

Flutter how to display a Custom Clipper when (or inside) using a Custom Scroll View

so here's the deal. I created (sort of) a custom clipper shaped like a wave inside a class called WaveClipper the wave clipper class: class WaveClipper extends

How to create a circle icon button in Flutter?

How can I create something similar to a FloatingActionButton?

how to disable screen capture in flutter programming language?

In this case I will disable the screen capture on certain pages. which contains documents that are vulnerable to misuse. Does Flutter support that? this code ma

In Flutter is it possible to increase the transparency of a Dismissible widget the further it is dismissed?

I have a Dismissible widget in my application that I drag down to dismiss. There is a requirement that the transparency of the Dismissible should increase the f

BottomNavigationBar overflowing in flutter

This is my code. Bottom navigation Bar overflowing by 12 and 26 pixels to be precise. Any Solutions?** Tried Every way. I also created my custom Bottom Naviga

How to expand button vertically to match the height of row in flutter

I am working on a flutter project I have a TextField and an ElevatedButton.icon in a Row. The height of TextField is higher than ElevatedButton.icon as shown in

Flutter CustomClipper with Stroke Border

I want to create a Widget with 2 container using a CustomClipper and add a line/stroke/border between them like: So I want a bottom border on the red colored C

Match child height size in a Navigator widget

I had a problem with the Navigator widget: I need to match the child widget height. My Navigator widget is inside an Expanded widget but when I change route to

Match child height size in a Navigator widget

I had a problem with the Navigator widget: I need to match the child widget height. My Navigator widget is inside an Expanded widget but when I change route to

how to add elements to Listview.builder without rebuilding all the previous items

i use Listview.builder with a List of items in flutter , when the user scroll down i listen the the scroll controller than i get more data from firebase Firesto

How to remove space between keyboard and comment box in flutter?

I can't remove the space between the comment box and the keyboard. Please see the below image for the issue and below is my code floatingActionButtonLocation:

How to increase the width of getx default dialog in flutter

I am new to flutter and I am using Getx package for state management and route management. I have tried many ways to give get default dialog full-screen width b

GridView inside Expanded not visible, only visible when using Container with a specified height

I have a gridview that I'd like to display in a non-specific height container. However, the gridview only shows up when I use container with a specified height.

Subclassing Widgets with complex signatures

As far as I found out, RadioListTile with Text als child has unlimited with. As a helper class, I'd like to subclass RadioListTile with a default Text child of

How to create a dotted border around a box in flutter?

I am building a list of boxes layouts in my app using flutter. I want dotted border around the box. I have used card widget to create the boxes. But, how can I

Text Overflow inside container creating design such as messenger messages in which text is inside container in which height and width not mentioned

I want container to maintain its height and width according to the text without the text overflowing such as if there is small text width is small but if text i

I want to Save Contact Number at Mobile storage using Flutter

I wrote this function to save contact number, but it can't save on local storage Future _saveContact() async { Contact contact = Contact(); contact.fami

How to create glass widget in flutter app?

I need to make glass card view widget in the flutter (like image). Its mode without using the package. But if there is no solution, if there is a package for it

how can I save the state of the 'liked' post by the user?

I have two collections in firestore, 'users' and 'posts'. HomePage is where all the posts are displayed in a listview and every post has a 'like' button. I'm sa