![]() If you want to have different styles for each page or route, you need to call the method inside the respective widget. ![]() ![]() ![]() If you want to apply the same style to all routes in your application, you can call it inside the main method. Therefore, if the user navigates to another route, the applied style will not disappear until the tSystemUIOverlayStyle is called again to override the style. If you call the static method, the change will persist across all routes in your application. While the previous way (using AppBar only works if you have an AppBar on the top, the tSystemUIOverlayStyle should only be used if you don't have an AppBar or CupertinoNavigationBar. You can use tSystemUIOverlayStyle, which is used to set the SystemUiOverlayStyle. There is another way to set the style of the status bar.
0 Comments
Leave a Reply. |