CustomPerformanceOverlay constructor
const
CustomPerformanceOverlay({
- Key? key,
- bool enabled = true,
- Alignment alignment = Alignment.topRight,
- double scale = 1,
- int sampleSize = 32,
- Duration targetFrameTime = const Duration(milliseconds: 16),
- Duration barRangeMax = const Duration(milliseconds: 24),
- Color backgroundColor = Colors.white,
- Color textColor = Colors.black,
- Color textBackgroundColor = const Color(0x77ffffff),
- Color uiColor = Colors.teal,
- Color rasterColor = Colors.blue,
- Color highLatencyColor = Colors.cyan,
- required Widget child,
Creates a CustomPerformanceOverlay widget wrapped around the given child widget.
Implementation
const CustomPerformanceOverlay({
Key? key,
this.enabled = true,
this.alignment = Alignment.topRight,
this.scale = 1,
this.sampleSize = 32,
this.targetFrameTime = const Duration(milliseconds: 16),
this.barRangeMax = const Duration(milliseconds: 24),
this.backgroundColor = Colors.white,
this.textColor = Colors.black,
this.textBackgroundColor = const Color(0x77ffffff),
this.uiColor = Colors.teal,
this.rasterColor = Colors.blue,
this.highLatencyColor = Colors.cyan,
required this.child,
}) : super(key: key);