Category "flutter-layout"

How to create a bounded scrollable TabBarView

I need to implement the following layout in Flutter. When the user scrolls, I want the entire layout to scroll (hiding the header and tab bar). However, I ca

LateInitializationError: Field '_timer@137128430' has not been initialized in flutter Null safe version

I'm beginner for the flutter , I have added flowing code and flutter suggested to add late, I added late Timer _timer; after it showed me the following error

StatefulWidgets in ReorderableListView don't keep their state when reordering the list

Here I have a trimmed down page which creates a ReorderableListView, which has its body set to two RecipeStepWidgets with UniqueKeys set (I've also tried this w

Flutter - show android homescreen widget in the app

Is it possible somehow to display Android homescreen widget as a Flutter widget? I've read about PlatformView widget that can embed any Android view inside Fl

How can I add shadow to the widget in flutter?

How can I add shadow to the widget like in the picture below? This is my current widget code.

How to refresh a FutureBuilder in stateless widget

I'm using provider as a state management solution and I want a way to refresh the FutureBuilder without setState

What is Constraint layout's equivalent in Flutter?

Can I position a widget based on another widget? like this: Tiled Layout Without flutter_staggered_grid_view Library

How to make BottonNavigationBar route to different body Containers in Flutter

I'm creating a simple app consisting of three pages, the only thing to be changed when using the navigation bar is the body. I need every body to be in it's own

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