Skip to content

Commit

Permalink
Merge pull request #166 from Idean/fix/#158
Browse files Browse the repository at this point in the history
Closes: #158 : Retrieving theme with correct method
  • Loading branch information
florent37 authored Sep 9, 2020
2 parents 0ccb4ee + c60a3ca commit 533f7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/widget/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class _NeumorphicButtonState extends State<NeumorphicButton> {
void updateInitialStyle() {
final appBarPresent = NeumorphicAppBarTheme.of(context) != null;
if (widget.style != initialStyle || initialStyle == null) {
final theme = NeumorphicTheme.of(context).current;
final theme = NeumorphicTheme.currentTheme(context);
setState(() {
this.initialStyle = widget.style ??
(appBarPresent
Expand Down

0 comments on commit 533f7cf

Please sign in to comment.