Rich text editor for Flutter
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.
 
 
 
 
 

30 lines
1.1 KiB

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);
}
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);
}