Widget

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

Widget

Widget:
    size_hint: .5, None
    height: self.width

    canvas:
        Color:
            rgba: app.theme_cls.primary_color
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [self.height / 2,]

MDWidget

MDWidget:
    size_hint: .5, None
    height: self.width
    radius: self.height / 2
    md_bg_color: app.theme_cls.primary_color

API - kivymd.uix.widget

class kivymd.uix.widget.MDWidget(**kwargs)

See Widget class documentation for more information.

New in version 1.0.0.