13 lines
292 B
Plaintext
13 lines
292 B
Plaintext
@Entry
|
|
@Component
|
|
struct Index {
|
|
build() {
|
|
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
|
|
Text('Hello World')
|
|
.fontSize(50)
|
|
.fontWeight(FontWeight.Bold)
|
|
}
|
|
.width('100%')
|
|
.height('100%')
|
|
}
|
|
} |