回転ボックス

クラスMyAppextends StatelessWidget {

@オーバーライド

  Widgetbuild(BuildContextコンテキスト){

(新しいMaterialAppを返します

タイトル:「RotatedBoxカセット回転の典型的な」

      ホーム:足場(

アプリケーションバー:アプリケーションバー(

タイトル:テキスト(

「RotatedBox例示的な回転ボックス」、

            スタイル:TEXTSTYLE(色:Colors.white)、

          )、

        )、

        ボディ:センター(

子供:RotatedBox(

quarterTurns:-3、//回転数、90°

            子供:テキスト(

「RotatedBox回転ボックス」、

              スタイル:TEXTSTYLE(のfontSize:28.0)、

            )、

          )、

        )、

      )、

    );

  }

}

おすすめ

転載: blog.csdn.net/weixin_33674976/article/details/90866683