How to change the appBar back button color

前端 未结 9 729
慢半拍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:33

    It seemed to be easier to just create a new button and add color to it, heres how i did it for anyone wondering

    Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            leading: BackButton(
                color: Colors.black
            ),
    

提交回复
热议问题