130 questions
1
vote
1
answer
380
views
How to use Container.image.src and Container.image.fit instead of image_src?
In Flet of Python that uses Flutter UI controls, I used the image_src and image_fit but my terminal says they are deprecated.
ft.Container(
expand=3,
image_src=&...
0
votes
2
answers
141
views
Flutter container borderRadius , white background [duplicate]
Im using a container for a bottom navbar. The navbar has borderradius
borderRadius: BorderRadius.only(
topLeft: Radius.circular(30),
topRight: Radius.circular(...
-1
votes
1
answer
61
views
How to make a custom bottom navbar with a curve?
How to make a custom navbar with a curve like this? What i'm trying to make a navbar with a curve like this, when that particular navbar item is selected. I have used a container now Which will be ...
1
vote
1
answer
67
views
Weird behavior of Flutter list-view. It overflows its bounds
I observed some weird behavior of Flutter's list view. It overflows it's boundary. I basically needed a screen with a heading area, a list-view in the middle and a footer. I enclosed the three ...
0
votes
1
answer
68
views
Clipped parts of the image extend beyond the boundaries of the container in flutter
I have one image container. when clip image that time some image part is show outside of the container.
i add one image the right side of image part outside of container.
child: Container(
...
0
votes
1
answer
350
views
Image clip using the container position in flutter
In this code one image container with black border and on this container one movable container using the movable container when click save button clip the image of using the movable container top and ...
0
votes
1
answer
118
views
Image crop using the container position in flutter
In this code, it works fine. but I have to change some.
In this code, one container fixed position, and in this container, one image is added. and one movable container, and one crop button.
but when ...
0
votes
1
answer
322
views
How to crop assets image with out any package use in flutter
i have one assets image and on this image one container i have to crop image when click save button and show crop image to next screen. i try this code but when click save button the show error. how ...
1
vote
1
answer
105
views
How to move container when bottom sheet open in flutter
I have one home screen. On this screen, there is one movable container and one floating button. When I click on this button, it should open the bottom sheet model. When the bottom sheet model is ...
0
votes
1
answer
72
views
image container not move outside of the frame in flutter
I have one image container, and on this image container, there is one frame container with a fixed position. However, when the image container moves, if the boundaries of the frame container and the ...
0
votes
0
answers
63
views
if bottom sheet open that time how to move back screen container in flutter
When double tap on image container that time open bottom sheet model and alternative container is show.
when bottom sheet open that time my alternative container show but i have to move this ...
0
votes
1
answer
82
views
Flutter: keep old value until implicit animation is done
I have this code:
AnimatedOpacity(
duration: Duration(seconds: 1),
opacity: _text == 'hide text'? 0 : 1,
child: Text(_text),
)
What is the easiest way to show old value of text (eg not 'hide ...
0
votes
0
answers
84
views
How to crop image using resizable draggable point in flutter
In this code i have resize container using all four corners but how to crop using all four mid point using this mid point crop image and than resize only crop image like below images in flutter.
In ...
0
votes
1
answer
54
views
what is solutions for the resizable draggable container in flutter
in this code i have top left and bottom right solution for the drag the container. how to set another all point.
here i have only two point solution not set the all position point. in this code i have ...
1
vote
2
answers
79
views
How to set text in the center of the container in Flutter when trying to reduce container size?
when text container size decrease with font size that time the text not set in center. it is gone below size of container how to solve it.
Container(
height: height,
...
0
votes
1
answer
608
views
minLines and maxLines must be null when expands is true in flutter
in this textfiled i use expands and maxline both but show error how to set maxline 1. this textfiled i used in resizable container when the container size go small the text font go to new line but i ...
0
votes
1
answer
114
views
When resize the container text not stay in center in flutter
here when the drag the container the text is not center if some height and width get than container text set in center.
double width = 110.0;
double height = 40.0;
double fontSize = 14;
bool ...
1
vote
3
answers
171
views
Overlap a button at the bottom center edge in Flutter
I'm a newbie in Flutter. From what I can figure out, I need to use Stack, Container, Position to get the result, but unable to come close to it. If anyone can point to a related article to achieve ...
1
vote
0
answers
230
views
how to rotate container using rotation icon in flutter
In this code i have to rotate text container. but the container rotate only one direction and than another not rotate full 360 degree.
the container move the 360 degree and smooth not more speed to ...
3
votes
1
answer
293
views
Is there a correct way to switch between two widgets (app bars in my case) by swiping up and down?
I'm currently working on a page in my Flutter app and facing challenges implementing a specific logic. When the app launches, I want the page to initially display the 'appbardown' widget (the larger ...
0
votes
1
answer
102
views
image not fit in container in flutter
in this code i have to fit image into container. but not chnage any widget it is same only image fit in container.
body:
GestureDetector(
onScaleStart: (details) {
...
0
votes
1
answer
124
views
Image position changes from center to top in flutter when adding a container
I am displaying an image in Flutter. This image is displayed at the center of the screen. After I add the container using the floating action button, the image moves from the center to the top ...
0
votes
0
answers
87
views
get error of size.isFinite when set positioned for container in stack
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;
...
0
votes
1
answer
168
views
Remove default padding between FilledButton and Container
I am starting on Flutter and I have a small UI issue that I cannot find a way to fix.
There is a small margin between the button and the container that I would like to remove.
Below is my code:
...
1
vote
2
answers
84
views
How to make part of circle at background color in Flutter
Like below
I used BoxDecoration in Container Widget.
But I have not created
Container(
height: 100,
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: const BorderRadius....
0
votes
0
answers
55
views
How to fill Wrap-Widget's available space?
I have a Wrap Widget which has a couple of Containers as children. These Containers have a Text Widget as child with different String lengths.
return SizedBox(
height: MediaQuery.of(context).size....
0
votes
2
answers
107
views
vertical divider is not displaying on my emulator in flutter
I have tried using the widget verticaldivider() in flutter, The code seems to work fine but i the divider is not visible on my app. where i want it to be. I want the divider to be between two images. ...
0
votes
1
answer
42
views
Flutter container doesnot change as the bool becomes true in ternary operator
selectedDateTime != null //if true
? Container(
decoration: BoxDecoration(
gradient: LinearGradient(
...
0
votes
2
answers
512
views
Not able to set BorderRadius at bottomRIght side for Container
I want to give bottom right corner radius to Container. For that I have set right and bottom border of the Container.
However, it is not allowing me to set the bottom right corder radius.
The ...
0
votes
3
answers
720
views
How to hide a part of the container widget beyond the screen without violating Flutter's layout constraints
I am new to flutter. And i am trying to hide the bottom red part (see the first screenshot) of the blue container under the screen, in order to hide the buttom part of a white border and use this ...
0
votes
3
answers
716
views
Container border is not cliping in flutter
I want to make a UI which has a outer container which has border. Inside the container I have a column which contains a image and a container text inside. I want the inner container which has text to ...
0
votes
1
answer
178
views
Need automatic adjustment for my text to fit within a container with a length of 100
Container(
height: 100,
color: Colors.black,
child: const Text(
'height, width vs varsa önce bunlar kendisini ön plana ...
1
vote
1
answer
853
views
Another exception was thrown: Unexpected null value. Flutter
Here is my code:
class ListItems extends StatelessWidget {
final String child; const ListItems({super.key, required this.child});
@override Widget build(BuildContext context) { return Sizer(builder: ...
0
votes
1
answer
1k
views
how to a place half of the widget outside of another widget in flutter?
I have a Column which has a 2 items : 1- badge and 2- container . I want to place the half of the badge inside the container , the image will be more clear ,
and here is the parts of code :
Column(
...
-1
votes
1
answer
22
views
Is there a logic that allows the display of an image when available in container in flutter?
Is it possible to create a logic that allows the container to only display only text (image above) or text and image (image below) when image is available.
-1
votes
3
answers
659
views
i am change the background color of container using hexcode but showing error
Container(
color: Color('#260033'),
height: 150.0,
width: double.infinity,
child: Column(
i want to use hex code to change the container color.pls help me regarding this.
Container(
color: Color('#...
-2
votes
1
answer
675
views
Unable to scroll in a Container with PageView.builder in Flutter
enter code hereI'm having trouble scrolling through a PageView.builder widget that's embedded inside a Container in Flutter. I've tried setting the physics property of the PageView.builder to ...
0
votes
1
answer
255
views
listview builder moves out of the container bounds when i add content in my list
Container(
height: MediaQuery.of(context).size.height * 0.35,
width: MediaQuery.of(context).size.height * 0.45,
decoration: const BoxDecoration(
...
0
votes
3
answers
654
views
Flutter form in Container, when validator works Container comes too small for Form
Im a new flutter developer, so please can u help me with this problem.
The problem is when validator in TextFieldForm "works" it adds text that user did something wrong.
And my Container is ...
0
votes
2
answers
691
views
Why can't make containers have the same width inside the Row
This question has been asked many times but none of the methods worked for me.
I've been trying to make these containers have the same width and height. I tried using Expanded but apperantly, it ...
0
votes
1
answer
48
views
How to implement colours dropdown in flutter?
enter image description here
how to implement this dropdown in flutter?(please refer the image above)
when the dropdown is expanded it should show a list of colours in a circular container.
0
votes
1
answer
2k
views
Flutter loading text animation
How to achieve this effect with Flutter? Preferably with something like animatedContainer, but not necessarily.
0
votes
1
answer
51
views
Set container width according to image.network widh in flutter?
i want to fix my container size(width) according to the image which is getting from api(image.network..).So, how can i go for this?
i am trying to set dynamic width of container according to image ...
1
vote
2
answers
774
views
How to add only Border shadow of a cointainer in flutter?
I have a container with a lighter background color (light green with opacity of 50%) and the container shadow color is dark black (opacity 100%). Because of darker shadow color my container color got ...
0
votes
1
answer
87
views
Flutter image in container look streched
When I try to place an image in container with specific height the image look stretched please find the below screenshot. Is it possible to fit the image as actual image without stretching.
actual ...
0
votes
0
answers
189
views
How to make container fixed. the container wont resize after clicking the widgets inside it . Flutter
I am having trouble with my design as i want this container as a background for my dropdowns and textformfield. but its changing its size once i click on description or dates.
Please help how to make ...
0
votes
1
answer
1k
views
Diagonal Design and Skew Container in Flutter
I want to achieve the layout as attached image in this question
there are 3 colors:
navy, purple, and white.
I'm aware that custom clipper can be used, but I'm unable to make one and what values to ...
1
vote
1
answer
2k
views
How to set Container Background image as Image.file() form XFile source in flutter
I am using this function to get images from the gallery
_getFromGallery() async {
XFile? pickedFileGal = await ImagePicker().pickImage(
source: ImageSource.gallery,
maxWidth: 1800,
...
0
votes
1
answer
242
views
flutter container Image not fitting to screen
I am trying to fit image to the whole screen. I am using media query to fill the image for the whole screen, but the problem is image is scrolling when using media query full height. Is it possible to ...
0
votes
1
answer
46
views
Flutter same container different content animation
In a container widget I am showing a text widget for displaying content. I am using same container but the text content differs based on user selection. when user choose different option is it ...