@@ -194,6 +194,7 @@ class _BottomNavPageGroupState extends State<BottomNavPageGroup> {
194
194
notchedShape: const CircularNotchedRectangle (),
195
195
onTabSelected: widget.onTabSelected,
196
196
items: navItems,
197
+ isFloating: fabMenuItem != null ,
197
198
floatingAlignment: floatingAlignment,
198
199
floatingMargin: floatingMargin,
199
200
);
@@ -224,6 +225,7 @@ class EnsembleBottomAppBar extends StatefulWidget {
224
225
required this .selectedColor,
225
226
required this .notchedShape,
226
227
required this .onTabSelected,
228
+ required this .isFloating,
227
229
required this .floatingAlignment,
228
230
this .onFabTapped,
229
231
this .floatingMargin,
@@ -237,6 +239,7 @@ class EnsembleBottomAppBar extends StatefulWidget {
237
239
final Color backgroundColor;
238
240
final Color color;
239
241
final Color selectedColor;
242
+ final bool isFloating;
240
243
final FloatingAlignment floatingAlignment;
241
244
final NotchedShape notchedShape;
242
245
final VoidCallback ? onFabTapped;
@@ -258,6 +261,8 @@ class EnsembleBottomAppBarState extends State<EnsembleBottomAppBar> {
258
261
}
259
262
260
263
int ? getFabIndex () {
264
+ if (! widget.isFloating) return null ;
265
+
261
266
switch (widget.floatingAlignment) {
262
267
case FloatingAlignment .center:
263
268
switch (widget.items.length) {
0 commit comments