springBootStarterFlutterDebugAutoConfiguration top-level property

  1. @AutoConfigurationModule(build: AutoConfigurationBuild('spring.flutter.debug.enabled'))
BeanModule springBootStarterFlutterDebugAutoConfiguration
final

The debug panel (debugPanel) and its sections: logs, frames, the configuration, the beans, the themes and the start, over the app (debugPanelCustomizer). The generator puts this module into the app by spring.flutter.debug.enabled: true always, false never (no code), not set in debug and profile builds only.

Implementation

@AutoConfigurationModule(
  build: AutoConfigurationBuild('spring.flutter.debug.enabled'),
)
final BeanModule springBootStarterFlutterDebugAutoConfiguration = BeanModule(
  'springBootStarterFlutterDebugAutoConfiguration',
  [
    BeanDefinition<DebugPanel>(
      name: 'debugPanel',
      types: const [
        DebugPanel,
        ChangeNotifier,
        Listenable,
        ShortcutHandler,
        KeyedShortcutHandler,
      ],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (_) => DebugPanel(),
    ),
    BeanDefinition<DebugLogsSection>(
      name: 'debugLogsSection',
      types: const [DebugLogsSection, DebugPanelSection, Ordered],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) => DebugLogsSection(r.optionalDependency<LogBuffer>()),
    ),
    BeanDefinition<DebugFramesSection>(
      name: 'debugFramesSection',
      types: const [DebugFramesSection, DebugPanelSection, Ordered],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) =>
          DebugFramesSection(r.optionalDependency<DebugFrameMeter>()),
    ),
    BeanDefinition<DebugOverlaysSection>(
      name: 'debugOverlaysSection',
      types: const [DebugOverlaysSection, DebugPanelSection, Ordered],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) => DebugOverlaysSection(
        r.optionalDependencyList<DebugOverlay>() ?? const [],
        placement: r.optionalDependency<DebugOverlayPlacement>(),
      ),
    ),
    BeanDefinition<DebugMotionSection>(
      name: 'debugMotionSection',
      types: const [DebugMotionSection, DebugPanelSection, Ordered],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) => DebugMotionSection(r.optionalDependency<DebugMotion>()),
    ),
    BeanDefinition<DebugConfigurationSection>(
      name: 'debugConfigurationSection',
      types: const [DebugConfigurationSection, DebugPanelSection, Ordered],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) => DebugConfigurationSection(
        r.dependency<ConfigurableEnvironment>(),
      ),
    ),
    BeanDefinition<DebugBeansSection>(
      name: 'debugBeansSection',
      types: const [DebugBeansSection, DebugPanelSection, Ordered],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) => DebugBeansSection(r.dependency<ApplicationContext>()),
    ),
    BeanDefinition<DebugThemeSection>(
      name: 'debugThemeSection',
      types: const [DebugThemeSection, DebugPanelSection, Ordered],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) => DebugThemeSection(
        r.dependency<SpringThemes>(),
        r.dependency<ThemeSelection>(),
      ),
    ),
    BeanDefinition<DebugStartSection>(
      name: 'debugStartSection',
      types: const [DebugStartSection, DebugPanelSection, Ordered],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) => DebugStartSection(r.optionalDependency<SplashStages>()),
    ),
    BeanDefinition<DebugPanelCustomizer>(
      name: 'debugPanelCustomizer',
      types: const [DebugPanelCustomizer, FlutterAppCustomizer],
      source: _debugSource,
      conditions: const [_debugOn],
      create: (r) => DebugPanelCustomizer(
        r.dependency<DebugPanel>(),
        r.optionalDependencyList<DebugPanelSection>() ?? const [],
      ),
    ),
  ],
);