code: def create_widget(self):
          
          d = self.declaration
          self.dialog = BottomSheetDialog(self.get_context(), d.style)
docs: Create the underlying widget.
  
          A dialog is not a subclass of view, hence we don't set name as widget
          or children will try to use it as their parent.