Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change default back button icon in Flutter?

Tags:

flutter

How I will change the back button icon in flutter using the theme. So it can be reflected throughout the application. I saw multiple options in the theme to change the size and color of the icon. But didn't see the change icon option.

like image 849
Mr vd Avatar asked Jan 21 '26 20:01

Mr vd


1 Answers

You can override the back button icon using the global theme

ThemeData(
  actionIconTheme: ActionIconThemeData(
    backButtonIconBuilder: (BuildContext context) => SvgPicture.asset('assets/arrow-back-ios.svg'),
  ),
);
like image 132
Dennis Mwea Avatar answered Jan 24 '26 21:01

Dennis Mwea