【 Flutter 】Flutter を 基礎 から 学習 ( Material ComponentsとiOS-Style ) part124 Material Components
「 基礎 から 学ぶ Flutter 」という書籍で 学習 したことを ブログでアウトプットしていこうと思います。今回は Material ComponentsとiOS-Style ( part124 )です。
前回
【 Flutter 】Flutter を 基礎 から 学習 ( Material ComponentsとiOS-Style ) part123 Material Components
引き続き、Material Componentsについて学びます。
Scaffoldウィジェット
Scaffold
ウィジェットはマテリアルデザイン用の重要なウィジェットです。
appBarプロパティ
appBar
プロパティはマテリアルデザインのAppBarに対応します。画面上部のヘッダー部分を担当します。
drawer, endDrawerプロパティ
drawer
とendDrawer
プロパティはマテリアルデザインのDrawerに対応します。
drawer
プロパティはAppBarの左側に、endDrawer
プロパティは右側にアイコンが表示されます。
メニューアイコン(?)をタップすると横からニュッとメニューが出てくるんですよね。たぶんコレことだと思います。
あれってDrawer
というんですね。
floatingAcitonButton, floatingActionButtonLocationプロパティ
floatingActionButton
とfloatingActionButtonLocation
プロパティはマテリアルデザインのFAB(floating action buttons)に対応しています。
bottomSheetプロパティ
bottomSheet
プロパティはマテリアルデザインのBottom Sheetに対応しています。
Scaffold
ウィジェットのbottomSheet
プロパティは永続的に表示されるBottomSheetとなります。
persistentFooterButtonsプロパティ
persistentFooterButtons
プロパティは画面の下にボタンを並べる領域を作ります。
bottomNavigationBarプロパティ
bottomNavigationBar
プロパティはマテリアルデザインのBottom Navigationに対応しています。
画面の最下部に領域を作成します。
最後に
続きは別のページで!
今日はここまで!
ディスカッション
コメント一覧
まだ、コメントがありません