Fluid
Loading...
Searching...
No Matches
BottomSheet Class Reference

A sheet of paper that slides up from the bottom. More...

Inheritance diagram for BottomSheet:
Inheritance graph
[legend]
Collaboration diagram for BottomSheet:
Collaboration graph
[legend]

Detailed Description

A sheet of paper that slides up from the bottom.

A sheet of paper that slides up from the bottom edge of the screen and presents a set of clear and simple actions.

import QtQuick
import QtQuick.Controls.Material
import Fluid as Fluid
Item {
Fluid.Button {
anchors.centerIn: parent
text: qsTr("Press Me")
onClicked: customBottomSheet.open()
}
Fluid.BottomSheet {
id: customBottomSheet
Column {
width: parent.width
Fluid.Pane {
width: parent.width
padding: 16
Column {
spacing: 8
Fluid.TitleLabel {
text: "freedom"
}
Fluid.BodyLabel {
text: "/ˈfriːdəm/"
color: Material.secondaryTextColor
}
}
Material.background: Material.color(Material.Yellow, Material.Shade800)
}
Fluid.Pane {
width: parent.width
implicitHeight: 100
padding: 16
Column {
text: "noun"
color: Material.secondaryTextColor
}
Fluid.BodyLabel {
text: "the right to live in the way you want without being controlled by anyone else"
}
}
}
}
}
}
Text label with standard font and styling suitable to body text.
Definition BodyLabel.qml:33
A sheet of paper that slides up from the bottom.
Definition BottomSheet.qml:86
Definition Pane.qml:15
Text label with standard font and styling suitable to subheading.
Definition SubheadingLabel.qml:33
Text label with standard font and styling suitable to titles.
Definition TitleLabel.qml:32

For more information you can read the Material Design guidelines.


The documentation for this class was generated from the following file: