Android 如何更改抽屉图标的颜色?

Android 如何更改抽屉图标的颜色?,android,flutter,Android,Flutter,如何更改抽屉图标的颜色?它现在是白色的,我想要黑色的 drawer: new Drawer( child: new ListView( children: <Widget>[ new UserAccountsDrawerHeader( accountName: Text('test'), accountEmail: Text('test')) 抽屉:新抽屉( 子:新列表视图( 儿童:[ 新用户帐户D

如何更改抽屉图标的颜色?它现在是白色的,我想要黑色的

drawer: new Drawer(
    child: new ListView(
      children: <Widget>[
        new UserAccountsDrawerHeader(
            accountName: Text('test'),
            accountEmail: Text('test'))
抽屉:新抽屉(
子:新列表视图(
儿童:[
新用户帐户DrawerHeader(
accountName:Text('test'),
accountEmail:Text('test'))

请让我知道它是否有效。

为图标定义新样式
style.xml
文件:

<style name="DrawerIconStyle" parent="@style/Widget.AppCompat.DrawerArrowToggle">
       <item name="spinBars">true</item>
       <item name="color">@android:color/white</item>
</style>

真的
@android:彩色/白色
并将其添加到页面主题(在同一文件中):


...
@样式/抽屉样式
...

我不想更改UserAccountsDrawerHeader,我想用三个破折号来更改它
<style name="DrawerIconStyle" parent="@style/Widget.AppCompat.DrawerArrowToggle">
       <item name="spinBars">true</item>
       <item name="color">@android:color/white</item>
</style>
<style name="Your.Theme" parent="Theme.AppCompat.NoActionBar">
    ...

    <item name="drawerArrowStyle">@style/DrawerIconStyle</item>

    ...
</style>