Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash overrides navigation bar color in Android #23

Closed
ghost opened this issue May 8, 2021 · 3 comments
Closed

Flash overrides navigation bar color in Android #23

ghost opened this issue May 8, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented May 8, 2021

As title

This only happens if position is FlashPosition.bottom

@ghost ghost changed the title FlashBar overides navigation bar color in Android Flash overides navigation bar color in Android May 8, 2021
@sososdk
Copy link
Owner

sososdk commented May 8, 2021

Please provide more information.

@ghost
Copy link
Author

ghost commented May 9, 2021

FlashBar overrides navigation bar color with black if I set it with SystemChrome.setSystemUIOverlayStyle

Screen recording
Example code
void main() {
  SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
    systemNavigationBarColor: Colors.white,
    systemNavigationBarIconBrightness: Brightness.dark,
  ));
  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Demo',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Demo'),
        ),
        body: Overlay(initialEntries: [
          OverlayEntry(
            builder: (context) => Center(
              child: ElevatedButton(
                onPressed: () => showFlash(
                  context: context,
                  builder: (context, controller) => Flash(
                    controller: controller,
                    child: FlashBar(
                      message: const Text('This is FlashBar'),
                    ),
                  ),
                ),
                child: const Text('Show FlashBar'),
              ),
            ),
          ),
        ]),
      ),
    );
  }
}

@ghost ghost changed the title Flash overides navigation bar color in Android Flash overrides navigation bar color in Android May 9, 2021
@sososdk sososdk added the bug Something isn't working label May 10, 2021
sososdk added a commit that referenced this issue May 13, 2021
@sososdk sososdk closed this as completed May 13, 2021
@ghost
Copy link
Author

ghost commented May 14, 2021

Thank you for fixing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant