File tree Expand file tree Collapse file tree 1 file changed +40
-23
lines changed Expand file tree Collapse file tree 1 file changed +40
-23
lines changed Original file line number Diff line number Diff line change @@ -99,34 +99,51 @@ class _HeaderNavigationState extends State<HeaderNavigation> {
9999 },
100100 child: Container (
101101 alignment: Alignment .center,
102- child: Column (
103- mainAxisSize: MainAxisSize .min,
104- mainAxisAlignment: MainAxisAlignment .center,
102+ child: Stack (
105103 children: [
106- if (_open)
107- Expanded (
108- flex: 2 ,
104+ Column (
105+ mainAxisSize: MainAxisSize .min,
106+ mainAxisAlignment: MainAxisAlignment .center,
107+ children: [
108+ if (_open)
109+ Expanded (
110+ flex: 2 ,
111+ child: ClipRect (
112+ child: ShaderMask (
113+ shaderCallback: (bounds) => LinearGradient (
114+ colors: [
115+ item.colorForeground,
116+ item.colorForeground
117+ ],
118+ tileMode: TileMode .mirror,
119+ ).createShader (bounds),
120+ blendMode: BlendMode .srcIn,
121+ child: item.icon,
122+ ),
123+ ),
124+ ),
125+ Expanded (
126+ child: _open
127+ ? text
128+ : Center (
129+ child: text,
130+ ),
131+ ),
132+ ],
133+ ),
134+ if (! _open)
135+ Positioned (
136+ left: 0 ,
137+ right: 0 ,
138+ bottom: 5 ,
109139 child: ClipRect (
110- child: ShaderMask (
111- shaderCallback: (bounds) => LinearGradient (
112- colors: [
113- item.colorForeground,
114- item.colorForeground
115- ],
116- tileMode: TileMode .mirror,
117- ).createShader (bounds),
118- blendMode: BlendMode .srcIn,
119- child: item.icon,
140+ child: Icon (
141+ Icons .keyboard_arrow_down,
142+ color: item.colorForeground,
143+ size: 10 ,
120144 ),
121145 ),
122146 ),
123- Expanded (
124- child: _open
125- ? text
126- : Center (
127- child: text,
128- ),
129- ),
130147 ],
131148 ),
132149 decoration: BoxDecoration (
You can’t perform that action at this time.
0 commit comments