mirror of
https://github.com/Iconica-Development/flutter_notification_center.git
synced 2025-05-19 17:13:46 +02:00
35 lines
939 B
Dart
35 lines
939 B
Dart
// 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;
|
|
|
|
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,
|
|
});
|
|
}
|