flutter_notification_center/lib/src/models/notification_theme.dart

35 lines
939 B
Dart
Raw Normal View History

2024-04-03 14:38:40 +02:00
// list_tile_theme.dart
import 'package:flutter/material.dart';
// Define a theme class for customizing ListTile appearance
class NotificationStyle {
final TextStyle? titleTextStyle;
final TextStyle? subtitleTextStyle;
final Color? backgroundColor;
final Color? leadingIconColor;
final Color? trailingIconColor;
final EdgeInsets? contentPadding;
final TextAlign? titleTextAlign;
final TextAlign? subtitleTextAlign;
final bool? dense;
final BoxDecoration? tileDecoration;
final Widget Function()? emptyNotificationsBuilder;
final TextStyle? appTitleTextStyle;
2024-04-03 14:38:40 +02:00
const NotificationStyle({
this.titleTextStyle,
this.subtitleTextStyle,
this.backgroundColor,
this.leadingIconColor,
this.trailingIconColor,
this.contentPadding,
this.titleTextAlign,
this.subtitleTextAlign,
this.dense,
this.tileDecoration,
this.emptyNotificationsBuilder,
this.appTitleTextStyle,
2024-04-03 14:38:40 +02:00
});
}