TF-1098 Apply lints for all module
This commit is contained in:
@@ -64,7 +64,7 @@ class AvatarBuilder {
|
||||
|
||||
Widget build() {
|
||||
return InkWell(
|
||||
onTap: () => _onTapAvatarActionClick != null ? _onTapAvatarActionClick?.call() : null,
|
||||
onTap: () => _onTapAvatarActionClick != null ? _onTapAvatarActionClick!.call() : null,
|
||||
onTapDown: (detail) {
|
||||
if (_onTapAvatarActionWithPositionClick != null && _context != null) {
|
||||
final screenSize = MediaQuery.of(_context!).size;
|
||||
@@ -96,7 +96,7 @@ class AvatarBuilder {
|
||||
color: _bgColor ?? AppColor.avatarColor
|
||||
),
|
||||
child: Text(
|
||||
'${_text ?? ''}',
|
||||
_text ?? '',
|
||||
style: _textStyle ?? TextStyle(fontSize: 20, color: _textColor ?? AppColor.avatarTextColor, fontWeight: FontWeight.w500)
|
||||
)
|
||||
),
|
||||
|
||||
@@ -6,7 +6,7 @@ typedef OnPressIconActionClick = void Function();
|
||||
class IconBuilder {
|
||||
Key? _key;
|
||||
double? _size;
|
||||
String? _icon;
|
||||
final String? _icon;
|
||||
EdgeInsets? _padding;
|
||||
OnPressIconActionClick? _onPressIconActionClick;
|
||||
|
||||
@@ -34,7 +34,7 @@ class IconBuilder {
|
||||
width: _size ?? 40,
|
||||
height: _size ?? 40,
|
||||
alignment: Alignment.center,
|
||||
padding: _padding ?? EdgeInsets.all(3),
|
||||
padding: _padding ?? const EdgeInsets.all(3),
|
||||
child: Material(
|
||||
borderRadius: BorderRadius.circular((_size ?? 40) / 2),
|
||||
color: Colors.transparent,
|
||||
|
||||
Reference in New Issue
Block a user