Category "flutter-layout"

Flutter Text only break lines at whitespaces

My issue is that flutter breaks Text at non whitespace characters: How can I tell flutter not to beak text at the "/" but only when it encounters a whitespace?

Checkbox Position in flutter

How can i change the position of checkbox on top left side of my title, in checkboxlisttile

Show svg or image from network depending on type flutter

Hi I'm using a service that send me images, sometimes png or jpeg images and I use the flutter widget Image. In the other hand sometimes send me svg images intu

Drawer Menu Shows Gaps

I am new to flutter. I got a Drawer Menu but there is a little gap between user information side and menu items section. drawer menu user information side impo

How do I add shadow to a TextField when having a maxLength or minLength property?

I have a normal TextField that I want some shadow on it but I haven't found the solution to this problem. My TextField has the maxLength property so I have a sm

Scrollable SelectableText when selecting text from bottom autoscrolls to top of widget

As shown above when selecting text from a scrollable SelectableText Widget it auto scrolls to top initially. Expected behavior is scroll remains in the bottom

refresh data on home page using future builder on button click - flutter

i have an app with two screens, home and update page. The home page displays a list of items and the update page updates the items. I am having difficulties re

How to position widget inside Stack relative to center?

Stack( children: [ Positioned( left: ??? + 20, child: Text('This text is 20 pixel left to the center of the stack'), ), ], ),

How to get gradient bottom navigation tab in flutter?

There is a package on pub https://pub.dev/packages/gradient_bottom_navigation_bar but this is not updated for a very long time. So, is there a way to create ow

Flutter Dismiss Alert Dialog Navigation Issue

I am currently trying to navigate back to the existing screen from an opened alert dialog box. When I try to do so using this code: onPressed: () => Na

How to change the position of a dialogue box Flutter

I have created a dialogue box which displays when a number exists in Firestore when registering a new user. However by default Android seems to be positioning t

Flutter : How to Automaticallly scroll to end of SingleChildScrollView

I have a SingleChildScrollView, its scrollDirection is set to Horizontal with 5 child widgets placed inside a Row Widget. I want to programmatically scroll to t

How to Share Image from API(URL) in flutter?

Here I want to share image which I get through API. I tried different method for this functionality but I did not get any solution because every solutions have

Parse string to widget in Flutter

I want to parse the following string to its equivalent Flutter widgets: String fetchedFromServer = ''' Container( child: Text("Hello") ) '''; I want to r

Material Design drawer not showing in Flutter Web

I am trying to figure out why the drawer widget is not rendered in my Flutter Web page. import 'package:responsive_builder/responsive_builder.dart';

Web view page is empty if clicks the back arrow in flutter?

I have a WebView page with multiple links. By clicking the links it will open another WebView page with a close button. If I click the close button, the current

Persistent Bottom Nav Bar, How can I use that in another page that is not included in bottom navigation bar screens?

I am using persistent_bottom_nav_bar 4.0.2 for implement bottom navigation bar though out the app. It actually works fine with bottom navigation bar items and r

How to Auto New Line if a text overflows flutter

Hello right now I am making Quran App.. I am fetching data from json file.I would like to ask how do I create a new line if it overflows like in the picture? I

Flutter DropdownButton - Add title for separating items

Im trying to implement a DropdownButton that can separate specific items from each other with a title (see desired output on image below, the titles are in gree

Error when hitting the back button in camera

getting this issue when we click on back camera while using the app .. any one could you please find and send the solution to this issue in flutter Exception ha