Even though the Knobs are based on Material Design, the Flutter SDK still instantiates Cupertino based widgets for example for the TextField widget, since it will display a CupertinoTextSelectionToolbarButton. This will lead to an Exception on iOS platforms when that toolbar needs to be rendered.
This PR fixes this exception by also providing the DefaultCupertinoLocalizations delegate.
Even though the Knobs are based on Material Design, the Flutter SDK still instantiates Cupertino based widgets for example for the
TextField
widget, since it will display aCupertinoTextSelectionToolbarButton
. This will lead to an Exception on iOS platforms when that toolbar needs to be rendered.This PR fixes this exception by also providing the
DefaultCupertinoLocalizations
delegate.