Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

I am working on a vpn app and on one of the screens i have to use stack for showing different widgtes over each other like gradient below and a globe svg on top and then a circularProgressIndicator on ...
Mian Faseeh's user avatar
0 votes
2 answers
62 views

I am trying to do this particular design for the Login page. But the result I got it is on below: The code I tried is: Stack( fit: StackFit.passthrough, ...
Mou Rani Biswas's user avatar
0 votes
0 answers
40 views

I am currently trying to place Image.asset widgets in a circle based on the degrees. I have tried using the Positioned and Offset.from Direction, but the values seem to be off. I have split the ...
gputhige's user avatar
  • 139
0 votes
1 answer
127 views

this is the home page : @override Widget build(BuildContext context) { return Scaffold( body: LayoutBuilder( builder: (BuildContext context, BoxConstraints ...
oussama ennadafy's user avatar
0 votes
1 answer
178 views

I have set positioned as children in Stack. But when running the code, the error shows this type: Failed assertion: line 600 pos 12: 'size.isFinite': is not true. This is my full code. I have used ...
Harsh Rajpara's user avatar
0 votes
0 answers
87 views

I have set positioned as children in Stack. but when run the code the error show this type: Failed assertion: line 600 pos 12: 'size.isFinite': is not true. this is my code double width = 200.0; ...
Harsh Rajpara's user avatar
1 vote
0 answers
104 views

I have 3 positioned as children of Stack inside of ListView.builder also set top and right for all 4 positioned when run, got this error size.isFinite if used in the demo the stack and inside of ...
Harsh Rajpara's user avatar
-1 votes
1 answer
69 views

import 'package:trekmate_project/widgets/choice%20chips/scroll_sample.dart'; class ContainerSample extends StatelessWidget { const ContainerSample({super.key}); @override Widget build(...
Faiz's user avatar
  • 1
0 votes
1 answer
436 views

I am using Flutter to create an app. I have a stack and want to position one of its child widgets (an svg picture) to be exactly 270 pixels from the top of the screen, and be centered horizontally at ...
John Doe's user avatar
3 votes
2 answers
1k views

Here is my code InkWell( onTap: () { Navigator.pop(context); }, child: Align( ...
Jaini Shah's user avatar
2 votes
1 answer
1k views

So far I've been able to drag the widget around the screen but the scale doesn't change. I've printed the scale and it is always shown to be one. Here's the code I've written Positioned( ...
St-Lucifer's user avatar
1 vote
1 answer
778 views

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. ...
Uday's user avatar
  • 1,729
0 votes
1 answer
92 views

For the below program, How Textfield move up when keyboard appears in flutter ? I already tried resizeToAvoidBottomInset and SingleChildScrollView, But there is no use. Please check and suggest the ...
Phani's user avatar
  • 3
0 votes
2 answers
1k views

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 ...
Pulina Hansana's user avatar
0 votes
1 answer
126 views

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( ...
Pulina Hansana's user avatar
1 vote
0 answers
156 views

I'm working on something that would be similar to a Story feature like you see on Instagram or Snapchat. My goal is to be able to add my own custom widgets, save what I create, and then display it ...
Luke Irvin's user avatar
  • 1,244
-1 votes
2 answers
1k views

I want to add a different persons image as attached(The images inside circle avatar stacked over one another).How to achieve this. I tried the following code but didn't get the result as expected ...
F sam's user avatar
  • 61
1 vote
1 answer
290 views

I have 3 positioned as children of Stack inside of ListView.builder also set top and right for all 3 positioned when run, got this error size.isFinite Also I have error that buttom overflowd by102 ...
sunny's user avatar
  • 2,765
0 votes
1 answer
2k views

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 ...
Gilgamesh's user avatar
  • 337
0 votes
1 answer
36 views

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: <Widget>[ ...
mikwee's user avatar
  • 163
1 vote
1 answer
1k views

My main goal is, to create a flexible widget with features. manage widget position. rotate widget. Resize the widget from all sides. 1 and 2, I've managed to make. but the 3rd point, when the widget ...
mamena tech's user avatar
-2 votes
1 answer
119 views

i Want to fix the bottomsheet down when keyboard comes up Here is the code strcuture how i created the stack
Sagufta parveen's user avatar
3 votes
1 answer
1k views

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 ...
mamena tech's user avatar
2 votes
2 answers
5k views

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 ...
ArQczeg14's user avatar
  • 119
1 vote
1 answer
299 views

animated positioned took too much space while changing the position. the question is there is any way to minimize this space ? it ascends to safeare the source code is below so you can try it: class ...
ILii's user avatar
  • 109
1 vote
1 answer
4k views

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({...
ILii's user avatar
  • 109
0 votes
1 answer
524 views

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 ...
user17838882's user avatar
0 votes
2 answers
3k views

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, ...
user17838882's user avatar
-2 votes
1 answer
2k views

I am trying to create a view that consist of a background image with widgets positioned dynamically in certain places on this image, each widget will have an x and y that needs to be calculated for ...
Oxodiya's user avatar
1 vote
2 answers
1k views

Needed the Alexis Sanchez Text to be under the picture but for some reason, its going right at the bottom of the screen, I am not being able to figure out why. Here is my code: import 'package:...
ghosh_joy's user avatar
  • 1,107
0 votes
0 answers
204 views

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 ...
Yunus Yurtturk's user avatar
0 votes
1 answer
1k views

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? ...
The Amateur Coder's user avatar
1 vote
1 answer
783 views

I have a UI like Now I want to create the letters on circle by given data. I need it to be a dynamic, when letters are less, (like 3 or 4) they must be far from each other. But, when they many (10 or ...
Muhammet's user avatar
0 votes
2 answers
3k views

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 ...
Paul's user avatar
  • 1,933
1 vote
2 answers
808 views

I'm not able to add textfield inside positioned widget. Could someone help me with the code import 'package:flutter/material.dart; import 'dart:math' as math;import 'dart:math' as math;import 'dart:...
Dharshini T's user avatar
0 votes
1 answer
1k views

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 ...
johnnyMac's user avatar
  • 401
3 votes
3 answers
5k views

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: ...
Ketan Ramteke's user avatar
5 votes
3 answers
3k views

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 ...
Warwick's user avatar
  • 1,240
3 votes
0 answers
644 views

Problem : I am trying to scale widgets inside a Stack but that does not seem to work. The solution was to add constrained: false to the InteractiveViewer. But then, it throws error saying "...
Detained Developer's user avatar
4 votes
1 answer
3k views

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 ...
Detained Developer's user avatar
0 votes
1 answer
1k views

I'm trying to position the search icon inside the perimeter of the first input in the Row but getting errors and blank screen. The code without Stack and Positioned works: Row( ...
Tom Parandyk's user avatar
1 vote
0 answers
661 views

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 ...
Shawn-Ross's user avatar
3 votes
2 answers
4k views

I have a Stack containing 2 Positioned children widgets, one of them containing a CircleAvatar widget and the other a Column widget. The Column widget contains two InkWell widgets but when I add a ...
Muhammad bakr's user avatar
2 votes
1 answer
3k views

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 ...
mr.incredible's user avatar
2 votes
2 answers
4k views

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 ...
Kephas36's user avatar
0 votes
1 answer
1k views

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 ...
clauub's user avatar
  • 1,150
0 votes
2 answers
1k views

How can I have matrix of material buttons stretch across whole screen, if I just use height they will stretch to little or out of the screen based on screen size? I can do that easily just in matrix ...
Jan's user avatar
  • 377
1 vote
0 answers
1k views

I have a PageView and a button inside a Stack (the PageView is at the bottom of the Stack). I have the button in the bottomCenter using Stack's alignment property. I want to position the PageView ...
Michael Rodeman's user avatar
0 votes
2 answers
116 views

How to make it possible to Center the Animation? I'm using the https://pub.dev/packages/simple_animations package. I have a Stack with multiple Positioned Widgets, with Animations as childs. The issue ...
midi's user avatar
  • 4,168
0 votes
2 answers
4k views

I'm creating a widget that presents a Stack inside a Container. Inside the Stack there is a dynamic Column inside a Positioned widget, which sticks the Column to the Bottom. I am trying to wrap the ...
F.SO7's user avatar
  • 1,005