File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,13 @@ class ThreeColumnNavigation extends StatefulWidget {
6
6
ThreeColumnNavigation ({
7
7
@required this .sections,
8
8
this .showDetailsArrows = true ,
9
+ this .expandedIconData = Icons .fullscreen_exit,
10
+ this .collapsedIconData = Icons .fullscreen,
9
11
}) : _adaptive = false ;
10
12
List <MainSection > sections;
11
13
final bool _adaptive;
12
14
final bool showDetailsArrows;
15
+ final IconData expandedIconData, collapsedIconData;
13
16
@override
14
17
_ThreeColumnNavigationState createState () => _ThreeColumnNavigationState ();
15
18
}
@@ -63,7 +66,7 @@ class _ThreeColumnNavigationState extends State<ThreeColumnNavigation> {
63
66
child: Scaffold (
64
67
appBar: AppBar (
65
68
leading: IconButton (
66
- icon: Icon (Icons .menu ),
69
+ icon: Icon (widget.expandedIconData ),
67
70
onPressed: () {
68
71
if (mounted)
69
72
setState (() {
@@ -104,7 +107,7 @@ class _ThreeColumnNavigationState extends State<ThreeColumnNavigation> {
104
107
appBar: AppBar (
105
108
leading: ! _expanded && constraints.maxWidth >= 720
106
109
? IconButton (
107
- icon: Icon (Icons .menu ),
110
+ icon: Icon (widget.collapsedIconData ),
108
111
onPressed: () {
109
112
if (mounted)
110
113
setState (() {
You can’t perform that action at this time.
0 commit comments