[adaptive_scaffold] make `lints_core` happy. (#2602)

diff --git a/packages/flutter_adaptive_scaffold/CHANGELOG.md b/packages/flutter_adaptive_scaffold/CHANGELOG.md
index ed3da45..734b393 100644
--- a/packages/flutter_adaptive_scaffold/CHANGELOG.md
+++ b/packages/flutter_adaptive_scaffold/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.0.4
+
+* Fix static analyzer warnings using `core` lint.
+
 ## 0.0.3
 
 * First published version.
diff --git a/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart b/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart
index c64ee3f..13ca200 100644
--- a/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart
+++ b/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart
@@ -489,50 +489,46 @@
           bodyOrientation: widget.bodyOrientation,
           bodyRatio: widget.bodyRatio,
           internalAnimations: widget.internalAnimations,
-          primaryNavigation: widget.destinations != null &&
-                  widget.selectedIndex != null
-              ? SlotLayout(
-                  config: <Breakpoint, SlotLayoutConfig>{
-                    widget.mediumBreakpoint: SlotLayout.from(
-                      key: const Key('primaryNavigation'),
-                      builder: (_) => AdaptiveScaffold.standardNavigationRail(
-                        width: widget.navigationRailWidth,
-                        selectedIndex: widget.selectedIndex,
-                        destinations: widget.destinations
-                            .map((_) => AdaptiveScaffold.toRailDestination(_))
-                            .toList(),
-                        onDestinationSelected: widget.onSelectedIndexChange,
-                      ),
-                    ),
-                    widget.largeBreakpoint: SlotLayout.from(
-                      key: const Key('primaryNavigation1'),
-                      builder: (_) => AdaptiveScaffold.standardNavigationRail(
-                        width: widget.extendedNavigationRailWidth,
-                        extended: true,
-                        selectedIndex: widget.selectedIndex,
-                        destinations: widget.destinations
-                            .map((_) => AdaptiveScaffold.toRailDestination(_))
-                            .toList(),
-                        onDestinationSelected: widget.onSelectedIndexChange,
-                      ),
-                    ),
-                  },
-                )
-              : null,
-          bottomNavigation: widget.destinations != null &&
-                  (!widget.drawerBreakpoint.isActive(context) ||
-                      !widget.useDrawer)
-              ? SlotLayout(
-                  config: <Breakpoint, SlotLayoutConfig>{
-                    widget.smallBreakpoint: SlotLayout.from(
-                      key: const Key('bottomNavigation'),
-                      builder: (_) =>
-                          AdaptiveScaffold.standardBottomNavigationBar(
-                              destinations: widget.destinations),
-                    ),
-                  },
-                )
-              : null,
+          primaryNavigation: SlotLayout(
+            config: <Breakpoint, SlotLayoutConfig>{
+              widget.mediumBreakpoint: SlotLayout.from(
+                key: const Key('primaryNavigation'),
+                builder: (_) => AdaptiveScaffold.standardNavigationRail(
+                  width: widget.navigationRailWidth,
+                  selectedIndex: widget.selectedIndex,
+                  destinations: widget.destinations
+                      .map((_) => AdaptiveScaffold.toRailDestination(_))
+                      .toList(),
+                  onDestinationSelected: widget.onSelectedIndexChange,
+                ),
+              ),
+              widget.largeBreakpoint: SlotLayout.from(
+                key: const Key('primaryNavigation1'),
+                builder: (_) => AdaptiveScaffold.standardNavigationRail(
+                  width: widget.extendedNavigationRailWidth,
+                  extended: true,
+                  selectedIndex: widget.selectedIndex,
+                  destinations: widget.destinations
+                      .map((_) => AdaptiveScaffold.toRailDestination(_))
+                      .toList(),
+                  onDestinationSelected: widget.onSelectedIndexChange,
+                ),
+              ),
+            },
+          ),
+          bottomNavigation:
+              !widget.drawerBreakpoint.isActive(context) || !widget.useDrawer
+                  ? SlotLayout(
+                      config: <Breakpoint, SlotLayoutConfig>{
+                        widget.smallBreakpoint: SlotLayout.from(
+                          key: const Key('bottomNavigation'),
+                          builder: (_) =>
+                              AdaptiveScaffold.standardBottomNavigationBar(
+                                  destinations: widget.destinations),
+                        ),
+                      },
+                    )
+                  : null,
           body: SlotLayout(
             config: <Breakpoint, SlotLayoutConfig?>{
               Breakpoints.standard: SlotLayout.from(
diff --git a/packages/flutter_adaptive_scaffold/pubspec.yaml b/packages/flutter_adaptive_scaffold/pubspec.yaml
index 9a11324..9de8b2c 100644
--- a/packages/flutter_adaptive_scaffold/pubspec.yaml
+++ b/packages/flutter_adaptive_scaffold/pubspec.yaml
@@ -1,6 +1,6 @@
 name: flutter_adaptive_scaffold
 description: Widgets to easily build adaptive layouts, including navigation elements.
-version: 0.0.3
+version: 0.0.4
 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_adaptive_scaffold%22
 repository: https://github.com/flutter/packages/tree/main/packages/flutter_adaptive_scaffold
 
@@ -15,4 +15,3 @@
 dev_dependencies:
   flutter_test:
     sdk: flutter
-