Home > Back-end >  Can we add Icons on the right side of the AppBar by Trailing or SizedBox ? WHY & Why not?
Can we add Icons on the right side of the AppBar by Trailing or SizedBox ? WHY & Why not?

Time:09-24

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

CodePudding user response:

Consider using AppBar actions like

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

Overview of AppBar

For more on AppBar

  • Related