parent
0d88c0201a
commit
4afcbc4236
51 changed files with 1067 additions and 121 deletions
File diff suppressed because one or more lines are too long
@ -1,30 +1,32 @@ |
||||
import 'package:flutter_quill/flutter_quill.dart' |
||||
show Attribute, AttributeScope; |
||||
|
||||
class MobileWidthAttribute extends Attribute<String?> { |
||||
const MobileWidthAttribute(String? val) |
||||
: super('mobileWidth', AttributeScope.ignore, val); |
||||
} |
||||
// class FlutterWidthAttribute extends Attribute<String?> { |
||||
// const FlutterWidthAttribute(String? val) |
||||
// : super('flutterWidth', AttributeScope.ignore, val); |
||||
// } |
||||
|
||||
class MobileHeightAttribute extends Attribute<String?> { |
||||
const MobileHeightAttribute(String? val) |
||||
: super('mobileHeight', AttributeScope.ignore, val); |
||||
} |
||||
// class FlutterHeightAttribute extends Attribute<String?> { |
||||
// const FlutterHeightAttribute(String? val) |
||||
// : super('flutterHeight', AttributeScope.ignore, val); |
||||
// } |
||||
|
||||
class MobileMarginAttribute extends Attribute<String?> { |
||||
const MobileMarginAttribute(String? val) |
||||
: super('mobileMargin', AttributeScope.ignore, val); |
||||
} |
||||
// class FlutterMarginAttribute extends Attribute<String?> { |
||||
// const FlutterMarginAttribute(String? val) |
||||
// : super('flutterMargin', AttributeScope.ignore, val); |
||||
// } |
||||
|
||||
class MobileAlignmentAttribute extends Attribute<String?> { |
||||
const MobileAlignmentAttribute(String? val) |
||||
: super('mobileAlignment', AttributeScope.ignore, val); |
||||
class FlutterAlignmentAttribute extends Attribute<String?> { |
||||
const FlutterAlignmentAttribute(String? val) |
||||
: super('flutterAlignment', AttributeScope.ignore, val); |
||||
} |
||||
|
||||
extension AttributeExt on Attribute { |
||||
static const MobileWidthAttribute mobileWidth = MobileWidthAttribute(null); |
||||
static const MobileHeightAttribute mobileHeight = MobileHeightAttribute(null); |
||||
static const MobileMarginAttribute mobileMargin = MobileMarginAttribute(null); |
||||
static const MobileAlignmentAttribute mobileAlignment = |
||||
MobileAlignmentAttribute(null); |
||||
// static const FlutterWidthAttribute flutterWidth = FlutterWidthAttribute(null); |
||||
// static const FlutterHeightAttribute flutterHeight = |
||||
// FlutterHeightAttribute(null); |
||||
// static const FlutterMarginAttribute flutterMargin = |
||||
// FlutterMarginAttribute(null); |
||||
static const FlutterAlignmentAttribute flutterAlignment = |
||||
FlutterAlignmentAttribute(null); |
||||
} |
||||
|
@ -1 +1,298 @@ |
||||
{} |
||||
{ |
||||
"ar": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"bg": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"bn": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"cs": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"da": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"de": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"en_US": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"es": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"fa": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"fr": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"he": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"hi": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"id": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"it": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"ja": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"ko": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"ms": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"nl": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"no": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"pl": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"pt": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"pt_BR": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"ru": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"sr": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"sw": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"tk": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"tr": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"uk": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"ur": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"vi": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"zh": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"zh_CN": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
], |
||||
|
||||
"zh_HK": [ |
||||
"pickAPhotoFromYourGallery", |
||||
"takeAPhotoUsingYourCamera", |
||||
"pasteAPhotoUsingALink", |
||||
"pickAVideoFromYourGallery", |
||||
"recordAVideoUsingYourCamera", |
||||
"pasteAVideoUsingALink" |
||||
] |
||||
} |
||||
|
@ -1,3 +1,4 @@ |
||||
library flutter_quill.translations; |
||||
|
||||
export 'src/l10n/extensions/localizations.dart'; |
||||
export 'src/l10n/widgets/localizations.dart'; |
||||
|
Loading…
Reference in new issue