Skip to content

Commit

Permalink
perf: only rebuild widgets when BackdropScaffoldState changed (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
daadu authored Feb 2, 2022
1 parent 715f6d7 commit 3926bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Backdrop extends InheritedWidget {
context.dependOnInheritedWidgetOfExactType<Backdrop>()!.data;

@override
bool updateShouldNotify(Backdrop oldWidget) => true;
bool updateShouldNotify(Backdrop oldWidget) => oldWidget.data != data;
}

/// Implements the basic functionality of backdrop.
Expand Down

0 comments on commit 3926bbb

Please sign in to comment.