Category "flutter-layout"

How to add image to ExpantionTile in flutter

I've been working on an app in which I want to add an image in the ExpansionTile function but the catch is that flutter don't allow us to add image in that. For

Flutter: How to draw a star

I am trying to custom my container shape to look like this: I tried to do it with customPaint but I don't know very well this widget so I need help. How can I

Flutter - Infinite Scroll & Images causes App Crash

We are building a product listing page in flutter and trying to load products as the user scrolls and reaches the end of the page. It's basically a grid view bu

Switching Camera Aspect Ratio in Flutter

How do we switch the camera preview aspect ratio in Flutter? I would like to switch be able to switch from 1:1, 4:3, and 16:9 aspect ratio I am using this Camer

I want to make a slider custom bottom value with incremet in flutter

i want this type slider in flutter any one please help me i want to make this type slider with the same value get by the slider value i am facing the problem to

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