Skip to content

Commit 5996bb9

Browse files
committed
action_sheet [nfc]: In _showActionSheet, s/context/pageContext/
For explicitness. All three callers are already passing a "page context" i.e. the result of PageRoot.contextOf.
1 parent c0c586d commit 5996bb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/widgets/action_sheet.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ import 'theme.dart';
3232
import 'topic_list.dart';
3333

3434
void _showActionSheet(
35-
BuildContext context, {
35+
BuildContext pageContext, {
3636
required List<Widget> optionButtons,
3737
}) {
3838
showModalBottomSheet<void>(
39-
context: context,
39+
context: pageContext,
4040
// Clip.hardEdge looks bad; Clip.antiAliasWithSaveLayer looks pixel-perfect
4141
// on my iPhone 13 Pro but is marked as "much slower":
4242
// https://api.flutter.dev/flutter/dart-ui/Clip.html
4343
clipBehavior: Clip.antiAlias,
4444
useSafeArea: true,
4545
isScrollControlled: true,
4646
builder: (BuildContext _) {
47-
final designVariables = DesignVariables.of(context);
47+
final designVariables = DesignVariables.of(pageContext);
4848
return Semantics(
4949
role: SemanticsRole.menu,
5050
child: SafeArea(

0 commit comments

Comments
 (0)