【发布时间】:2019-08-20 04:58:59
【问题描述】:
我遇到了一些问题。我想在AppBar 中制作一个图像、一个文本和两个图标,但我无法让它按我的意愿工作。
我尝试在图像和文本之后连续制作一些字体。图片和文字成功显示在我的AppBar 中,但其余 2 种字体(手推车和通知)显示一些错误。
Widget build(BuildContext context) {
return new Scaffold(
backgroundColor: Colors.amber,
appBar: new AppBar
(
title: new Row
(
mainAxisAlignment: MainAxisAlignment.start,
children:
[
Image.asset('images/logoapp.png',fit: BoxFit.contain,height: 32,),
Container(padding: const EdgeInsets.all(8.0), child: Text('Solid Shop'))
],
)
),
....
【问题讨论】:
标签: flutter android-appbarlayout flutter-appbar