BoltSlidesViewer class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BoltSlidesViewer
Constructors
-
BoltSlidesViewer.new({Key? key, String? filePath, String? url, String? googleSlidesId, required SlidesSourceType sourceType, bool showSlideCounter = true, bool showToolbar = true, bool enableInteractions = true, int initialSlide = 1, Color? loadingColor, String? title, List<
Widget> ? toolbarActions, Widget? loadingWidget, Widget? errorWidget, Color? backgroundColor, dynamic onSlideChanged(int)?, dynamic onError(dynamic)?, bool isModal = false, bool presentationMode = false, bool convertToPdf = true}) -
const
Properties
- backgroundColor → Color?
-
Background color (overrides theme)
final
- convertToPdf → bool
-
Convert format to PDF for better viewing (when applicable)
final
- enableInteractions → bool
-
Whether to enable interactions like zooming
final
-
Whether to enable slide navigation
final
- errorWidget → Widget?
-
Custom error widget
final
- filePath → String?
-
File path for local presentation files
final
- googleSlidesId → String?
-
Google Slides ID for direct viewing
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialSlide → int
-
Starting slide index (1-based)
final
- isModal → bool
-
Whether viewer is displayed as a modal
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingColor → Color?
-
Loading color (overrides theme)
final
- loadingWidget → Widget?
-
Custom loading widget
final
- onError → dynamic Function(dynamic)?
-
Callback when an error occurs
final
- onSlideChanged → dynamic Function(int)?
-
Callback when current slide changes
final
- presentationMode → bool
-
Whether to enable presentation mode (full screen)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showSlideCounter → bool
-
Whether to show the slide counter
final
- showToolbar → bool
-
Whether to show toolbar with actions
final
- sourceType → SlidesSourceType
-
Source type of the presentation
final
- title → String?
-
Title of the viewer
final
-
toolbarActions
→ List<
Widget> ? -
Custom toolbar actions
final
- url → String?
-
URL for network presentations
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< BoltSlidesViewer> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
openSlidesViewer(
{required BuildContext context, String? filePath, String? url, String? googleSlidesId, required SlidesSourceType sourceType, String? title, bool enableInteractions = true, bool presentationMode = false, int initialSlide = 1}) → Future< void> -
showSlidesDialog(
{required BuildContext context, String? filePath, String? url, String? googleSlidesId, required SlidesSourceType sourceType, String? title, bool barrierDismissible = true, bool enableInteractions = true, int initialSlide = 1}) → Future< void>