springBootStarterFlutterDebugFrameMeterAutoConfiguration top-level property
- @AutoConfigurationModule(build: AutoConfigurationBuild('spring.flutter.debug.frame-meter.enabled'))
final
The frame meter over the app, on and off by the action
debug.frame-meter (⌘⇧X, or five quick taps and a sixth held two
seconds) or the debug panel's Frames tab (debugFrameMeter). The
generator puts this module into the app by
spring.flutter.debug.frame-meter.enabled: true always, false
never (no code), not set debug and profile builds only; apart from the
panel, so a release can have the meter alone.
Implementation
@AutoConfigurationModule(
build: AutoConfigurationBuild('spring.flutter.debug.frame-meter.enabled'),
)
final BeanModule springBootStarterFlutterDebugFrameMeterAutoConfiguration =
BeanModule('springBootStarterFlutterDebugFrameMeterAutoConfiguration', [
BeanDefinition<DebugFrameMeter>(
name: 'debugFrameMeter',
types: const [
DebugFrameMeter,
ChangeNotifier,
Listenable,
ShortcutHandler,
KeyedShortcutHandler,
DebugOverlay,
],
source: _debugSource,
conditions: [_debugFeatureOn('frame-meter')],
create: (r) => DebugFrameMeter(
position: r.dependency<FlutterFrameMeterProperties>().position,
),
),
..._debugDock,
]);