GridLayout

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

GridLayout

GridLayout:
    size_hint_y: None
    height: self.minimum_height

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

MDGridLayout

MDGridLayout:
    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
width: self.minimum_width

adaptive_size

adaptive_size: True

Equivalent

size_hint: None, None
size: self.minimum_size

API - kivymd.uix.gridlayout

class kivymd.uix.gridlayout.MDGridLayout(**kwargs)

Grid layout class. See module documentation for more information.