Category "flutter-layout"

Scroll listener doesn't work for listview inside a SingleChildScrollView Flutter

I'm currently working on a project which requires a listview as a child of ScrollView. I added a scroll controller in the listview and a scroll listener in the

Flutter ExpansionTile Extention button placement

I have a container which i want to expand one i click the down arrow button. If you look in this picture (https://gyazo.com/eeaa9fb8d3f93d5f6f190ced2389e2e1), y

The method 'of' isn't defined for the type 'ThemeProvider'. in Flutter

I am Beginner to Flutter just following the YouTube tutorial on building User Profile while doing everything is OK but Theme Provider gave me the error I didn't

flutter arabic justified alignment not working

I'm developing a quran app with flutter and i've done most of the work. but when it comes to the proper alignment it doesn't work. output image is here I'm doin

Flutter - Media Query for keyboard height always returns zero

I'm trying to subtract the height of the keyboard from the height of the screen so I can apply that value to the height property of my listview container. This

Flutter Transform translate a widget from current position to another position

If I want to translate any Widget in my flutter app, I will use below code. Transform.translate() Translate function required Offset (dx,dy). But I want to f

How to solve "Invalid image data" error in Flutter

I'm using SQLite for storing data locally. insert an image as a string and get them to show here is the error that occurs _Exception (Exception: Invalid image d

Refresh Indicator not working with NestedScrollView

@override Widget build(BuildContext context) { super.build(context); SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values); return Anno

Flutter Duplicate Global Key detected on widget tree

I have this issue when implementing flutter's showcaseview despite following its official documentation. The errors I get have to do with a duplicate global sta

Wrapping text inside a circle (Flutter)

is it possible to wrap text inside a circle in Flutter? Here is a failed example. Ideally the text would fit inside the circle and overflow at the end only. Cl

Vertical divider inside ListTile header

I am attempting to add vertical divider between the leading portion and the title of a ListTile. I understand that Flutter now has a VerticalDivider widget,

In Flutter, why does the DraggableScrollableSheet show blank space when there are less children?

I want the DraggableScrollableSheet to stop moving up when there are less items in the ListView. Instead, blank space is created underneath to fill the entire s

Flutter - TextFormField expand not working properly

I'm trying to create my own TextFieldForm to use in my app by specific design and I have some troubles in order to expand it if it's the case. Currently, it loo

Flutter expansion tile remove trailing

i have a exoansiontile and i want it to be like a box, everything centered, the problem is that if i add a text that is too long, i get the overflow error and i

How to set Flutter AppBar Transparent without the Status bar

I tried to set a transparent appbar using. return Scaffold( extendBodyBehindAppBar: true,       appBar: AppBar(   &nbs

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