Component overview - hpi-swa-teaching/MaterialDesignWidgets GitHub Wiki
| Component | Status | Class(es) |
|---|---|---|
| App bars: bottom | π΄ | |
| App bars: top | π | MDAppBar |
| Backdrop | π΄ | |
| Banners | π΄ | |
| Bottom navigation | π΄ | |
| Buttons | π‘ | MDContainedButton, MDOutlinedButton, MDTextButton |
| Buttons: floating action button | π | MDFloatingActionButton |
| Cards | π΄ | |
| Chips | π΄ | |
| Data tables | π΄ | |
| Dialogs | π‘ | MDDialog |
| Dividers | π‘ | MDDivider |
| Image lists | π΄ | |
| Lists | π | MDList, MDListItem |
| Menus | π | MDMenu, MDMenuItem |
| Navigation drawer | π΄ | |
| Navigation rail | π΄ | |
| Pickers | π΄ | |
| Progress indicators | π΄ | |
| Selection controls | π | MDCheckbox |
| Sheets: bottom | π΄ | |
| Sheets: side | π΄ | |
| Sliders | π΄ | |
| Snackbars | π΄ | |
| Tabs | π΄ | |
| Text fields | π‘ | MDTextField, MDMultiLineField, MDTextArea |
| Tooltips | π΄ |
Icon Meaning π’ Completed π‘ Almost done π Lots missing π΄ Missing
App bars: bottom
App bars: top
| Feature | Status | Comments |
|---|---|---|
| Prominent (expanding) | π΄ | |
| Dense | π΄ | |
| Prominent dense | π΄ | |
| Images | π΄ | |
| Navigation icon | π‘ | Β· called addMenuControl: Β· wrong size |
| Title | π‘ | Β· called addLabel:? Β· no enforced positionβββlayout managed by MDSystemWindow |
| Action items and overflow menu | π΄ | |
| Behavior | π΄ | |
| Contextual action bar | π΄ |
- use TableLayout with fixed positions?
Backdrop
Banners
Bottom navigation
Buttons
| Feature | Status | Comments |
|---|---|---|
| Contained button | π’ | |
| Contained button with icon | π’ | |
| Outlined button | π’ | |
| Outlined button with icon | π’ | |
| Text button | π’ | |
| Text button with icon | π’ | |
| Toggle buttons | π΄ |
MDIconButtonis also availableMDButton:- should use primary color by default
textDisabledAlphawrongcalculateWidthByText: usehasIcon,hasIconRightdefaultPadding: only applies horizontally -> better name?
Buttons: floating action button
| Feature | Status | Comments |
|---|---|---|
| Default | π’ | |
| Mini | π΄ | |
| Extended | π΄ | |
| Extended with icon | π΄ | |
| Speed dial | π΄ | |
| Menu | π΄ |
Cards
Chips
Data tables
Dialogs
| Feature | Status | Comments |
|---|---|---|
| Alert Dialog | π’ | Customize buttons and content to your liking |
| Simple Dialog | π‘ | Customize buttons and content to your liking |
| Confirmation Dialog | π’ | Customize buttons and content to your liking |
| Full-screen dialog | π΄ |
Dividers
| Feature | Status | Comments |
|---|---|---|
| Full-bleed | π’ | |
| Inset | π’ | via padding: |
| Middle | π | |
| Dividers with subheaders | π΄ |
- Why manually request size from widget i/o
hResizing: #spaceFill?
Image lists
Lists
| Feature | Status | Comments |
|---|---|---|
| Default | π’ | |
| Two-line | π΄ | |
| Three-line | π΄ | |
| Avatar | π΄ | |
| Leading icon | π‘ | wrong sizeβββactual: 18, expected: 24 |
| Trailing icon | π‘ | wrong sizeβββactual: 18, expected: 24 |
| Trailing text | π΄ | |
| Expand & collapse | π΄ | |
| Subheader | π΄ | |
| Subheader inset | π΄ | |
| Swipe actions | π΄ | |
| Drag to reorder | π΄ | |
| Scrim(?) | π΄ |
-
MDListItem:alwaysUppercaseshould befalse
-
Divider padding missing
-
dense no longer in spec
-
cannot disable selectable
-
MDDivider:- Why use form i/o adding Morph?
- Why paint
backgroundColor?
Menus
| Feature | Status | Comments |
|---|---|---|
| Default | π΄ | only dense |
| Dense | π’ | |
| Item: Icon | π’ | |
| Item: Text | π’ | |
| Item: Keyboard command | π΄ | |
| Item: Selection state | π΄ | |
| Entrance animation | π΄ | Optional on desktop |
| Cascading menu | π’ | |
| Contextual menu | π΄ | (At least not used) |
| Dropdown menu | π΄ | |
| Dropdown menu: editable | π΄ |
MDMenuItem: typo in class commentMDMenu:addLine: should be calledaddDivider& not workingactiveSubmenu:callsactiveSubMenu:deleteAllRipplescallremoveRipples(on items)
Navigation drawer
Navigation rail
Pickers
| Feature | Status | Comments |
|---|---|---|
| Date picker | π΄ | |
| Date range picker | π΄ |
Progress indicators
Selection controls
| Feature | Status | Comments |
|---|---|---|
| Checkboxes | π‘ | No indeterminate state |
| Radio buttons | π΄ | |
| Switches | π΄ |
Sheets: bottom
Sheets: side
Sliders
Snackbars
Tabs
Text fields
| Feature | Status | Comments |
|---|---|---|
| Filled text field | π’ | |
| Outlined text field | π΄ | |
| Input type: Single line text field | π’ | MDTextField |
| Input type: Multi-line text field | π’ | MDMultiLineField |
| Input type: Text area | π’ | MDTextArea |
| Input type: Read-only fields | π΄ | state disabled isn't handled |