Skip to content

Commit

Permalink
Remove SnackBar.elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
FeodorFitsner committed Aug 9, 2022
1 parent 905b4ff commit 964924d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion client/lib/controls/snack_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class _SnackBarControlState extends State<SnackBarControl> {
content: createControl(widget.control, contentCtrls.first.id, disabled),
backgroundColor: HexColor.fromString(
Theme.of(context), widget.control.attrString("bgColor", "")!),
elevation: widget.control.attrDouble("elevation"),
action: action);
}

Expand Down
12 changes: 0 additions & 12 deletions sdk/python/flet/snack_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def __init__(
# remove_current_snackbar: bool = False,
action: str = None,
bgcolor: str = None,
elevation: OptionalNumber = None,
on_action=None,
):

Expand All @@ -38,7 +37,6 @@ def __init__(
self.content = content
self.action = action
self.bgcolor = bgcolor
self.elevation = elevation
self.on_action = on_action

def _get_control_name(self):
Expand Down Expand Up @@ -101,16 +99,6 @@ def bgcolor(self):
def bgcolor(self, value):
self._set_attr("bgColor", value)

# elevation
@property
def elevation(self) -> OptionalNumber:
return self._get_attr("elevation")

@elevation.setter
@beartype
def elevation(self, value: OptionalNumber):
self._set_attr("elevation", value)

# on_action
@property
def on_action(self):
Expand Down

0 comments on commit 964924d

Please sign in to comment.