BoxLayout

BoxLayout class equivalent. Simplifies working with some widget properties. For example:

BoxLayout

BoxLayout:
    size_hint_y: None
    height: self.minimum_height

    canvas:
        Color:
            rgba: app.theme_cls.primary_color
        Rectangle:
            pos: self.pos
            size: self.size

MDBoxLayout

MDBoxLayout:
    adaptive_height: True
    md_bg_color: app.theme_cls.primary_color

Available options are:

adaptive_height

adaptive_height: True

Equivalent

size_hint_y: None
height: self.minimum_height

adaptive_width

adaptive_width: True

Equivalent

size_hint_x: None
height: self.minimum_width

adaptive_size

adaptive_size: True

Equivalent

size_hint: None, None
size: self.minimum_size

API - kivymd.uix.boxlayout

class kivymd.uix.boxlayout.MDBoxLayout(**kwargs)

Box layout class. See module documentation for more information.