setState() or markNeedsBuild() called during build. when resetting provider

Issue This code is working fine and resetting provider element but why this error in console. calling this function on init() in stateful class; Future getPlotsGraphDataAccordingToCategoryAndDate(context,CategoryId,CategoryName,date) async { var getRepresentationProvider = Provider.of<RepresentationProvider>(context, listen: false); getRepresentationProvider.resetPerticularCategoryDataAccordingDate(); var response = await http.get(url,

Continue reading

Flutter – A RenderFlex overflowed by 190 pixels on the bottom in showModalBottomSheet

Issue My showModalBottomSheet showing bottom overflow error : My Code of bottomSheet: loginSheet(BuildContext context) { return showModalBottomSheet( isScrollControlled: true, context: context, builder: (context) { return Padding( padding: EdgeInsets.only( bottom: MediaQuery.of(context).viewInsets.bottom, ), child: Container( height: MediaQuery.of(context).size.height * 0.30, width: MediaQuery.of(context).size.width, child:

Continue reading