TF-61 Implement rich text on web
This commit is contained in:
@@ -128,6 +128,9 @@ class ImagePaths {
|
||||
String get icCloseAdvancedSearch => _getImagePath('ic_close_advanced_search.svg');
|
||||
String get icLanguage => _getImagePath('ic_language.svg');
|
||||
String get icChecked => _getImagePath('ic_checked.svg');
|
||||
String get icStyleBold => _getImagePath('ic_style_bold.svg');
|
||||
String get icStyleItalic => _getImagePath('ic_style_italic.svg');
|
||||
String get icStyleUnderline => _getImagePath('ic_style_underline.svg');
|
||||
|
||||
String _getImagePath(String imageName) {
|
||||
return AssetsPaths.images + imageName;
|
||||
|
||||
@@ -13,12 +13,16 @@ Widget buildIconWeb({
|
||||
double? iconSize,
|
||||
double? splashRadius,
|
||||
double? minSize,
|
||||
Color? colorSelected,
|
||||
Color? colorFocus,
|
||||
ShapeBorder? shapeBorder,
|
||||
}) {
|
||||
return Material(
|
||||
color: Colors.transparent,
|
||||
shape: CircleBorder(),
|
||||
color: colorSelected ?? Colors.transparent,
|
||||
shape: shapeBorder ?? CircleBorder(),
|
||||
child: IconButton(
|
||||
icon: icon,
|
||||
focusColor: colorFocus,
|
||||
iconSize: iconSize,
|
||||
constraints: minSize != null ? BoxConstraints(minWidth: minSize, minHeight: minSize) : null,
|
||||
padding: iconPadding ?? EdgeInsets.all(8.0),
|
||||
|
||||
Reference in New Issue
Block a user