SocialMediaRecorder class

Inheritance

Constructors

SocialMediaRecorder({Widget? sendButtonIcon, double initRecordPackageWidth = 40, double fullRecordPackageHeight = 50, int? maxRecordTimeInSecond, String? storeSoundRecoringPath = "", required dynamic sendRequestFunction(File soundFile, String time), dynamic startRecording()?, dynamic stopRecording(String time)?, Widget? recordIcon, Widget? lockButton, Color? counterBackGroundColor, Widget? recordIconWhenLockedRecord, Color? recordIconBackGroundColor = Colors.blue, Color? recordIconWhenLockBackGroundColor = Colors.blue, Color? backGroundColor, TextStyle? cancelTextStyle, TextStyle? counterTextStyle, TextStyle? slideToCancelTextStyle, String? slideToCancelText = " Slide to Cancel >", String? cancelText = "Cancel", AudioEncoderType encode = AudioEncoderType.AAC, Color? cancelTextBackGroundColor, BorderRadius? radius, Key? key})
const

Properties

backGroundColor Color?
use to change all recording widget color
final
cancelText String?
this text show when lock record and to tell user should press in this text to cancel recod
final
cancelTextBackGroundColor Color?
use it for change back ground of cancel
final
cancelTextStyle TextStyle?
use to change cancel text style
final
counterBackGroundColor Color?
final
counterTextStyle TextStyle?
use to change the counter style
final
encode AudioEncoderType
Chose the encode type
final
fullRecordPackageHeight double
final
hashCode int
The hash code for this object.
no setterinherited
initRecordPackageWidth double
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lockButton Widget?
final
maxRecordTimeInSecond int?
final
radius BorderRadius?
use if you want change the raduis of un record
final
recordIcon Widget?
recording Icon That pressesd to start record
final
recordIconBackGroundColor Color?
use to change the backGround Icon when user recording sound
final
recordIconWhenLockBackGroundColor Color?
use to change the Icon backGround color when user locked the record
final
recordIconWhenLockedRecord Widget?
recording Icon when user locked the record
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendButtonIcon Widget?
final
sendRequestFunction → dynamic Function(File soundFile, String time)
function return the recording sound file and the time
final
slideToCancelText String?
text to know user should drag in the left to cancel record
final
slideToCancelTextStyle TextStyle?
use to change slide to cancel textstyle
final
startRecording → (dynamic Function()?)
function called when start recording
final
stopRecording → (dynamic Function(String time)?)
function called when stop recording, return the recording time (even if time < 1)
final
storeSoundRecoringPath String?
put you file directory storage path if you didn't pass it take deafult path
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SocialMediaRecorder
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