Dynamix Flutter SDK
Dynamix Flutter SDK is a Flutter package that provides easy integration for displaying in-app templates and widgets.
Installation
Add the following to your pubspec.yaml
file:
dependencies:
dynamix_flutter_sdk: ^0.0.3
Run:
flutter pub get
Initialization
Initialize the SDK before using it:
TemplateSdk.instance.initialize();
Usage
Showing Templates on the Dashboard
Call this inside WidgetsBinding.instance.addPostFrameCallback
to display templates:
WidgetsBinding.instance.addPostFrameCallback((_) {
// Show app_open templates only on dashboard
TemplateSdk.instance.showAppOpenTemplates(context);
// Also show dashboard screen templates
TemplateSdk.instance.showScreenTemplates(context, 'ScreenName');
});
Displaying In-App Widget
Use the inAppWidgetContainer
method to display in-app widgets:
TemplateSdk.instance.inAppWidgetContainer(
screenName: 'ScreenName',
height: 250,
padding: const EdgeInsets.all(16),
);
License
This project is licensed under the MIT License - see the LICENSE file for details.
Libraries
- animations/animation_type
- animations/highlight_type
- dynamix_flutter_sdk
- models/template_callbacks
- models/template_model
- models/tracking_event
- services/template_service
- template_sdk_exports
- widgets/animation_wrapper
- widgets/carousel_widget
- widgets/highlight_wrapper
- widgets/in_app_widget
- widgets/in_app_widget_container
- widgets/ios_video_player
- widgets/pip_controller
- widgets/pip_overlay
- widgets/pip_video_player
- widgets/pip_wrapper
- widgets/template_manager
- widgets/template_nudge
- widgets/template_pip
- widgets/template_webview
- widgets/template_widgets
- widgets/tooltip_wrapper
- widgets/video_carousel
- widgets/video_player_widget
- widgets/web_view_handler_mixin