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.
31 lines
1.1 KiB
31 lines
1.1 KiB
1 year ago
|
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 MobileHeightAttribute extends Attribute<String?> {
|
||
|
const MobileHeightAttribute(String? val)
|
||
|
: super('mobileHeight', AttributeScope.ignore, val);
|
||
|
}
|
||
|
|
||
1 year ago
|
class MobileMarginAttribute extends Attribute<String?> {
|
||
|
const MobileMarginAttribute(String? val)
|
||
|
: super('mobileMargin', AttributeScope.ignore, val);
|
||
|
}
|
||
|
|
||
|
class MobileAlignmentAttribute extends Attribute<String?> {
|
||
|
const MobileAlignmentAttribute(String? val)
|
||
|
: super('mobileAlignment', 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);
|
||
|
}
|