ShotikSupportWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ShotikSupportWidget
Constructors
-
ShotikSupportWidget({Key? key, required Widget child, String? title, String? teamName, ShotikSupportTheme? theme, bool launcher = false, double? launcherBottom, List<
String> quickReplies = const [], String? locale, SupportClient? client, String? appName, bool frictionChip = true}) -
const
Properties
- appName → String?
-
Your app's name for the "Rate {app}" row (default "Rate the app").
final
- child → Widget
-
final
- client → SupportClient?
-
A specific client instead of the one Shotik.configure creates (tests, several workspaces).
final
- frictionChip → bool
-
Show the "Something wrong? Write to us" chip after friction (default true; false when you place ShotikFrictionChip).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- launcher → bool
-
Show the floating launcher with the unread badge (default off: open with ShotikSupport.open()).
final
- launcherBottom → double?
-
The launcher's distance from the bottom edge of the safe area. Default: 20 above the home indicator (40 from the
bottom on iPhones without one, 24 on Android). Raise it to clear a bottom call to action or a tab bar.
final
- locale → String?
-
'en' or 'ru' (any tag; unknown languages fall back to en). Default: the device locale.
final
-
quickReplies
→ List<
String> -
Chips on an empty thread; a tap sends it as the first message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- teamName → String?
-
Who answers besides the AI, shown above founder replies (default "Team").
final
- theme → ShotikSupportTheme?
-
Brand: accent, onAccent, radius, fonts, brightness, light/dark color overrides.
final
- title → String?
-
Header title (default "Support" in the user's language).
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ShotikSupportWidget> -
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
-
builder(
{String? title, String? teamName, ShotikSupportTheme? theme, bool launcher = false, double? launcherBottom, List< String> quickReplies = const [], String? locale, String? appName, bool frictionChip = true}) → TransitionBuilder -
For MaterialApp / CupertinoApp / WidgetsApp builder:
builder: ShotikSupportWidget.builder(launcher: true).