Category "flutter-layout"

flutter - error in accessing camera

I am creating an app in which I need to use camera of mobile device. I have created below class class CameraWidget extends StatefulWidget { @override _Came

Fix widget in bottom space

I need some help with a layout. I need put some widgets inside a "Scrollview" but keep the buttoms in the bottom space of screen. Image with a "Scrollview" wi

How to add image in Flutter

I am developing Flutter app for the first time.. I have an issue in adding a image. I have a below questions : Where to create images folder? Where to add asse

Flutter: Incorrect use of ParentDataWidget

I'm trying to do a homepage where it will scrollable with 3 or 4 titles and a horizontal lists for products once i put the ListView.builder i get this error: In

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