CookieSettingsStyle constructor

const CookieSettingsStyle({
  1. Color dialogBackgroundColor = Colors.white,
  2. EdgeInsets dialogPadding = const EdgeInsets.all(24.0),
  3. EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 16.0),
  4. double dialogElevation = 8.0,
  5. double dialogBorderRadius = 12.0,
  6. TextStyle titleTextStyle = const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
  7. TextStyle cookieTitleTextStyle = const TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
  8. TextStyle cookieDescriptionTextStyle = const TextStyle(color: Colors.grey, fontSize: 14),
  9. Color switchActiveColor = Colors.blue,
  10. Color switchInactiveColor = Colors.grey,
  11. double switchTrackHeight = 24.0,
  12. double switchThumbRadius = 10.0,
  13. double spacingBetweenItems = 16.0,
})

Implementation

const CookieSettingsStyle({
  this.dialogBackgroundColor = Colors.white,
  this.dialogPadding = const EdgeInsets.all(24.0),
  this.contentPadding = const EdgeInsets.symmetric(horizontal: 16.0),
  this.dialogElevation = 8.0,
  this.dialogBorderRadius = 12.0,
  this.titleTextStyle = const TextStyle(
    fontSize: 20,
    fontWeight: FontWeight.bold,
  ),
  this.cookieTitleTextStyle = const TextStyle(
    fontWeight: FontWeight.bold,
    fontSize: 16,
  ),
  this.cookieDescriptionTextStyle = const TextStyle(
    color: Colors.grey,
    fontSize: 14,
  ),
  this.switchActiveColor = Colors.blue,
  this.switchInactiveColor = Colors.grey,
  this.switchTrackHeight = 24.0,
  this.switchThumbRadius = 10.0,
  this.spacingBetweenItems = 16.0,
});