Questions tagged [flutter-positioned]

55 questions
0
votes
1 answer

How to stop overlaying in a positioned stack when keyboard is opened

I have this Positioned Stack and when I open the keyboard to enter in the textField it overlays everything and all the widgets move up. How can I stop it and keep them in the same position? @override Widget build(BuildContext context) { …
0
votes
1 answer

How to Position inside a Stack widget

I have this Stack widget and a Positioned widget inside it. But the position of it doesn't change according to the properties of Positioned. Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const…
0
votes
0 answers

Resize a Draggable container by using the container placed on in the bottom right end by dragging it

I have placed a draggable container whose child consists of a positioned container widget with which resizing can be done by using gesture detector widget. Currently, when I try to resize the parent container by dragging the bottom right positioned…
srk_sync
  • 339
  • 1
  • 4
0
votes
0 answers

showMenu anchor from Bottom

I am trying to Show popup Menu with showMenu Here is the minimal code onPressed: () { final RenderBox renderBox = _showMenuKey.currentContext?.findRenderObject() as RenderBox; final Size size = renderBox.size; final Offset offset =…
abdullah_bd
  • 484
  • 3
  • 12
0
votes
1 answer

Flutter LayoutBuilder BoxConstraints(unconstrained) inside Positioned inside Stack (BoxConstraints forces an infinite width and infinite height)

I have an Stack with multiple children, some of them inside of Positioned with different vertical and horizontal values setted. Some of the childs need to know the Stack constraints in order to measure themselves based on the available width and…
0
votes
1 answer

How can I center a Positioned while also making it wide?

So I have a Positioned widget (the DottedBorder widget provided by the package of the same name is a Positioned): Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ DottedBorder( borderType: BorderType.RRect, …
mikwee
  • 133
  • 2
  • 14
0
votes
1 answer

AnimatedPositioned - how to change position automatically without pressing button

i want to use the animated positioned class to change widget position with the launch of the screen without pressing a button! class MyStatefulWidget extends StatefulWidget { const MyStatefulWidget({Key? key}) : super(key: key); @override …
ILii
  • 83
  • 3
  • 10
0
votes
1 answer

flutter : use index in position , stack parent

i have to use index in position , but when I use listView.builder for I , I got this error : Incorrect use of ParentDataWidget. The ParentDataWidget Positioned(left: 157.2) wants to apply ParentData of type StackParentData to a RenderObject, which…
0
votes
2 answers

flutter : positioned not move in stack

I have a stack and I want to use listviewBuilder in it. and I use positioned in list view, but position not work and don't move, can anyone help me, please? it's my list : List timeBookMark = [200.0, 500.0, 100.0, 90.0, 900.0, 500.0, 600.0]; and…
0
votes
0 answers

Changing parent of Positioned in Stack and translate it smoothly from position of previous parent to new parent

I have an AnimatedPositioned inside bottom stack and I want it to slide into New Parent Stack at the center when I tap on it. The problem is, bottom Stack's children (the AnimatedPositioned and other sibling AnimatedPositioned widgets) is stream…
Yunus Yurtturk
  • 509
  • 1
  • 8
  • 26
0
votes
1 answer

How to set left and top in a Positioned widget in pixels or any other units in Flutter/Dart?

How can I set the left and top of a Positioned widget in pixels or any other units in Flutter/Dart? What unit are the left and top values in? Are they in percents or independent pixels or something? If not, what unit does it use?
The Amateur Coder
  • 789
  • 3
  • 11
  • 33
0
votes
2 answers

Flutter: Wrap container around Stack with Positioned children

I want to center a Stack widget that includes Positioned children. The size of the Stack is not known before rendering. Unfortunately, the Stack seems to have an unlimited size (as seen, when wrapping a container around it). import…
Paul
  • 1,349
  • 1
  • 14
  • 26
0
votes
1 answer

Flutter: why is a Positioned widget transparent over a TextField?

Why is the Positioned red widget transparent, so that the Second Label Text widget can be seen through it? Setup: Column: Stack TextField Positioned Red Container TextField (Second Label Text) The intention is that the red widget covers in…
johnnyMac
  • 381
  • 2
  • 14
0
votes
0 answers

Constrainting layout to not go out of bounds with Positioned widget

I am currently working on a layout that displays a Positioned widget on the entire screen. It's positioning itself close to the detected barcode, Look at the image below for an example. But when the barcode moves to close the the left edge of the…
Shawn-Ross
  • 137
  • 2
  • 12
0
votes
1 answer

Put fixed points on PhotoView in Flutter

Before I tell you my problem, I want to tell you what is my app doing. I have a PhotoView widget library which allows me to zoom in/out my image. And I have a GestureDetector widget which detects when it is a long press it gets LocalPosition (dy,…
clauub
  • 1,134
  • 9
  • 19