Is it a good practice to call setState method while using Bloc architecture in Flutter?

Issue I’m using bloc architecture for my project, and I’m trying to disable/enable the form based upon the checkbox value. Here is my code->>> Widget _buildSameAsResidential(BuildContext context) { return StreamBuilder<FormValue<bool, String>>( initialData: _addressBloc.residentailEqualMailingValue, stream: _addressBloc.residentailEqualMailing, builder: (context, snapshot) { return

Continue reading

A value of type 'Object?' can't be assigned to a variable of type 'SinginCharacter'

Issue import ‘package:flutter/material.dart’; import ‘package:foodcorner/color/colors.dart’; enum SinginCharacter {fill,outline} class ProductDetails extends StatefulWidget { const ProductDetails({Key? key}) : super(key: key); @override _ProductDetailsState createState() => _ProductDetailsState(); } class _ProductDetailsState extends State<ProductDetails> { SinginCharacter _character = SinginCharacter.fill; @override Widget build(BuildContext context) { return

Continue reading