Skip to content

Commit a716333

Browse files
committed
action_sheet [nfc]: Pull out a designVariables local
1 parent fb0d8ae commit a716333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/widgets/action_sheet.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void _showActionSheet(
4444
useSafeArea: true,
4545
isScrollControlled: true,
4646
builder: (BuildContext _) {
47+
final designVariables = DesignVariables.of(context);
4748
return Semantics(
4849
role: SemanticsRole.menu,
4950
child: SafeArea(
@@ -57,7 +58,7 @@ void _showActionSheet(
5758
// TODO(#217): show message text
5859
Flexible(child: InsetShadowBox(
5960
top: 8, bottom: 8,
60-
color: DesignVariables.of(context).bgContextMenu,
61+
color: designVariables.bgContextMenu,
6162
child: SingleChildScrollView(
6263
padding: const EdgeInsets.only(top: 16, bottom: 8),
6364
child: ClipRRect(

0 commit comments

Comments
 (0)