Can we add Icons on the right side of the AppBar by Trailing or SizedBox ? WHY & Why not?

388

Consider using AppBar actions like

Scaffold(
      appBar: AppBar(
        actions: [Icon(Icons.ac_unit)], ///here
      ),
      body: Text("Body"),
    );

Overview of AppBar

For more on AppBar

Share:
388
Mou Biswas
Author by

Mou Biswas

I'm an Graphic Designer and also studying Computer Science & Engineering. As along with that I'm working on Flutter App Development. Want to experience new challenged in life and improve my skills in every part of my life gradually. So, Let's explore!!! ^_^ email: [email protected]

Updated on January 01, 2023

Comments

  • Mou Biswas
    Mou Biswas over 1 year

    enter image description hereWhy I can't use the row and trailing and sized box section?

    • Admin
      Admin over 2 years
      Please provide enough code so others can better understand or reproduce the problem.
  • Mou Biswas
    Mou Biswas over 2 years
    thank you so much for your help😊🙏🏻❤
  • Yeasin Sheikh
    Yeasin Sheikh over 2 years
    Glad to help you out.