build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Builds the widget tree for RotaryDial.

The RotaryDialTheme widget is used to wrap the child widget tree and provide them with the RotaryDialThemeData theme values.

The duration and curve arguments passed to the constructor are used to configure the child src.

Implementation

@override
Widget build(BuildContext context) {
  return RotaryDialTheme(
    data: rotaryDialThemeData ?? RotaryDialThemeData(),
    child: Builder(
      builder: (context) {
        return Padding(
          padding: RotaryDialTheme.of(context).margin,
          child: RotaryDialInput(
            onDigitSelected: onDigitSelected,
            curve: curve,
            duration: duration,
          ),
        );
      },
    ),
  );
}