2

How to apply or use same color in flutter AppBar?

Check screenshot:

screenshot

3
  • 1
    here is the answer. Check this link below. Thank you. stackoverflow.com/questions/45925734/… Commented Oct 14, 2018 at 7:15
  • @VirenVVarasadiya I've approved your edit, but please don't reupload StackExchange images (stack.imgur.com); just apply the markup manually to existing ones and keep an image description if possible. Commented Oct 14, 2018 at 13:22
  • So, did you check the answer, find what you're looking for? Commented Jan 21, 2019 at 9:47

1 Answer 1

3

You can use setSystemUIOverlayStyle, i.e. inside build method

import 'package:flutter/services.dart';

SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
    statusBarColor: Theme.of(context).primaryColor
));
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.