accordion
accordion copied to clipboard
There is a white border in dark mode? How to remove it?
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