Multi-Line TextField in Flutter*
I have a text field with a limited width. I want it to automatically move to the next line when one line is filled. After that, I want to count the number of lines. I am currently using the following…
I have a text field with a limited width. I want it to automatically move to the next line when one line is filled. After that, I want to count the number of lines. I am currently using the following…
Error 1: Invalid constant value. Error 2: The values in a const list literal must be constants. Try removing the keyword 'const' from the list literal. These errors appear in this code (on the line with Navigator.pushNamed...) : import 'package:firebase_auth/firebase_auth.dart';…
I am currently using Navigation 1.0 and want to add deep links within the current navigation setup. I am aware that it is simple to add deep links with Navigation 2.0 using packages like go_router. However, I want to implement…
I'm having problem starting Firebase after migrating to SDK 33 and Gradle 8. Error: PlatformException (PlatformException(channel-error, Unable to establish connection on channel., null, null)) Part of the code: void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); pubspec.yaml: environment:…
I have this expansion tile which takes too much padding which results in a lot of wasted space, how can I get down the top and bottom padding of this expansion tile? Widget additiveCard( BuildContext context, List<FoodAdditive> additives, Product product,…
I want to create a map in Firebase and get the slider values from there. But it gives an error. "type '_Map<String, dynamic>' is not a subtype of type 'Map<Double, Double>' in type cast " Expanded( child: StreamBuilder<DocumentSnapshot>( stream: FirebaseFirestore.instance…
I'm still a noob in Flutter and recently I just downloaded the latest Flutter version on my machine but every time I try to run my project I get this error: C:UserskhomoOneDriveDocumentsGitHubluvart-Project.dart_toolflutter_build99035e6341f80e4f3744d732501fdc7dnative_assets.yaml --verbosity=error package:luvart/main.dart [+11601 ms] [+11647 ms] ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/smithy-0.5.2/lib/src/http/http_operation.dart:271:16: Error:…
errror Exception: type 'String' is not a subtype of type 'Map<String, dynamic> When I call the api for input, there is an exception error in the form of String' is not a subtype of type 'Map<String, dynamic>. How do I…
I'm trying to make a html ad widget using html package, but the widget just occupy space, doesn't display layout. Widget _adWIdget() { return Html(data: """ <iframe src=adUrl width="100%" height="44" frameborder="0" scrolling="no" referrerpolicy="unsafe-url"></iframe> """); } I think it's because I…
Is any update for this question Flutter TextField value always uppercase & debounce ? I've already tried some of the code to make the input text become uppercase. class UpperCaseTextFormatter extends TextInputFormatter { @override TextEditingValue formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) {…