flutter-layout Questions

7

I’m just trying to use ExpansionTile in Flutter, from example I modified to become like this: I want to hide the arrow and use Switch to expand the tile, is it possible? Or do I need custom widg...
Wideman asked 5/8, 2018 at 20:12

4

Minimum reproducible code: final _controller = ScrollController(); @override Widget build() { return NestedScrollView( headerSliverBuilder: (_, __) => [SliverAppBar(expandedHeight: 300)], bo...
Learn asked 25/5, 2022 at 18:13

11

Solved

I face a problem by wrapping TextField with new Expanded(). When try to search something in textfield its show me bottom overflow by 30px. Below is my code: Widget build(BuildContext context) { ...
Hogfish asked 22/8, 2018 at 17:38

3

Solved

I am using rows and columns in my layout and load some data from the internet to display information inside my rows and columns. I want to design a dynamic loading page in such a way that every loa...
Villada asked 27/4, 2021 at 0:49

2

I know Image_cropper support predefined crop ratio like aspectRatioPresets: [ CropAspectRatioPreset.square, CropAspectRatioPreset.ratio3x2, CropAspectRatioPreset.original, CropAspectRatioPrese...

2

I have three pages each one is a StatefulWidget put into separate dart files named: welcome.dart page_01.dart page_02.dart I open each page using pushNamed function of Navigator like so: Navigator...
Closed asked 18/12, 2019 at 23:24

8

As the title says after pressing the back button, the application closes. Container( margin: EdgeInsets.only(left: 20, top: 8), decoration: BoxDecoration( color: colorYellow, borderRadius: Bord...
Trombidiasis asked 25/5, 2021 at 7:44

6

Solved

I declared two columns in a row to layout the text and the icon. The column for the icon is always center even if I set the mainAxisAlignment with MainAxisAlignment.start. Here is the code for th...
Atli asked 4/2, 2019 at 9:55

2

Solved

I want to use this package https://pub.dev/packages/notification_permissions to do a Permissions check, I saw the example in it, but I couldn't use it and put it on my project correctly. All I need...
Lissy asked 21/9, 2022 at 9:39

5

Solved

I am using Checkbox inside a ListTile like the following: ListTile( leading: Checkbox( value: _isChecked, onChanged: (v) { setState(() { _isChecked = !_isChecked; }); }, ), title: Text("...
Decry asked 4/9, 2018 at 21:15

5

Solved

I am trying to create a transparent full screen dialog on top of activity. I have tried following this thread but solution doesn't work. In short , what I need is: full screen dialog. transparen...
Straight asked 10/7, 2018 at 6:39

1

I am using a Flutter module inside my Android Application. I have defined a global Flutter Engine in a pre heated state in my Activity and is attaching it to a FlutterFragment as and when required ...
Scaramouch asked 11/7, 2020 at 22:4

6

I am trying to create a layout with a left-aligned or right-aligned image and a text that wraps around the image. Is it possible to build this kind of layout with Flutter? This is the layout I am ...
Fein asked 20/5, 2018 at 13:12

7

Solved

I want to create an app that has an authentication service with different permissions and functions (e.g. messages) depending on the user role. So I created one Provider for the user and login ma...
Dehydrogenase asked 3/9, 2019 at 6:19

3

Is there a way to remove the blur of the CupertinoNavigationBar so it's truly transparent? I got rid of the border and color but there's a blur, for the android AppBar there isn't any blur but for ...
Beaudette asked 6/11, 2018 at 17:35

7

Solved

I'm trying to get the height of widget but it prints the same values I/flutter (19253): full height: 976.0 I/flutter (19253): safe height: 976.0 I guessed the second value should be smaller be...
Persuader asked 10/4, 2019 at 10:50

13

Solved

How to remove the space top and bottom from ListTile? My Code is: child: Column( children: <Widget>[ ListTile( contentPadding: EdgeInsets.only(left: 0.0, right: 0.0), title: Text( 'Home...
Bootblack asked 20/3, 2019 at 16:7

3

I am currently trying to learn flutter and trying to make a tic tac toe game in flutter. I want my game such that when I tap on a tile, the circles and crosses fall from above. I am trying to imple...
Isadora asked 6/4, 2019 at 14:1

16

I am pretty new to Flutter and Dart and I can't seem to find any hints for this particular topic. I am trying to put 3 RadioListTiles in a Row like so: Row( children: [ Expanded( child:RadioLis...
Inequity asked 13/5, 2018 at 14:19

6

Solved

I'm working on a TextFormField to accept passwords. I have set the suffix icon to have IconButton child to detect on click events and to toggle the obscuretext attribute of the TextFormField. The c...
Verism asked 3/1, 2019 at 5:56

7

Solved

Flutter widget, I tried to change the OutlineButton border color by using BorderSide(color : Colors.blue). The OutlineButton always with grey color border no matter which color is set, but width ch...
Coincidental asked 10/9, 2019 at 16:9

1

I need to set dynamic height value to dataRowHeight property of DataTable Widget to fit different Row's contents and I don't want to use Table Widget which allows that. - #flutter As by default, it...

12

Solved

How can I remove the error message in TextFormField created by validator? I just want the red border because I don't have the space to show the error. bool error = false; TextFormField ( hintTex...
Sorrows asked 3/6, 2019 at 11:17

8

Solved

I am creating an app in a flutter in which I need to display an alert dialog. And this is not a dismissible dialog. But when I press the back button on android it is getting dismissed. I have tried...
Retinol asked 5/11, 2018 at 14:45

2

Solved

I have an app for painting using custom paint, and I wanted to add an image in the background so it can be painted over it but unfortunately I can't seem to figure out how to do that,I tried using ...
Instantaneity asked 22/6, 2020 at 13:26

© 2022 - 2024 — McMap. All rights reserved.