Youtubeロゴを左上に表示したいです。
以下、エミュレーター・AppBarコードのスクリーンショットです????
『Youtubeロゴ(画像)』を左寄せしたいです。
以下、AppBarのコードです。
flutter
1@override 2 Widget build(BuildContext context) { 3 return Scaffold( 4 appBar: AppBar( 5 backgroundColor: Colors.white, 6 title: Container( 7 width: 160, 8 height: 160, 9 child: Image.asset( 10 'images/Youtube.png', 11 ), 12 ), 13 14 actions: <Widget>[ 15 IconButton( 16 icon: Icon( 17 Icons.videocam, 18 color: Colors.black, 19 ), 20 onPressed: () {}, 21 ), 22 IconButton( 23 icon: Icon( 24 Icons.search, 25 color: Colors.black, 26 ), 27 onPressed: () {}, 28 ), 29 IconButton( 30 icon: Icon( 31 Icons.cast, 32 color: Colors.black, 33 ), 34 onPressed: () {}, 35 ), 36 Container( 37 margin: const EdgeInsets.all(8), 38 child: CircleAvatar( 39 backgroundImage: AssetImage('images/7.png'), 40 ), 41 ) 42 ], 43 ),
####追記
現在、Live Codingを見てアプリ作成をしているのですが、(※下記リンク参照)
main.dart
でコーディングをしない方が多いのは何故でしょうか?
例:**home.dart
**などで作成、など
わざわざページ遷移をしているのでしょうか?
(下記Youtuberさん参考)
(main.dart
が閲覧できません)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。