TF-1487 Apply linter rule
This commit is contained in:
@@ -90,9 +90,10 @@ class AppBarThreadWidgetBuilder extends StatelessWidget {
|
||||
Widget _buildBodyAppBarForWebSelection(BuildContext context) {
|
||||
return Row(children: [
|
||||
buildIconWeb(
|
||||
icon: SvgPicture.asset(_imagePaths.icCloseComposer,
|
||||
color: AppColor.colorTextButton,
|
||||
fit: BoxFit.fill),
|
||||
icon: SvgPicture.asset(
|
||||
_imagePaths.icCloseComposer,
|
||||
colorFilter: AppColor.colorTextButton.asFilter(),
|
||||
fit: BoxFit.fill),
|
||||
minSize: 25,
|
||||
iconSize: 25,
|
||||
iconPadding: const EdgeInsets.all(5),
|
||||
@@ -178,7 +179,9 @@ class AppBarThreadWidgetBuilder extends StatelessWidget {
|
||||
splashRadius: 15,
|
||||
icon: SvgPicture.asset(
|
||||
canDeletePermanently ? _imagePaths.icDeleteComposer : _imagePaths.icDelete,
|
||||
color: canDeletePermanently ? AppColor.colorDeletePermanentlyButton : AppColor.primaryColor,
|
||||
colorFilter: canDeletePermanently
|
||||
? AppColor.colorDeletePermanentlyButton.asFilter()
|
||||
: AppColor.primaryColor.asFilter(),
|
||||
width: 20,
|
||||
height: 20,
|
||||
fit: BoxFit.fill),
|
||||
@@ -289,9 +292,9 @@ class AppBarThreadWidgetBuilder extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 3),
|
||||
child: SvgPicture.asset(
|
||||
_imagePaths.icFilter,
|
||||
color: _filterMessageOption == FilterMessageOption.all
|
||||
? AppColor.colorFilterMessageDisabled
|
||||
: AppColor.colorFilterMessageEnabled,
|
||||
colorFilter: _filterMessageOption == FilterMessageOption.all
|
||||
? AppColor.colorFilterMessageDisabled.asFilter()
|
||||
: AppColor.colorFilterMessageEnabled.asFilter(),
|
||||
fit: BoxFit.fill),
|
||||
),
|
||||
onTapDown: (detail) {
|
||||
@@ -337,7 +340,7 @@ class AppBarThreadWidgetBuilder extends StatelessWidget {
|
||||
SvgPicture.asset(_imagePaths.icBack,
|
||||
width: 20,
|
||||
height: 20,
|
||||
color: AppColor.colorTextButton,
|
||||
colorFilter: AppColor.colorTextButton.asFilter(),
|
||||
fit: BoxFit.fill),
|
||||
const SizedBox(width: 8),
|
||||
_buildCountItemSelected()
|
||||
|
||||
@@ -104,7 +104,10 @@ class SearchAppBarWidget {
|
||||
|
||||
Widget _buildBackButton() {
|
||||
return buildIconWeb(
|
||||
icon: SvgPicture.asset(_imagePaths.icBack, color: AppColor.colorTextButton, fit: BoxFit.fill),
|
||||
icon: SvgPicture.asset(
|
||||
_imagePaths.icBack,
|
||||
colorFilter: AppColor.colorTextButton.asFilter(),
|
||||
fit: BoxFit.fill),
|
||||
onTap: () {
|
||||
_searchInputController?.clear();
|
||||
if (_onCancelSearchPressed != null) {
|
||||
|
||||
@@ -11,11 +11,11 @@ class SpamReportBannerWidget extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context){
|
||||
final _spamReportController = Get.find<SpamReportController>();
|
||||
final _imagePaths = Get.find<ImagePaths>();
|
||||
final spamReportController = Get.find<SpamReportController>();
|
||||
final imagePaths = Get.find<ImagePaths>();
|
||||
|
||||
return Obx(() {
|
||||
if (!_spamReportController.enableSpamReport || _spamReportController.notShowSpamReportBanner) {
|
||||
if (!spamReportController.enableSpamReport || spamReportController.notShowSpamReportBanner) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
return Container(
|
||||
@@ -35,16 +35,16 @@ class SpamReportBannerWidget extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
_imagePaths.icInfoCircleOutline,
|
||||
imagePaths.icInfoCircleOutline,
|
||||
width: 28,
|
||||
height: 28,
|
||||
color: AppColor.primaryColor,
|
||||
colorFilter: AppColor.primaryColor.asFilter(),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 8,
|
||||
),
|
||||
Text(
|
||||
AppLocalizations.of(context).countNewSpamEmails(_spamReportController.numberOfUnreadSpamEmails),
|
||||
AppLocalizations.of(context).countNewSpamEmails(spamReportController.numberOfUnreadSpamEmails),
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
color: AppColor.primaryColor,
|
||||
@@ -64,7 +64,7 @@ class SpamReportBannerWidget extends StatelessWidget {
|
||||
context,
|
||||
AppLocalizations.of(context).showDetails,
|
||||
AppColor.primaryColor,
|
||||
() => _spamReportController.openMailbox(context)),
|
||||
() => spamReportController.openMailbox(context)),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 8,
|
||||
@@ -74,7 +74,7 @@ class SpamReportBannerWidget extends StatelessWidget {
|
||||
context,
|
||||
AppLocalizations.of(context).dismiss,
|
||||
AppColor.textFieldErrorBorderColor,
|
||||
() => _spamReportController
|
||||
() => spamReportController
|
||||
.dismissSpamReportAction()),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user