4inka / flutter_easy_search_bar

Other
13 stars 22 forks source link

Missing systemOverlayStyle #3

Closed troncomputers closed 2 years ago

troncomputers commented 2 years ago

I need to be able to set systemOverlayStyle, just like normal AppBar has.

4inka commented 2 years ago

Hi @troncomputers

I just added the parameter and it should work properly. Please upgrade the package version to 2.3.0 and search for systemOverlayStyle and try to set custom values as you wish.

Have a nice day.

troncomputers commented 2 years ago

Wow that was quick 💪🤘

There is something else, maybe I did it wrong. The statusBarColor: Colors.transparent is not applied.

SystemUiOverlayStyle getStatusBarTheme() {
  return SystemUiOverlayStyle(
    statusBarColor: Colors.transparent,
    systemNavigationBarColor: Get.isDarkMode ? darkTheme.scaffoldBackgroundColor : lightTheme.scaffoldBackgroundColor,
    statusBarBrightness: Brightness.light,
    statusBarIconBrightness: Brightness.light,
  );
}

appbar_search

4inka commented 2 years ago

Hello once again @troncomputers

There was an actual issue with that, but it should be fixed now. You can update to version 2.3.1 and try again.

troncomputers commented 2 years ago

Perfect ✌ thank you.