mirror of
https://github.com/janoodleFTW/timy-messenger.git
synced 2026-01-23 02:14:39 +00:00
19 lines
582 B
Dart
19 lines
582 B
Dart
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<CupertinoLocalizations> {
|
|
const FallbackCupertinoLocalisationsDelegate();
|
|
|
|
@override
|
|
bool isSupported(Locale locale) => true;
|
|
|
|
@override
|
|
Future<CupertinoLocalizations> load(Locale locale) =>
|
|
DefaultCupertinoLocalizations.load(locale);
|
|
|
|
@override
|
|
bool shouldReload(FallbackCupertinoLocalisationsDelegate old) => false;
|
|
}
|