The following StackOverflowError was thrown while calling onSubmitted for TextInputAction.done

Issue I am doing form saving with flutter 3.3.6 the code in the build method is: TextFormField( decoration: const InputDecoration(labelText: ‘Image URL’), textInputAction: TextInputAction.done, keyboardType: TextInputType.url, controller: _imageUrlController, focusNode: _imageUrlFocusNode, onSaved: (value) { _editedProduct = Product( id: _editedProduct.id, title: _editedProduct.title,

Continue reading

Rebuilding issue when I declare MediaQuery within the build function

Issue import ‘package:bug_fix/home_screen.dart’; import ‘package:flutter/material.dart’; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @OverRide Widget build(BuildContext context) { return const MaterialApp( home: HomeScreen(), ); } } import ‘dart:developer’; import ‘package:flutter/material.dart’; class HomeScreen extends StatelessWidget {

Continue reading