Questions tagged [flutter-positioned]
55 questions
11
votes
3 answers
Flutter - Positioned Widget in Stack causing Exception
I'm getting the below exception when I try to encapsulate the PandemicCard with a Positioned widget. If I render the card lone/no Positioned widget, it works just fine.
I/flutter ( 7331): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY…

albrnick
- 1,151
- 11
- 15
7
votes
1 answer
how can I animate a sprite to move to an arbitrary point in flutter?
I am trying to learn to use Animations with Stack and PositionedTransitions in Flutter and to that end am making a simple sprite based game. Currently my sprite appear at the end position of their animations rather than at the beginning and then…

lost baby
- 3,178
- 4
- 32
- 53
6
votes
2 answers
Positioned widgets must be placed directly inside Stack widgets
I am trying to implement gridview with image and a text inside it. where i want text at the bottom of image with black background. Here is my code for ListItem
class ListItem extends StatelessWidget {
String url;
String name;
…

Ravi
- 34,851
- 21
- 122
- 183
4
votes
2 answers
How to prevent Overlay from covering AppBar?
I have a custom widget positioned in a Stack. This custom widget creates an OverlayEntry linked to its position and inserts it into an Overlay.
The problem is that this overlay floats above the AppBar and the FloatingActionButton.
How to put…

Warwick
- 1,200
- 12
- 22
3
votes
3 answers
How can i place cancel icon on top right corner
Here is my code
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Align(
alignment: Alignment(1,-1),
…

Jaini Shah
- 45
- 3
3
votes
1 answer
Flutter : Drag Widgets across screen (Not Drag and Drop)
I want to just drag widgets across screen, not drag and drop.
But, whenever I leave it and start dragging again, it starts getting drag from the position it started with. As if it was reset.
My guess is build is called again and again, so it…

Detained Developer
- 1,134
- 2
- 13
- 33
2
votes
1 answer
Flutter: after rotate widget inside stack, when changing the position it is move wrong direction
i try to rotate the widget and then try to move around, it moves into different direction.
I'm realize, I need another calculation to normalize the position when its move, with condition rotate more than zero , but I don't know how, if anyone can…

mamena tech
- 496
- 5
- 16
2
votes
2 answers
How can I position widget (problem with Positioned and Stack Widget)?
I've got a problem with Stack and Positioned widget.
I'm trying to do something like this (picture below).
But instead I have something like this.
How can I move this mid rectangle up, to have divide screen in half like on first picture.
My code…

ArQczeg14
- 69
- 1
- 10
2
votes
3 answers
How to clip the corners of Positioned widget in flutter
Here is the output which I am getting:
I want to clip the green Positioned widget on corners with that of grey Container's rounded corners.
Any Help will be highly appreciated.
My current code:
import 'package:flutter/material.dart';
void main()…

Ketan Ramteke
- 10,183
- 2
- 21
- 41
2
votes
1 answer
How to position children in stack in flutter?
quick questions.. if i have a stack contains 2 Positioned children widgets , one of them contains CircleAvatar widget and the other is Column widget which contains two InkWell widgets so when I add a position left:10, for example the whole…

Muhammad bakr
- 63
- 10
2
votes
1 answer
Flutter: responsive Positioned in Stack
I want to place icon out of parent bounds and make it responsive (relative to parent's height).
There is no problem to place an icon outside from parent bounds with Stack and Positioned widgets.
But there is a problem to make it responsive.
So, if…

mr.boris
- 3,667
- 8
- 37
- 70
2
votes
2 answers
Flutter Positioned Widget not fixed depending size screen
My problem concerns the Positioned Widget. I'd like to position Widgets that match with an ExactAssetImage location of a Container. The context is to apply a PDF sheet to mobile with many assets with a RadioButton/editText.
The fact is, if I don't…

Kephas36
- 21
- 1
- 3
2
votes
3 answers
After Rotate Widget, GestureDetector not working on Stack
The widget cannot be touched or changed the position of the widget on the purple mark when I change the rotation of the widget.
and will be touched successfully when the rotation returns to 0 degrees or before change rotation.
working fine when not…

mamena tech
- 496
- 5
- 16
2
votes
1 answer
positioned widget work but align widget don't work in stack widget in flutter
Why when I try to use align in stack with alignment his child don't move ,
but with positioned it's work (I want use it because I can't center it in all mobile dimension)
This is my code:
@override
Widget build(BuildContext context) {
return…

B.Ghost
- 200
- 4
- 15
1
vote
1 answer
Positioned widget with GestureDetector, Dragging a widget will go off the screen
Im trying to Drag a container with GestureDetector, but when i dragg to the edges of the screen the container is going off the screen.
I wanted it to stop when it reaches the edges of the screen.
Here is the example code
import…

Uday
- 1,619
- 3
- 23
- 48