CookieSettingsStyle constructor
const
CookieSettingsStyle({
- Color dialogBackgroundColor = Colors.white,
- EdgeInsets dialogPadding = const EdgeInsets.all(24.0),
- EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 16.0),
- double dialogElevation = 8.0,
- double dialogBorderRadius = 12.0,
- TextStyle titleTextStyle = const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
- TextStyle cookieTitleTextStyle = const TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
- TextStyle cookieDescriptionTextStyle = const TextStyle(color: Colors.grey, fontSize: 14),
- Color switchActiveColor = Colors.blue,
- Color switchInactiveColor = Colors.grey,
- double switchTrackHeight = 24.0,
- double switchThumbRadius = 10.0,
- 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,
});