flutter-layout Questions

2

Solved

I'm using onpressed() to scroll down to bottom of the List view, but i want to achieve that without Pressing the botton, It must autoscroll for every screen opening. I tried to put it inside initS...
Endodontist asked 27/6, 2018 at 17:36

6

Solved

How to Get the Number of Text Lines In our Flutter project, we need to determine if the number of lines of text exceeds 3, then we will display a prompt message. How can we use the code to implemen...
Grapefruit asked 8/1, 2019 at 11:39

3

I have been trying to integrate a web based product tour/on-boarding plugin which will help a new user to understand the application without any external intervention. I cam across this plugin : ht...

8

Solved

I have tried nesting togglebuttons inside container and giving it a custom width however it didn't worked ToggleButtons( borderColor: Colors.deepOrangeAccent[100], fillColor: Colors.deepOrange[1...
Crumb asked 25/9, 2019 at 12:39

6

Solved

I am loading data when widget is loading like the code below. Once the UI is fully loaded, I like to add one refresh button to reload the data again. How can I refresh the view ? class _MyHome...
Torres asked 6/11, 2018 at 10:46

6

Solved

I am using flutter PopUpMenuButton. All i want is when i select any item on the menu, the popup should not be dismissed, rather let me select multiple values from the popup.The documentation says t...
Mouthwatering asked 28/4, 2020 at 11:7

3

I have get network image and used ternary operator where I can show network image but unable to show default asset image where network image is invalid default image in grid also as this- I am new ...

5

Solved

I've implemented a Drawer in my Flutter app. Closed Drawer: Opened Drawer: As you can see, the Drawer is on top of the Appbar. Before I started the app on Flutter, we had a native Android a...
Alleyn asked 26/7, 2018 at 22:41

4

Solved

I think I understand all other StatefulWidget lifecycle callbacks, but didUpdateWidget is one that I never had to use, neither can think of a specific use case, as I just get information about the ...
Australorp asked 15/8, 2019 at 0:18

5

Solved

TL;DR - How to achieve shrinkWrap = true in a ReorderableListView? I was trying to create a ReoderableListView with Column<-Container as parent, this error occured. I/flutter (32618): The foll...
Beaston asked 22/6, 2019 at 8:52

37

Solved

I have seen that I can't set the width of a ElevatedButton in Flutter. If I have well understood, I should put the ElevatedButton into a SizedBox. I will then be able to set the width or height of ...
Paynter asked 11/5, 2018 at 13:32

15

Solved

I am trying out Flutter and I am trying to change the colour of the BottomNavigationBar on the app but all I could achieve was change the colour of the BottomNavigationItem (icon and text). Here ...
Tripos asked 15/3, 2018 at 19:34

3

Solved

I am using IndexedStack widget and providing the list of widgets based on some logic. I have a list page that shows pupil's list and another page to add new pupil. When I add new pupil, it add su...
Cerveny asked 29/8, 2019 at 18:34

6

I am trying to create a simple layout in flutter but keep getting this error: The following assertion was thrown building Text("Deliver features faster", textAlign: center): No Directionality...
Thrashing asked 6/4, 2018 at 7:2

4

Solved

The default flutter animation to transit a new page into the focus is to slide it up from the bottom. How do i change this behaviors and slide the new page in from the right or left instead? Nav...
Creolacreole asked 5/6, 2018 at 16:4

2

i am capturing an image by camera and want to flip that image as i show in sample picture of Giraffe.
Cardinale asked 3/2, 2021 at 11:54

7

Solved

I am refactoring my Flutter application code by adding Provider as a state management. Desired behavior: When Home screen opens, app should check if users email verified, if it's not then should ...

2

Solved

I am trying to Design a custom TextFormField and everything is working fine except that I only need to show a border when the TextFormField is focused (someone has tapped into it). As I don't thin...
Maguire asked 12/8, 2018 at 15:51

12

I need to load list cities dynamically from rest webservice and let user choose a city from alert dialog. My code: createDialog() { fetchCities().then((response) { showDialog( context: context...
Courland asked 13/2, 2019 at 11:55

5

PdfImage requires Uint8List as param but I have ImageProvider. So how can we convert image to uint8list in flutter? var imageProvider = AssetImage('assets/test.jpg'); final image = PdfImage( pdf...
Juna asked 30/7, 2019 at 4:40

29

I wonder how to change the default width of an AlertDialog, I only succeeded to change the border radius : Here is my code : showDialog( context: context, builder: (_) => new AlertDialog( ...
Assuming asked 24/12, 2018 at 12:2

3

I'm new to flutter, and I'm having this problem where my TextButton has a little border radius. Does anyone know how to remove the border radius from a TextButton? My output My Code sorry for not ...
Juliennejuliet asked 23/10, 2021 at 12:1

12

I would like to make my Flutter app take up the entire screen in Android while still showing both the status bar and the navigation bar, with both of them transparent, to achieve the full screen lo...
Sausauce asked 15/6, 2019 at 7:6

15

Solved

Code: new Container( alignment: FractionalOffset.center, child: new Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: <Widget>[ new FlatButton( child: new Text('Don\'t ha...
Fiber asked 4/11, 2018 at 14:14

3

I'm using the scrollable_positioned_list package, and have it rendering a large dynamic list. It works very well. However, I need my list to have a scrollbar (something like this). So far, this is ...

© 2022 - 2024 — McMap. All rights reserved.