@@ -71,8 +71,6 @@ class GFDrawerHeader extends StatefulWidget {
7171 this .margin = const EdgeInsets .only (bottom: 8.0 ),
7272 this .currentAccountPicture,
7373 this .otherAccountsPictures,
74- this .onDetailsPressed,
75- this .arrowColor = Colors .white,
7674 this .child,
7775 this .duration = const Duration (milliseconds: 250 ),
7876 this .curve = Curves .fastOutSlowIn,
@@ -94,13 +92,6 @@ class GFDrawerHeader extends StatefulWidget {
9492 /// upper-right corner. Normally a list of [CircleAvatar] widgets.
9593 final List <Widget > otherAccountsPictures;
9694
97- /// A callback that is called when the horizontal area which contains the
98- /// [accountName] and [accountEmail] is tapped.
99- final VoidCallback onDetailsPressed;
100-
101- /// The [Color] of the arrow icon.
102- final Color arrowColor;
103-
10495 /// A widget to be placed inside the drawer header, inset by the [padding] .
10596 ///
10697 /// This widget will be sized to the size of the header. To position the child
@@ -120,14 +111,6 @@ class GFDrawerHeader extends StatefulWidget {
120111}
121112
122113class _GFDrawerHeaderState extends State <GFDrawerHeader > {
123- bool _isOpen = false ;
124-
125- void _handleDetailsPressed () {
126- setState (() {
127- _isOpen = ! _isOpen;
128- });
129- widget.onDetailsPressed ();
130- }
131114
132115 @override
133116 Widget build (BuildContext context) {
0 commit comments