@@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart';
66import 'package:flutter/widgets.dart' ;
77
88import 'bottom_app_bar_theme.dart' ;
9- import 'colors.dart' ;
109import 'elevation_overlay.dart' ;
1110import 'material.dart' ;
1211import 'scaffold.dart' ;
@@ -178,7 +177,6 @@ class _BottomAppBarState extends State<BottomAppBar> {
178177 final Color color = widget.color ?? babTheme.color ?? defaults.color! ;
179178 final Color surfaceTintColor = widget.surfaceTintColor ?? babTheme.surfaceTintColor ?? defaults.surfaceTintColor! ;
180179 final Color effectiveColor = isMaterial3 ? color : ElevationOverlay .applyOverlay (context, color, elevation);
181- final Color ? shadowColor = isMaterial3 ? Colors .transparent : null ;
182180
183181 final Widget child = Padding (
184182 padding: widget.padding ?? babTheme.padding ?? (isMaterial3 ? const EdgeInsets .symmetric (vertical: 12.0 , horizontal: 16.0 ) : EdgeInsets .zero),
@@ -189,16 +187,15 @@ class _BottomAppBarState extends State<BottomAppBar> {
189187 height: height,
190188 child: PhysicalShape (
191189 clipper: clipper,
190+ elevation: elevation,
192191 color: effectiveColor,
193192 clipBehavior: widget.clipBehavior,
194- elevation: isMaterial3 ? 0 : elevation,
195193 child: Material (
196194 key: materialKey,
197195 type: isMaterial3 ? MaterialType .canvas : MaterialType .transparency,
198196 elevation: elevation,
199197 color: isMaterial3 ? effectiveColor : null ,
200198 surfaceTintColor: surfaceTintColor,
201- shadowColor: shadowColor,
202199 child: SafeArea (child: child),
203200 ),
204201 ),
0 commit comments