( Error) The instance member widget can't be accessed in an initializer.Try replacing the reference to the instance member with a different expression

Issue In Flutter i am passing data to a new screen, Here is my first_Screen sending data Navigator.push( context, MaterialPageRoute( builder: (context) => updatenote( id: snapshot.data[index], title: snapshot.data[index][‘title’], content: snapshot.data[index][‘content’]), ), ); Here is my second screen getting data, class

Continue reading

( Error) The instance member widget can't be accessed in an initializer.Try replacing the reference to the instance member with a different expression

Issue In Flutter i am passing data to a new screen, Here is my first_Screen sending data Navigator.push( context, MaterialPageRoute( builder: (context) => updatenote( id: snapshot.data[index], title: snapshot.data[index][‘title’], content: snapshot.data[index][‘content’]), ), ); Here is my second screen getting data, class

Continue reading

Flutter FlexibleSpaceBarSettings

Issue I get this problem when I navigate to MangaScreen() page. This page need an image. final FlexibleSpaceBarSettings settings = context.dependOnInheritedWidgetOfExactType<FlexibleSpaceBarSettings>()!; assert( settings != null, ‘A FlexibleSpaceBar must be wrapped in the widget returned by FlexibleSpaceBar.createSettings().’, This is the code

Continue reading