Questions tagged [flutter-positioned]

55 questions
1
vote
0 answers

Flutter - Responsive Position of Widget among various Screen Sizes

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 with the widgets back in the same positions & keep…
Luke Irvin
  • 1,179
  • 1
  • 20
  • 39
1
vote
1 answer

get error of size.isFinite when set top and right for positioned that nested in stack

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 pixels If I remove top and right Only and only…
sunny
  • 2,670
  • 5
  • 24
  • 39
1
vote
1 answer

Flutter: How to keep offset when resize widget after rotated?

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 finishes rotating and resizing the widget, the…
mamena tech
  • 496
  • 5
  • 16
1
vote
1 answer

animated positioned toke too much space - flutter

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 Test extends StatefulWidget { const Test({Key?…
1
vote
2 answers

'Positioned' Widget not positioning 'Text' widget properly-Flutter

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:flutter/material.dart'; import…
ghosh_joy
  • 1,031
  • 1
  • 5
  • 10
1
vote
1 answer

Flutter, setting positioned widgets dynamically

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 12) they must fit to circle (must have dynamic…
Muhammet
  • 89
  • 6
1
vote
2 answers

I'm not able to add textfield inside positioned widget in flutter

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:math' as math; import…
1
vote
0 answers

Flutter : InteractiveViewer inside Stack

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 "widgets have infinite size", which is true thanks to…
Detained Developer
  • 1,134
  • 2
  • 13
  • 33
1
vote
0 answers

How do you position a PageView inside a Stack?

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 inside the Stack so that it appears above the button…
1
vote
1 answer

Curved Container with rounded button on top in Flutter

I'm trying to create a Container with a curve on the middle top and put a Round Button inside the curve. It should look similar to the Curved Navigation Bar package from Flutter, however, just without the animation. I've tried to work with Stack and…
WeAreThePeople
  • 125
  • 3
  • 9
1
vote
2 answers

Developing for different screen sizes using flutter?

I have an app that I am going to upload to the appstore and playstore pretty soon but I am worried that it might look funny on different phone screens that vary in sizes (The app is for mobile phones only no tablets) what's the best way to code for…
1
vote
1 answer

How to make stack-like positioned Widget scrollable?

I would like to create a UI component, which would be stacked on top of the rest of the screen, so I can transition it in the user's view, but I also want to make it scrollable. Screen without the scrollable component Scrollable component on top of…
1
vote
4 answers

How to use a Positioned widget in an AppBar

From what I've read this should be possible, but I can't quite get it to work. I have a Stack inside the bottom of an appBar, there's a Positioned list inside of the Stack. Everything seems to be positioned as expected, but the appBar is cropping…
theOneWhoKnocks
  • 600
  • 6
  • 13
0
votes
1 answer

I want to scale a widget using gesture detector that can also be dragged around the screen in flutter

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( top: (_y1 - _radius1).toDouble(), …
0
votes
1 answer

For the below program, How Textfield move up when keyboard appears in flutter?

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 correspond way. Scaffold( …
Phani
  • 1
  • 1