Changing the color and text of AppBar based on the currently viewed page

Posted by Jessica Taylor | Updated on

Changing the color and text of AppBar based on the currently viewed page. All I did was change all the classes to stateful widget, add an setstate icon selector, change the widget so there is an onPressed callback.

Example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers