Questions tagged [boxconstraints]

6 questions
3
votes
1 answer

My ConstrainedBox does not maintain the minimum size dimension

I get a box with a card and centered text but when I decrease the size of the window my card disappears and my text overflows. I get an overflow error when the box gets smaller than the text. I want the smallest box dimension to be 300x300 and the…
Golden Lion
  • 3,840
  • 2
  • 26
  • 35
1
vote
2 answers

FlutterError (BoxConstraints forces an infinite height. These constraints were provided to RenderSemanticsAnnotations's layout() function

I am trying to create a floating search bar for my flutter application and it is throwing me the following exception: Exception has occurred. FlutterError (BoxConstraints forces an infinite height. These invalid constraints were provided to…
1
vote
1 answer

How to make a container scrollable in Flutter?

I have the following page code/widget: import 'package:flutter/material.dart'; import '../constants.dart'; import '../util/my_box.dart'; import '../util/my_tile.dart'; class DesktopScaffold extends StatefulWidget { const DesktopScaffold({Key?…
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
0 answers

I'm try to show the chatlist but getting this error.. i don't how to fix this

The relevant error-causing widget was Scaffold lib\…\widgets\loader.dart:10 ════════════════════════════════════════════════════════════════════════════════ ════════ Exception caught by rendering library ═════════════════════════════════ A…
0
votes
1 answer

How to find the widget's current size to set the minimum size for the constraints in the Flutter?

I want to know how can I find a widget's default size to set it as constraints: minHeight or constraints: maxHeight properties? For example if I have this widget: Expanded( child: Column( children: [ // right…
GoodMan
  • 542
  • 6
  • 19