Aris Guimerá
Aris Guimerá

Reputation: 1017

Differences between ModalDrawer and drawerContent from Scaffold

Technically it's the same component but I really don't know if it's a correct practice add a ModalDrawer into drawerContent.

What do you think?

Upvotes: 0

Views: 123

Answers (1)

Phil Dukhov
Phil Dukhov

Reputation: 87804

ModalDrawer is used by Scaffold under the hood, so you definitely shouldn't add it into drawerContent.

You can use it as independent element, if you don't need other Scaffold features, or as part of Scaffold, your drawerContent should look the same in both cases.

Upvotes: 1

Related Questions