Category "dart"

How to make a widget take as much width as the screen in Flutter?

In my flutter project, I haved used a Row where I aligned two text horizontally, the first Text size is fixed but the I want the second one to have as much widt

How to draw a horizontal line in flutter row widgets?

In my flutter project, I have initialized a Row. Inside that, I created some Texts in a column and after that, I want to add a line but it is not showing anythi

Unhandled Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast

import 'dart:convert'; import 'package:flutter/foundation.dart'; import 'package:http/http.dart' as http; import './cart.dart'; class OrderItem { final Stri

How to not dispose of previous widget when navigating to a new widget in Flutter?

What I am currently doing Navigator.push(context, RouteAnimationFadeIn(NewWidget(someValue), true)); RouteAnimationFadeIn: class RouteAnimationFade

Generic callback with generic class as parameter in Dart

I wrote a custom switch class in Flutter to implement generic parameters, I used the flutter_switch package. When I toggle the switch I faced the following erro

Xcode build is missing expected TARGET_BUILD_DIR build setting

I face error while launching on device on iPhone 12 Pro Max. This is console log Launching lib/main.dart on iPhone 12 Pro Max in `debug mode` Running Xcode buil

How to highlight correct word on searchDelegate?

I highlighted the word, but not the correct word. In my BuilderSuggection, I added like this code, title: RichText( text: TextSpan(