RadarScreen constructor
const
RadarScreen({
- Key? key,
- Widget? centerIcon,
- String? label,
- TextStyle? labelStyle,
- Widget? bottomAction,
- RadarEffectConfig config = RadarEffectConfig.green,
- GKController? controller,
- List<
Widget> results = const [], - bool showResults = false,
- double resultsRadius = 130.0,
- double resultSize = 56.0,
- Duration resultsAnimationDuration = const Duration(milliseconds: 800),
- double startAngle = -pi / 2,
Creates a RadarScreen.
centerIcon is displayed inside a circular container at center.
label is shown below the icon.
bottomAction is positioned at the bottom of the screen.
config controls all visual radar parameters.
controller allows driving the radar animation externally.
results are widgets displayed in a circle when showResults is true.
resultsRadius is the distance from center to each result (default 130).
resultSize is the size of each result slot (default 56).
resultsAnimationDuration controls how long the staggered appear takes.
startAngle is the angle (radians) of the first result (default -pi/2 = top).
Implementation
const RadarScreen({
super.key,
this.centerIcon,
this.label,
this.labelStyle,
this.bottomAction,
this.config = RadarEffectConfig.green,
this.controller,
this.results = const [],
this.showResults = false,
this.resultsRadius = 130.0,
this.resultSize = 56.0,
this.resultsAnimationDuration = const Duration(milliseconds: 800),
this.startAngle = -pi / 2,
});