Issue
I'm trying to achieve the following appbar. I'm new to flutter and couldn't figure it out.
Appbar has back button on left and info icon and share button positioned at right.
Solution
for right icons add actions
to AppBar
, arrow button is default
example
return Scaffold(
appBar: AppBar(
title: const Text('AppBar Demo'),
actions: [
IconButton(
icon: const Icon(Icons.info),
onPressed: () {},
),
IconButton(
icon: const Icon(Icons.share),
onPressed: () {},
),
],
),
body: Widget()...
);
Answered By - novol
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.