往往情况下,我选择显示的图标在整个应用程序中都不会显示(或者显示不正确)。我没有导入任何新的图标,我使用的所有图标都是从Flutter的默认库中选择的。
在Android设备上,这基本上是随机的;要么所有图标都正确显示,要么它们都给出相同的错误占位符。就像我说的那样,它们更多地是不显示。 iOS则有所不同,虽然它们通常仍无法正常工作,但有时会显示随机的表情符号而不是正确的图标或错误框。正如您在第二张图片中看到的那样,它将一个向前箭头表情符号放在了应该打开抽屉的列表式图标的位置上。此前,在抽屉内部的关闭图标显示为强壮的手臂表情符号。
在Android设备上,这基本上是随机的;要么所有图标都正确显示,要么它们都给出相同的错误占位符。就像我说的那样,它们更多地是不显示。 iOS则有所不同,虽然它们通常仍无法正常工作,但有时会显示随机的表情符号而不是正确的图标或错误框。正如您在第二张图片中看到的那样,它将一个向前箭头表情符号放在了应该打开抽屉的列表式图标的位置上。此前,在抽屉内部的关闭图标显示为强壮的手臂表情符号。
return Scaffold(
key: _scaffoldKey,
appBar: AppBar(
leading: IconButton(
icon: Icon(Icons.format_align_center),
onPressed: () => _scaffoldKey.currentState.openDrawer(),
),
title: Text(
"INFORMATION",
style: TextStyle(
fontFamily: 'Titillium SemiBold',
fontSize: 37.0,
),
),
centerTitle: false,
backgroundColor: Colors.white,
elevation: 0.5,
),
drawer: Drawer(
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Container(
height: 150.0,
color: Colors.white.withRed(191).withGreen(194).withBlue(200),
child: FittedBox(
alignment: Alignment.bottomCenter,
child: Padding(
padding: EdgeInsets.fromLTRB(20.0, 0.0, 20.0, 8.0),
child: Text(
"VITALITY PRO",
style: TextStyle(
color: Colors.white
),
),
)
)
),
SizedBox(height: 10.0),
ListTile(
title: Text(
"TERMS & CONDITIONS",
style: TextStyle(
fontSize: 18.0,
),
),
onTap: () => Navigator.pushNamed(context, '/terms'),
),
Divider(),
ListTile(
title: Text(
"PRIVACY POLICY",
style: TextStyle(
fontSize: 18.0
),
),
onTap: () => Navigator.pushNamed(context, '/privacy'),
),
Divider(),
SizedBox(height: 10.0),
ListTile(
title: Text(
"CLOSE",
style: TextStyle(
fontSize: 18.0
),
),
trailing: Icon(Icons.clear),
onTap: () => Navigator.pop(context),
),
SizedBox(height: 10.0),
Divider(),
Flexible(
fit: FlexFit.loose,
child: Align(
alignment: Alignment.bottomCenter,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
FlatButton(
child: Text(
"LOGOUT",
style: TextStyle(
color: Colors.black38,
),
),
onPressed: () => Navigator.pushNamed(context, '/origin'),
),
Text("@Copyright 2018, ISPA Technology, LLC"),
],
),
),
),
],
),
),
),
flutter doctor
的输出添加到你的问题中。 - undefined