Flutter教程

ion-title

概要(CONTENTS)

Ionic4项目中我们可以使用Ionic4导航条组件ion-title对项目进行布局。

ion-title官方文档地址:https://ionicframework.com/docs/api/title

ion-title is a component that sets the title of the Toolbar.

ion-title 用法(Usage)

<ion-header>

  <ion-toolbar>
    <ion-title>Settingsion-title>
  ion-toolbar>

ion-header>

ion-title 属性(Properties)

color

Description

The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.

Attribute color
Type string | undefined

ion-title中的CSS 自定义属性

Name Description
--color Text color of the title