Skip to content

Commit

Permalink
Null-safety for itemCustomBorder
Browse files Browse the repository at this point in the history
  • Loading branch information
WieFel committed Oct 27, 2020
1 parent 1fd0cca commit 18fc37a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ class BackdropNavigationBackLayer extends StatelessWidget {
padding: itemPadding,
itemBuilder: (context, position) => InkWell(
child: Container(
decoration: ShapeDecoration(shape: itemCustomBorder),
decoration: itemCustomBorder != null
? ShapeDecoration(shape: itemCustomBorder)
: null,
child: items[position],
),
onTap: () {
Expand Down

0 comments on commit 18fc37a

Please sign in to comment.