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

Fixappbartitlestyle #529

Merged
merged 9 commits into from
May 27, 2024
Merged
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions lib/src/components/navbar/brn_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
Loading