FluttermojiThemeData constructor
FluttermojiThemeData({
- TextStyle? labelTextStyle,
- Color? primaryBgColor,
- Color? secondaryBgColor,
- Decoration? selectedTileDecoration,
- Decoration? unselectedTileDecoration,
- Color? iconColor,
- Color? selectedIconColor,
- Color? unselectedIconColor,
- Decoration? boxDecoration,
- ScrollPhysics? scrollPhysics,
- EdgeInsetsGeometry? tilePadding,
- EdgeInsetsGeometry? tileMargin,
Creates a visual theme
for the FluttermojiCustomizer
and the widgets within it.
You can set the attributes of this class to make the customizer look more in line with your app's own theme and style.
See more:
- FluttermojiThemeData.standard which is applied by default to the widgets.
Implementation
FluttermojiThemeData({
TextStyle? labelTextStyle,
Color? primaryBgColor,
Color? secondaryBgColor,
Decoration? selectedTileDecoration,
Decoration? unselectedTileDecoration,
Color? iconColor,
Color? selectedIconColor,
Color? unselectedIconColor,
Decoration? boxDecoration,
ScrollPhysics? scrollPhysics,
EdgeInsetsGeometry? tilePadding,
EdgeInsetsGeometry? tileMargin,
}) : this.primaryBgColor = primaryBgColor ?? const Color(0xFFFFFFFF),
this.secondaryBgColor = secondaryBgColor ?? const Color(0xFFF1F1F1),
this.iconColor = iconColor ?? const Color(0xFF9C9C9C),
this.selectedIconColor = selectedIconColor ?? const Color(0xFF424242),
this.unselectedIconColor =
unselectedIconColor ?? const Color(0xFF9C9C9C),
this.selectedTileDecoration = selectedTileDecoration ??
BoxDecoration(
borderRadius: BorderRadius.circular(12.0),
border: Border.all(
color: const Color(0xFF00FF00),
width: 3.0,
),
),
this.unselectedTileDecoration = unselectedTileDecoration,
this.boxDecoration = boxDecoration ??
BoxDecoration(borderRadius: BorderRadius.circular(18)),
this.labelTextStyle = labelTextStyle ??
const TextStyle(fontWeight: FontWeight.w600, color: Colors.black),
this.scrollPhysics = scrollPhysics ?? const ClampingScrollPhysics(),
this.tileMargin = const EdgeInsets.all(2.0),
this.tilePadding = const EdgeInsets.all(2.0);