Category "flutter-layout"

How to design custom ListWheelScrollView like below image in flutter?

I added two ListWheelScrollView to show the value first for numbers(1-9) and second for string values like an hour, day, week, and month but focus item design d

How to find the widget size to avoid rendering when widget render outside the device area

Here I have a center Offset value that is where I need to position the widget, I have positioned the widget with the help of Positioned widget and moved the wid

How to check if google user login is new account in flutter

How to check if the user that login with google is new or existed. If new I want to navigate to other screen. If not I want to navigate to home screen. loginG

How to check if google user login is new account in flutter

How to check if the user that login with google is new or existed. If new I want to navigate to other screen. If not I want to navigate to home screen. loginG

Inner shadow effect in flutter

According to the github issue there is no inset attribute in ShadowBox yet. Is there any workaround how to emulate inner shadow right now in flutter. I like to

Using flexible SliverAppBar as non-top element

I'm trying to display a flexible SliverAppBar below a custom app bar (let's say it's a container with a height of 80.0). When making the SliverAppBar the top el

The argument type 'Function?' can't be assigned to the parameter type 'void Function()?'

I have a refactored widget which has an onPressed. But whenever I try to access that function, I get this error : The argument type Function? can't be assigned

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