FluttermojiThemeData constructor

FluttermojiThemeData({
  1. TextStyle? labelTextStyle,
  2. Color? primaryBgColor,
  3. Color? secondaryBgColor,
  4. Decoration? selectedTileDecoration,
  5. Decoration? unselectedTileDecoration,
  6. Color? iconColor,
  7. Color? selectedIconColor,
  8. Color? unselectedIconColor,
  9. Decoration? boxDecoration,
  10. ScrollPhysics? scrollPhysics,
  11. EdgeInsetsGeometry? tilePadding,
  12. 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:

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);