Skip to content

There is white padding when Set NativeTemplateStyle mainBackgroundColor to black of dark mode #1357

@ondev

Description

@ondev

when the app in dark mode, set NativeTemplateStyle mainBackgroundColor to black, there still white padding.

hope the whole background is mainBackgroundColor.

Image

My NativeTemplateStyle is

NativeTemplateStyle(
      templateType: TemplateType.small,
      callToActionTextStyle: NativeTemplateTextStyle(
        textColor: Colors.white,
        backgroundColor: Colors.blueAccent,
        style: NativeTemplateFontStyle.bold,
        size: 14.0,
      ),
      primaryTextStyle: NativeTemplateTextStyle(
        textColor: Colors.white,
        backgroundColor: Colors.transparent,
        style: NativeTemplateFontStyle.bold,
        size: 14.0,
      ),
      secondaryTextStyle: NativeTemplateTextStyle(
        textColor: Colors.white70,
        backgroundColor: Colors.transparent,
        style: NativeTemplateFontStyle.normal,
        size: 12.0,
      ),
      tertiaryTextStyle: NativeTemplateTextStyle(
        textColor: Colors.white54,
        backgroundColor: Colors.transparent,
        style: NativeTemplateFontStyle.normal,
        size: 10.0,
      ),
      mainBackgroundColor: Colors.grey[900]!,
      cornerRadius: 0.0,
    )

Metadata

Metadata

Assignees

Labels

native adIssues related to Native Ad

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions