BetterFeedback class
This widget should be at the top of your widget tree.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BetterFeedback
Constructors
-
BetterFeedback({Key? key, required Widget child, FeedbackThemeData? theme, List<
LocalizationsDelegate> ? localizationsDelegates, Locale? localeOverride, FeedbackMode mode = FeedbackMode.navigate, double pixelRatio = 3.0}) -
const
Properties
- child → Widget
-
The application to wrap, typically a MaterialApp.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- localeOverride → Locale?
-
Can be used to set the locale.
If it is not set, the platform default locale is used.
If no platform default locale exists, english is used.
final
-
localizationsDelegates
→ List<
LocalizationsDelegate> ? -
The delegates for this library's FeedbackLocalization widget.
You need to supply the following delegates if you choose to customize it.
MaterialLocalizations
CupertinoLocalizations
WidgetsLocalizations
an instance of
LocalizationsDelegate
<FeedbackLocalizations>final - mode → FeedbackMode
-
Set the default mode when launching feedback.
By default it will allow the user to navigate.
See FeedbackMode for other options.
final
- pixelRatio → double
-
The pixelRatio describes the scale between
the logical pixels and the size of the output image.
Specifying 1.0 will give you a 1:1 mapping between
logical pixels and the output pixels in the image.
The default is a pixel ration of 3 and a value below 1 is not recommended.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → FeedbackThemeData?
-
Theme wich gets used to style the feedback mode.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _BetterFeedbackState -
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}) → 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
-
of(
BuildContext context) → FeedbackData? -
Call
BetterFeedback.of(context)
to get an instance of FeedbackData on which you can call.show()
or.hide()
to enable or disable the feedback view.