How to change the appBar back button color

前端 未结 9 643
慢半拍i
慢半拍i 2021-01-30 11:54

I cannot figure out how to change the appBar\'s automatic back button to a different color. it\'s under a scaffold and I\'ve tried to research it but I can\'t wrap my head aroun

9条回答
  •  孤城傲影
    2021-01-30 12:34

    AppBar(        
        automaticallyImplyLeading: false,
        leading: Navigator.canPop(context)
            ? IconButton(
                icon: Icon(
                  Icons.arrow_back,
                  color: Colors.black,
                  size: 47,
                ),
                onPressed: () => Navigator.of(context).pop(),
              )
            : null,
    );
    

提交回复
热议问题