import "package:flutter/cupertino.dart"; // This delegate fixes an issue which caused alerts on iOS to fail. // https://github.com/flutter/flutter/issues/23047 class FallbackCupertinoLocalisationsDelegate extends LocalizationsDelegate { const FallbackCupertinoLocalisationsDelegate(); @override bool isSupported(Locale locale) => true; @override Future load(Locale locale) => DefaultCupertinoLocalizations.load(locale); @override bool shouldReload(FallbackCupertinoLocalisationsDelegate old) => false; }