dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
498 B
16 lines
498 B
1 year ago
|
import 'package:flutter/widgets.dart' show BuildContext;
|
||
|
|
||
|
import '../gen/flutter_gen/gen_l10n/flutter_quill_localizations.dart'
|
||
|
as generated;
|
||
|
|
||
|
typedef FlutterQuillLocalizations = generated.AppLocalizations;
|
||
|
|
||
|
extension LocalizationsExt on BuildContext {
|
||
|
FlutterQuillLocalizations get localizations {
|
||
|
return FlutterQuillLocalizations.of(this) ??
|
||
|
(throw UnsupportedError(
|
||
|
"The instance of FlutterQuillLocalizations.of(context) is null and it's required",
|
||
|
));
|
||
|
}
|
||
|
}
|