Category "flutter-layout"

Saving Icon to Hive DB in Flutter

Can anyone help me. How to Save Icon in hive database in flutter. And to read it. When I'm saving Icons it is giving error unhandled exception: hiveerror: canno

Cast Complex JSON Dart

the dart code below allows you to decode a json that comes from a backend inside resultValue, I have the response of the rest call with the json shown below, wh

Flutter Ambient UI - What should be the optimised approach for production level responsive app in web, android and ios platform using single codebase?

I was trying out flutter platform to create a multipage website with android and ios responsiveness using single codebase for my flutter app. I've already tried

Flutter custom ButtonNavigationBar

How can I customize UI design like the following in flutter? Sample Image

how can i change a RadioListTile button selection state after it has been initialized in flutter

I have created a RadioListTile based on a list of string items in an initStat function. But i could not get the radio button to change when it is being selected

Flutter : init called

I'm trying to work on my fantasy app, and the app is working fine, but as soon as I open the keyboard to type something, I'm getting a message in debug console

How to get the string content of text() widgets and give the styling below image shown in flutter

I want this type of output using single Text() widget I am getting data from Api and i get gender from it so i just want to highlight that value by bold it on w

3D wheel effect with list or scroll view

I need to create a list view that has a few key requirements Infinite scroll of a fixed number of items (ie looping) Multiple child item types (images, text, in

Vertical and Horizontal scrolling at the same time in Flutter

I'm building a flutter app, it requires data to be displayed in a table format, I've done it with the help of DataTable widget, but when it was rendered, the co

I want to be able to have multiple widgets in a page, it isn't working though. I want to have containers like the image below. It only allows me text?

This is the code below, please much appreciated if you can at least try. thank you | I am trying to create an app where I can have multiple widgets in one page.

Flutter screen size without AppBar and BottomNavigationBar

I am trying to get the exact size of the screen without taking into account the AppBar and BottomNavigationBar Here is the code: double screenSize = MediaQuery.

The argument type 'OrderItem' can't be assigned to the parameter type 'OrderItem'

I am unable to assign my one class to another even though I have imported the lib for them. I am following a course . In this I will fetch the orders from fireb

What to do when listview.builder does not fit screen width in Flutter

The following is what is returned from a Flutter widget: return Center( child: Column( children: [ SizedBox(

How to overwrite color of ElevatedButton with LinearGradient?

I am trying to do ElevatedButton with LinearGradient, I am giving it to Container around my button, but it's not affecting it. I tried to set backgroundColor of

Select center item of ListView Flutter

I need to implement a scrollable list, so that the element in the center is automatically highlighted. How to keep track of the central element and constantly h

how to insert a text in a container and padding for an image

I want to insert a text to my container I tried this code segment. but it is not displaying. first image showing how it display now. image two showing how I nee

Can't able to save and display camera images in gridView in flutter using image_picker

I am creating a widget in which I want to display a gridview of image clicked through mobile camera at runtime. I had used image_picker package from flutter. Bu

How to redraw only single widget in flutter?

No render all widgets. only render one widget. Means not called build method because it's render all widgets. Thanks for giving me your important time.

Padding issue with parent Container Widget?

How can i match parent widget size? I want to have list features in Grid builder, Same time Grid's child widget size should match with parent widget. Grid shoul

Flutter: Is it possible to set vertical alignment in text lines at height> 1.0?

All texts in Figma have some height, for example 1.5, but when I set that height to the TextStyle, all lines with the new height are aligned to the bottom. If