Questions tagged [flutter-container]

For questions relating to Flutter's Container class. Use this tag in combination with the general [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.

Reference:

107 questions
0
votes
2 answers

Cannot provide both a color and a decoration to a Container

every time that i restart the code to check app , i have an error that say Cannot provide both a color and a decoration , the color argument is just a short hand for "decoration : new Boxdecoration( color : color ) " maybe its true and i have a…
30bhan
  • 11
  • 3
0
votes
0 answers

Minimum size for container

Image You can see from the image, 1 line and 6 lines are the same size. If I had one that is 20 lines, they would also be the same size as the biggest. There is no property for the minimum size on a container within Flutter. So if I have some…
boatbuyer
  • 3
  • 2
0
votes
1 answer

BoxConstraints(w=Infinity, 0.0<=h<=Infinity) | How to rectify?

Text is not rendering on the home page of my app, which is where I am getting the issue. I am new to flutter, and am thus new to constraints. Hoping someone can provide some insight, or adjust the code according to the error I am getting. For…
KirtM9
  • 231
  • 4
  • 19
0
votes
2 answers

Why do I have a shape behind my image in a container?

I tried to make a card with round corners, but when I did so, the card below the image was bigger than the image. Below is my code and a screenshot of a part of my app to show you my problem. I hope you can see on the screenshot that next to the…
simi
  • 323
  • 4
  • 12
0
votes
1 answer

Flutter widgets are not showing any thing

I'm working on an assignment and my Flutter app suppose to show Text and FontAwesome's Fonts. But widgets are not showing anything and the Android Studio also showing no error and no exceptions..Here is my displaying class code. import…
0
votes
2 answers

Flutter Container with Network Image and an Aligned Container at the bottom

So, I have to display an image in a container and some description at the bottom of the container. The image is supposed to fill the entire screen. The image is being fetched from the network. This is my intial approach Stack( fit:…
0
votes
1 answer

Flutter Design for different screen sizes

I was tried my app on the phone and on the tablet. The design looks bad if the design is good on the other screen. I have shared an image that phone and tablet so you can see what design looks different when using different screen sizes.How can I…
Cihat Şaman
  • 3,674
  • 4
  • 14
  • 24
0
votes
1 answer

Flutter container under system status

in flutter by default when we use AppBar that show under System Status for example: appBar: AppBar( title: Text( Strings.appName, style: appBarTextStyle, ), automaticallyImplyLeading: true, leading: Builder( builder: (context) =>…
DolDurma
  • 15,753
  • 51
  • 198
  • 377
-1
votes
1 answer

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

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('#260033'), // showing error on this line height:…
-1
votes
1 answer

In Flutter, how can you dynamically assign height to child elements in Card?

I am new to Flutter and I'm trying to create a layout that is responsive to different screen sizes. I've spent a lot of time reading the Flutter documentation, but I haven't been able to figure this out. The following code works great for a larger…
fuzzi
  • 1,967
  • 9
  • 46
  • 90
-1
votes
1 answer

can i place this image asset and container button into the blue container

I want to make flutter mobile app look like this 1 but i from my code i get this appearance 2 and here is my code import 'package:flutter/material.dart'; class HomePage extends StatefulWidget { @override _HomePageState createState() =>…
Vysco Zyza
  • 109
  • 1
  • 12
-1
votes
3 answers

Remove unwanted space inside a column while placing image at end in flutter?

am new for flutter development i have got struck in placing the image in corner of the column which i have shown in the image Need to remove the spacing which i have marked with arrow how to do this? now let me post what i tried so far: Card( …
M.Yogeshwaran
  • 1,419
  • 4
  • 22
  • 48
-1
votes
1 answer

Is it possible to make two cards one below the other?

I have a question: I need two cards one below the other. I´ve tried it with the code bellow, but the second "child" from the container is red underliend and I as a beginner don't know why. And yes I know, child is only one and children are more than…
simi
  • 323
  • 4
  • 12
-2
votes
1 answer

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 AlwaysScrollableScrollPhysics(), but it doesn't seem to…
H Saika
  • 1
  • 1