accordion icon indicating copy to clipboard operation
accordion copied to clipboard

There is a white border in dark mode? How to remove it?

Open disonwei opened this issue 1 year ago • 8 comments

 return Accordion(
      disableScrolling: true,
      paddingListTop: 0,
      paddingListBottom: 0,
      maxOpenSections: 1,
      headerBackgroundColorOpened: Colors.transparent,
      headerBackgroundColor: Colors.transparent,
      headerBorderColor: Colors.transparent,
      headerBorderColorOpened: Colors.transparent,
      contentBackgroundColor:
          Theme.of(context).extension<CustomThemeData>()?.backgroundColor,
      contentBorderColor:Theme.of(context).extension<CustomThemeData>()?.backgroundColor,
      contentBorderWidth:0,
      contentBorderRadius:10,
      scrollIntoViewOfItems: ScrollIntoViewOfItems.fast,
      sectionOpeningHapticFeedback: SectionHapticFeedback.medium,
      sectionClosingHapticFeedback: SectionHapticFeedback.medium,
      headerPadding: EdgeInsets.zero,
      contentHorizontalPadding: 0,
      contentVerticalPadding: 2,
      paddingListHorizontal: 0,
      scaleWhenAnimating: false,

      children: children,
    );

My parameters are set as follows. The background is consistent with the page background in bright mode without any problems. But when I switched the app to dark mode, I found that the content had a white border.

      contentBorderColor:Theme.of(context).extension<CustomThemeData>()?.backgroundColor,
      contentBorderWidth:0,

Even with this setting, there is still a white border.

This issue is only found on Android

983244138c20789dc5d64885aff61dd6

disonwei avatar May 03 '24 15:05 disonwei