components_modern\core\theme\mediasfu_theme_exports library
MediaSFU Modern Theme System
This library exports the complete theming infrastructure for the modern MediaSFU UI, including colors, typography, spacing, animations, borders, and style options.
Quick Start
Import the theme system:
import 'package:mediasfu_sdk/components_modern/core/theme/mediasfu_theme_exports.dart';
Use the theme in your app:
MaterialApp(
theme: MediasfuTheme.light(),
darkTheme: MediasfuTheme.dark(),
)
Available Exports
- MediasfuColors - Color tokens and utility methods
- MediasfuTypography - Text styles and font configuration
- MediasfuSpacing - Spacing constants and inset helpers
- MediasfuAnimations - Animation durations, curves, and springs
- MediasfuBorders - Border widths, radii, and gradient borders
- MediasfuTheme - ThemeData factory for light/dark modes
- ModernStyleOptions - Style configuration for components
Classes
- AnimatedGradientBorderContainer
- A container with an animated rotating gradient border.
- AnimatedGradientBorderPainter
- Custom painter for animated rotating gradient borders.
-
AnimatedValue<
T> - A simple value notifier with smooth animation transitions.
- AnimatedValues
- Container for multiple animation values.
- AnimationConfig
- Configuration class for complex multi-property animations.
- GlowBorderContainer
- A container with a glowing border.
- GlowBorderPainter
- Custom painter for glowing borders.
- GradientBorderContainer
- A container with a gradient border.
- GradientBorderPainter
- Custom painter for gradient borders.
- MediasfuAnimations
- A comprehensive animation system for the modern MediaSFU UI.
- MediasfuBorders
- Border utilities for the modern MediaSFU UI.
- MediasfuColors
- Design tokens representing the modern MediaSFU colour palette.
- MediasfuSpacing
- Defines the canonical spacing scale for the modern MediaSFU UI.
- MediasfuTheme
- Factory for the modern MediaSFU ThemeData variants.
- MediasfuThemeModeNotifier
- Simple notifier used to switch between light/dark/system themes.
- MediasfuTypography
- Typography scale derived from the redesign specification.
- ModernStyleOptions
- Style configuration for modern MediaSFU components.
- ModernStyleProvider
- Provides style options to descendant widgets.
Mixins
-
AnimationControllerMixin<
T extends StatefulWidget> - Mixin that provides common animation controller setup.
Extensions
- MediasfuThemeExtension on BuildContext
- Extension methods for easy theme access.
- ModernStyleContextExtension on BuildContext
- Extension methods for easier style option access.