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
3
votes
2 answers

The argument type 'MaterialPageRoute' can't be assigned to the parameter type 'String'

I am building a flutter app and I am trying to pass data to a page using MaterialPageRouter but I am getting an error that says "The argument type 'MaterialPageRoute dynamic' can't be assigned to the parameter type 'String'". Does anyone know what…
Anesu Mazvimavi
  • 131
  • 1
  • 9
3
votes
2 answers

error: the method ´flatbutton´ isn´t defined for the class

recently I realized that there was a flutter update, I am trying to debug an app that I have tested before, right now the console throws me the following errors: here is a screenshot of my error error: the method ´flatbutton´ isn´t defined for the…
Sarcoss
  • 71
  • 2
  • 4
3
votes
1 answer

How to use Stack into CircleAvatar

I am trying to put Container color as Stack above circle avatar but the problem is that color go out the circle borer I have the following code, IntrinsicWidth( child: Stack( alignment:…
Mohammed Hamdan
  • 1,006
  • 5
  • 23
3
votes
2 answers

Close on-screen keyboard, and THEN navigate to new screen (to ensure keyboard doesn't infringe on size of new screen)

Title sums it up well. In Flutter, you can close the keyboard by removing the focus from it: FocusScope.of(context).unfocus(); And you can navigate to a new screen like so (many ways, just an…
Matthew Trent
  • 2,611
  • 1
  • 17
  • 30
3
votes
2 answers

How to combine Dropdown button with TabBar

I would like to combine dropdown button with a TabBar I found a solution but the DropDown button is inside the Tab and you have to press on the letter to display the dropdown button and it does not do so when pressing the entire TabBar that is why…
3
votes
1 answer

In Flutter Getx, what is the difference between `Get.parameters` and `Get.arguments`?

In Getx when navigating to a new page, you can pass data to the second page as 'arguments': Get.toNamed('/second', arguments: {}); or as parameters Get.toNamed('/second', parameters: {}); and in both cases, you can access this data using…
MOHAMMAD RASIM
  • 335
  • 1
  • 6
  • 14
3
votes
3 answers

Flutter - How to scroll Container over another

I'm begginning Flutter and I'm searching to scroll ListView over a Container like below
pefr
  • 51
  • 2
3
votes
2 answers

Flutter - Duplicate Widgets with an Action

I need to replicate my widgets with an action in app. Example : I have an Row, and this row create duplicate elements with directions differents controller.turns.value == 1 ? Container( padding: const EdgeInsets.all(10), …
3
votes
2 answers

Animate listitem switch from one list to another and inside the list itself

I'm trying to implement animated listitem switching between listview (scrollable) and another never scrollable listview/row. I've tried using local hero and flutter sidekick but with no success. I need the initial list widget to be scrollable, while…
rts
  • 146
  • 2
  • 11
3
votes
0 answers

Lite Mode Google maps in Flutter

Is there any Flutter package available to load google map in Lite Mode? The google maps are getting loaded very slowly in iOS devices.
3
votes
1 answer

SpeedDial: change color on click

I'm trying to do so that if I click on a SpeedDialChild (button) then the color of it changes, but even if the value of fun.switchTakePhoto changes from true to false (and vice versa) the color remains red for some reason. class MainPage extends…
motijon963
  • 33
  • 4
3
votes
0 answers

Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156?

FAILURE: Build failed with an exception. Where: Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156 What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. Process 'command…
3
votes
3 answers

RenderShrinkWrappingViewport does not support returning intrinsic dimensions

I want a text button when on click shows a simpleDialog vith a listView.builder but I don't know how to code it. I always have an error. Can you help me? Here is my code: TextButton( child: const Text('Selet instruments needed'), onPressed:…
Mus
  • 67
  • 1
  • 13
3
votes
2 answers

Making telegram's AppBar with flutter

I am trying to make an app bar exactly like what you see here However as I'm new to flutter I do not have any idea how I can make it, I already tried MainCollapsingToolbar but it didn't get me anywhere. Does anyone have any idea if can I make it?
3
votes
1 answer

How to add ripple effect to a Container with decoration in Flutter?

I want to add a ripple effect to a custom Container. I have used Inkwell and Material widgets to achieve this behavior, but it does not work. The code is as follows: @override Widget build(BuildContext context) { return Center( child:…
sm_sayedi
  • 326
  • 2
  • 17
1 2 3
99
100