Skip to content

Commit

Permalink
Closes: #158 : Retrieving theme with correct method
Browse files Browse the repository at this point in the history
  • Loading branch information
Idean-OBO committed Aug 26, 2020
1 parent 0ccb4ee commit c60a3ca
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 c60a3ca

Please sign in to comment.