diff --git a/example/android/build.gradle b/example/android/build.gradle index 0a2d6a10..ba84f2c9 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' + classpath 'com.android.tools.build:gradle:7.0.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index bc6a58af..b8793d3c 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip diff --git a/lib/src/components/navbar/brn_appbar.dart b/lib/src/components/navbar/brn_appbar.dart index deb4f1cc..e163619f 100644 --- a/lib/src/components/navbar/brn_appbar.dart +++ b/lib/src/components/navbar/brn_appbar.dart @@ -221,16 +221,16 @@ class BrnAppBar extends PreferredSize { @override Widget build(BuildContext context) { BrnAppBarConfig _defaultConfig = themeData ?? BrnAppBarConfig(); - _defaultConfig = _defaultConfig.merge(BrnAppBarConfig( - backgroundColor: this.backgroundColor, - showDefaultBottom: this.showDefaultBottom, - systemUiOverlayStyle: this.systemOverlayStyle)); - _defaultConfig = BrnThemeConfigurator.instance .getConfig(configId: _defaultConfig.configId) .appBarConfig .merge(_defaultConfig); + _defaultConfig = _defaultConfig.merge(BrnAppBarConfig( + backgroundColor: this.backgroundColor, + showDefaultBottom: this.showDefaultBottom, + systemUiOverlayStyle: this.systemOverlayStyle)); + useWidgetsBinding().addPostFrameCallback((_) { SystemChrome.setSystemUIOverlayStyle(_defaultConfig.systemOverlayStyle); });