Questions tagged [flutter-layout]

Layouts in Flutter - Google’s UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase, refer to the classes called widgets used to build UIs, both for layout and UI elements. Layouts may be in the form of single-child or multi-child layout widgets. Use this tag for all types of layout widgets used in Flutter.

Layouts in Flutter- Google’s UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase, refer to the classes called widgets used to build UIs, both for layout and UI elements.

Layouts may be in the form of single-child or multi-child layout widgets. Use this tag for all types of layout widgets used in Flutter.

13064 questions
4
votes
2 answers

Flutter : two Textformfield in row have problem

This is the image of issue i m facing issue in flutter design i have two textformfield in a row when i set error on one textformfield it moves slightly upward or shrink to make space for error text in android native this issue is not there…
Amit
  • 468
  • 5
  • 16
4
votes
0 answers

Expanded causes 'BoxConstraints forces an infinite width and infinite height.' in some cases

Summary When I have my custom widget inside a row that is inside an Expanded widget (Expanded > Row > CustomWidget), it works great. But if I then wrap the custom widget inside a column that is inside the row (Expanded > Row > Column >…
Tres
  • 107
  • 1
  • 9
4
votes
1 answer

Why CustomSingleChildLayout can't depend on children sizes?

I want to implement complex layout that should be rendered inside a scroll view. It means that my CustomSingleChildLayout should resize itself to wrap it's children. But according to CustomSingleChildLayout's documentation: The delegate can…
Alexandr
  • 3,859
  • 5
  • 32
  • 56
4
votes
1 answer

How to change TextField's textLable color on focus

What should I add in my code to achieve TextField's textLable color as Green on focus. TextField( keyboardType: TextInputType.emailAddress, cursorColor: CustomColors.seaweed, keyboardAppearance: Brightness.light, autocorrect: false, …
4
votes
2 answers

How to add custom Strikethrough to Text Widget in Flutter

I am looking for a way to add a custom strikethrough to a text widget like below I looked at the Text Style API, but couldn't find any option to customize the Strikethrough graphic. style: TextStyle(decoration: TextDecoration.lineThrough),
user2733554
  • 117
  • 1
  • 7
4
votes
2 answers

Flutter equivalent of layout_gravity="bottom"

I am trying to render a dribbble sample. In normal android using XML, I can make any part stick to any side of another view. If I were using ConstraintLayout, I could make the bottom part stick to the bottom of the parent and let the top part expand…
Doc
  • 10,831
  • 3
  • 39
  • 63
4
votes
4 answers

How to add shadows to Text in Flutter

How to add shadows to text. Under the TextStyle there is a shadows property also. It will be helpful if you can include example for its implementation
Mangaldeep Pannu
  • 3,738
  • 2
  • 26
  • 45
4
votes
3 answers

Customizing the popup menu of a DropdownButton

How can you set the background color of the DropdownButton menu. I can customize the Text() items that appear but they appear within a container which I would like to change the color for.
AlanKley
  • 4,592
  • 8
  • 40
  • 53
4
votes
2 answers

Space between is not working, did i do something wrong?

Apps to migrate image https://lh3.googleusercontent.com/sTFx8QfUzgnrT69cK54V9igmCd04GLIlTmrwAC01GISRDsbGNL9KZeXNnKeILHdNUQ=w1853-h942 What I'm working on class ScheduleListItem extends StatelessWidget { ScheduleListItem({Key key}) : super(key:…
Ilham Syukur
  • 105
  • 1
  • 1
  • 6
4
votes
2 answers

Flutter - How to show a `snackbar` in `Future`

In my flutter app, I am sending data from mobile to server. That part is done like below. register.dart void _createUser() { DataFetch().createUser(AppNavigation.getAPIUrl() + "user/saveUser", user).then((String result){ …
PeakGen
  • 21,894
  • 86
  • 261
  • 463
4
votes
4 answers

CupertinoTabBar blocks current Tab bottom part how to avoid this or is it a default behavior

I change my BottomNavigatorBar to CupertinoTabBar and it does not compress the current Tab, in other words I wouldn't be able to show some information which is at the bottom part of that current tab because CupertinoTabBar blocks it. I don't know…
cipli onat
  • 1,943
  • 1
  • 11
  • 26
4
votes
1 answer

Circle Profile Image on Sliver Appbar

I'm trying to include a circle profile image button on my sliver app bar but the sliver app bar isn't quite rendering it right. This is what i'm getting, how can I achieve a circle profile image on a sliver app bar? My Code: @override …
theSimm
  • 450
  • 4
  • 9
  • 16
4
votes
2 answers

Flutter Drawer navigate to a single page multiple times

when i pull the drawer and select a page to navigate to it is like create a new instance of that, for example if i clicked on the same page 4 times it shows the animation of opening a new page 4 times and same when i press the back button of the…
user10508638
4
votes
1 answer

How to use Dimens in Flutter?

I want to use something similar to androids dimens.xml to enforce consistency through out my app. I was sure Material Design would have some predefined values to use, considering how heavily integrated it is in Flutter, but I cant find anything like…
Joel Broström
  • 3,530
  • 1
  • 34
  • 61
4
votes
2 answers

How to create Spreadsheet in Flutter

How to create spreadhseet like Widget in Flutter (only for displaying data). Currenly I have used Datatable but it does not support 1. fixed header 2. scrollable body. I want following features: The headers shoule be fixed. the body should be…
Suresh Kumar
  • 1,077
  • 1
  • 12
  • 21