Automatically adapt to API changes

Whenever there are API changes in Flutter, then one need to update the code for the new APIs by removing the deprecated API and adding the alternative APIs. You can do it by using the following commands automatically: First check what needs to be updated by using the following command: And if you see ‘DEPRECATED_MEMBER_USE’, … Read more

List{dyamic} is not a subtype of List{Widget}

When it would happen: When we have a function that is used to render (create) widget list and inside it we create a variable that stores that widget in variable of type dynamic. Let’s see by example: Above Code will throw error ‘List<dynamic>’ is not a subtype of List<Widget>‘ because we are returning a dynamic … Read more