@@ -96,6 +96,7 @@ class _State extends State<DefaultAppBarDemo>
9696 ChoiceValue <TabStyle > _style = kStyles.first;
9797 ChoiceValue <Curve > _curve = Data .curves.first;
9898 Color _barColor = Data .namedColors.first.color;
99+ Color _shadowColor = Data .namedColors.first.color;
99100 Gradient ? _gradient = Data .gradients.first;
100101 Badge ? _badge;
101102 TabController ? _tabController;
@@ -112,6 +113,8 @@ class _State extends State<DefaultAppBarDemo>
112113 var options = < Widget > [
113114 const Heading ('Appbar Color' ),
114115 ColorsItem (Data .namedColors, _barColor, _onBarColorChanged),
116+ const Heading ('Shadow Color' ),
117+ ColorsItem (Data .namedShadowColors, _shadowColor, _onShadowColorChanged),
115118 const Heading ('Background Gradient' ),
116119 GradientItem (Data .gradients, _gradient, _onGradientChanged),
117120 const Heading ('Badge Chip' ),
@@ -190,6 +193,7 @@ class _State extends State<DefaultAppBarDemo>
190193 items: _tabItems.value,
191194 style: _style.value,
192195 curve: _curve.value,
196+ shadowColor: _shadowColor,
193197 backgroundColor: _barColor,
194198 gradient: _gradient,
195199 controller: _tabController,
@@ -208,6 +212,7 @@ class _State extends State<DefaultAppBarDemo>
208212 items: _tabItems.value,
209213 style: _style.value,
210214 curve: _curve.value,
215+ shadowColor: _shadowColor,
211216 backgroundColor: _barColor,
212217 gradient: _gradient,
213218 controller: _tabController,
@@ -252,6 +257,12 @@ class _State extends State<DefaultAppBarDemo>
252257 });
253258 }
254259
260+ void _onShadowColorChanged (Color value) {
261+ setState (() {
262+ _shadowColor = value;
263+ });
264+ }
265+
255266 void _onGradientChanged (Gradient ? value) {
256267 setState (() {
257268 _gradient = value;
0 commit comments